SlideShare a Scribd company logo
Securing Hadoop using
Ranger
Raj Nadipalli
Director Professional Services, Zaloni
rnadipalli@zaloni.com
09.22.2016
Agenda
Ø  Security Landscape in Hadoop
Ø  Role of Ranger
Ø  Ranger Key Features
Ø  Demo
Ø  Q&A
Overview
Security Landscape in Hadoop (open source)
Authentication
Who am I?
AD/LDAP
Kerberos
Apache Knox
Authorization
What can I do?
Apache Ranger
Apache Sentry
Audit
What happened?
Apache Ranger
Data Protection
SSL
KMS
Ranger in a slide
5	
	
Ø  Centralized	security	framework,	authen*ca*on,	audi*ng,	data	encryp*on	and	security		
Ø  Fine-grained	access	control	over	Hadoop	
Ø  Components	Supported:		HDFS,	Hive,	Hbase,	Storm,	YARN,	Knox,	KaCa,	Solr	
Ø  Manage/Create	policies	using	browser	
Ø  Manage	Audit	tracking	and	policy	analy*cs	in	HDFS,	RDMS	or	SOLR	
Ø  Supports	governance	with	Tag	based	policies	
Ø  REST	API’s	for	policy	management	automate,	integrate	and	extend
Key Components of Ranger
http://www.slideshare.net/RommelGarcia2/apache-ranger?qid=1150145e-a144-4603-9165-
a09b2ae5ece0&v=&b=&from_search=4
Securing HDFS
Ranger in Action - HDFS
http://www.slideshare.net/RommelGarcia2/apache-ranger?qid=1150145e-a144-4603-9165-
a09b2ae5ece0&v=&b=&from_search=4
Ranger administration portal
9
List HDFS policies
10
Under	HDFS	policies	we	can	view	all	the	HDFS	policies	created	and	which	user(s)	/	group(s)	has	access	to	which	
policies			
Actions
delete / edit
Policy Name
Groups/users
assigned to
policies
Create HDFS policy
11
Under	HDFS	policy	we	can	edit/create	HDFS	policies,	this	page	shows	how	to	create	a	policy	at	user	level	and	
provide	appropriate	permissions.
Access error in Audit
12
Under	Audit	tab	admin	can	view	which	user	tried	to	access	which	directory,	here	user	mukesh	got	access	denied	
as	it	did	not	had	the	permission	to	access	/testRanger	directory	
Access Denied
to user mukesh
List HDFS policies for group
13
Under HDFS policies we can view all the HDFS policies created and which user(s) / group(s) has
access to which policies
Create HDFS policy for group
14
Under	HDFS	policy	we	can	edit/create	HDFS	policies,	this	page	shows	how	to	create	a	policy	at	group	level	and	
provide	appropriate	permissions.	
Access given
to a group
Securing Hive
List policies of Hive
16
Under	Hive	policies	we	can	view	all	the	Hive	policies	created	and	which	user(s)	/	group(s)	has	access	to	which	
policies			
Hive policy for database User assigned to a policy
Create policy for Hive
17
Under	Hive	policy	we	can	edit/create	Hive	policies,	this	page	shows	how	to	create	a	policy	at	user	level	and	
provide	appropriate	permissions.
Access error in Audit
18
Under	Audit	tab	admin	can	view	which	user	tried	to	access	which	table/database,	here	user	mukesh	got	access	denied	
as	it	did	not	had	the	permission	to	create	table	under	testranger	database.
Securing HBase
Create HBase policy
20
Under	HBase	policy	we	can	edit/create	HBase	policies,	this	page	shows	how	to	create	a	policy	at	user	level	and	
provide	appropriate	permissions.
Access error in Audit
21
Under	Audit	tab	admin	can	view	which	user	tried	to	access	which	table	here	user	nabadeep	got	access	denied	as	it	did	
not	had	the	permission	to	put	data	in	table	testranger.
Audit Logs
Audit logs in JSON format
For	each	of	the	service	like	HDFS,	Hive	there	will	audit	logs	generated	if	enabled	in	
Ambari	
23
Audit logs in JSON format
24
HDFS Audit File structure
25
Audit Log Storage Options
HDFS
Long term storage that can be used to understand user event trends and predict anomaly
RDBMS
MySQL, Oracle, Postgres, SQL Server
Solr
Good for quick reporting metrics to understand user event trends
Log4j Appenders
Best practices to use HDFS in Ranger
27
•  Change	HDFS	umask	to	077	
	fs.permissions.umask.mode=077	
	
•  	IdenLfy	directory	which	can	be	managed	by	Ranger	policies	
	/apps/hive,	/apps/Hbase	
•  IdenLfy	directories	which	need	to	be	managed	by	HDFS	naLve	permissions	
	/tmp	and	/user		to	700	
•  Enable	Ranger	policy	to	audit	all	records
Best practices to use Hive in Ranger
28
•  HiveServer2	access	with	limited	HDFS	access	
̶  Column	level	access	control	over	Hive	data	
•  Hiveserver2,	and	HDFS	files	through	Pig/MR	jobs	
̶  hive.server2.enable.doAs	is	set	to	"true“	
•  Hive	CLI	access
Atlas & Ranger
Tag Based Policies in Atlas
Ø  Atlas and Ranger combination supports automation for governance and policies
Ø  Atlas is where tags get set on metadata for example, a Customer table in Hive
can be tagged with value “PII”
Ø  Ranger policies can be created on these tags to enforce access
Ø  Ranger shows audit logs on access
Source: https://cwiki.apache.org/confluence/display/RANGER/Tag+Based+Policies
Ranger Tag based policy flow
Tag Service Setup – Ranger Admin
Source: https://cwiki.apache.org/confluence/display/RANGER/Tag+Based+Policies
Tag Policy Setup
Source: https://cwiki.apache.org/confluence/
display/RANGER/Tag+Based+Policies
Tag Policy Expiry
Backup
References
http://www.slideshare.net/trihug/trihug-october-apache-ranger
http://www.slideshare.net/RommelGarcia2/apache-ranger
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=53741207
http://hortonworks.com/blog/best-practices-for-hive-authorization-using-apache-ranger-in-
hdp-2-2
https://cwiki.apache.org/confluence/display/RANGER/Tag+Based+Policies
Q&A
rajesh.nadipalli@gmail.com
@ranadipa

More Related Content

PPTX
Ranger admin dev overview
PDF
TriHUG October: Apache Ranger
PPTX
Apache Hadoop Security - Ranger
PPTX
An Approach for Multi-Tenancy Through Apache Knox
PPTX
Extending Apache Ranger Authorization Beyond Hadoop: Review of Apache Ranger ...
PPTX
Apache Ranger
PPTX
Security and Governance on Hadoop with Apache Atlas and Apache Ranger by Srik...
PDF
Curb your insecurity with HDP - Tips for a Secure Cluster
Ranger admin dev overview
TriHUG October: Apache Ranger
Apache Hadoop Security - Ranger
An Approach for Multi-Tenancy Through Apache Knox
Extending Apache Ranger Authorization Beyond Hadoop: Review of Apache Ranger ...
Apache Ranger
Security and Governance on Hadoop with Apache Atlas and Apache Ranger by Srik...
Curb your insecurity with HDP - Tips for a Secure Cluster

What's hot (20)

PPTX
Improvements in Hadoop Security
PDF
Hadoop Security: Overview
PPTX
Classification based security in Hadoop
PPTX
Hadoop security
PDF
History of Privacera
PPTX
Hadoop REST API Security with Apache Knox Gateway
PPTX
Open Source Security Tools for Big Data
PPTX
Hadoop Security in Big-Data-as-a-Service Deployments - Presented at Hadoop Su...
PPTX
Hadoop Security Today and Tomorrow
PPTX
Hadoop Security Today & Tomorrow with Apache Knox
PPTX
Managing enterprise users in Hadoop ecosystem
PPT
Hadoop Security Architecture
PPT
Hadoop Operations: How to Secure and Control Cluster Access
PPTX
Securing Hadoop's REST APIs with Apache Knox Gateway Hadoop Summit June 6th, ...
PPTX
Hadoop Security Features That make your risk officer happy
PDF
Nl HUG 2016 Feb Hadoop security from the trenches
PPTX
Hadoop security @ Philly Hadoop Meetup May 2015
PPTX
Hdp security overview
PPTX
Securing the Hadoop Ecosystem
PDF
August 2014 HUG : Comprehensive Security for Hadoop
Improvements in Hadoop Security
Hadoop Security: Overview
Classification based security in Hadoop
Hadoop security
History of Privacera
Hadoop REST API Security with Apache Knox Gateway
Open Source Security Tools for Big Data
Hadoop Security in Big-Data-as-a-Service Deployments - Presented at Hadoop Su...
Hadoop Security Today and Tomorrow
Hadoop Security Today & Tomorrow with Apache Knox
Managing enterprise users in Hadoop ecosystem
Hadoop Security Architecture
Hadoop Operations: How to Secure and Control Cluster Access
Securing Hadoop's REST APIs with Apache Knox Gateway Hadoop Summit June 6th, ...
Hadoop Security Features That make your risk officer happy
Nl HUG 2016 Feb Hadoop security from the trenches
Hadoop security @ Philly Hadoop Meetup May 2015
Hdp security overview
Securing the Hadoop Ecosystem
August 2014 HUG : Comprehensive Security for Hadoop
Ad

Viewers also liked (20)

PDF
SQL on Hadoop
PDF
SQL on Hadoop: Defining the New Generation of Analytic SQL Databases
PPTX
The Challenges of SQL on Hadoop
PPTX
Securing Hadoop with Apache Ranger
PPTX
SQL on Hadoop
PPTX
Apache NiFi- MiNiFi meetup Slides
PPTX
Apache HBase™
PPTX
Tajo and SQL-on-Hadoop in Tech Planet 2013
PDF
Building a Hadoop Data Warehouse with Impala
PPTX
Introduction to Azure DocumentDB
PDF
SQL on Hadoop in Taiwan
PPTX
eHarmony @ Hbase Conference 2016 by vijay vangapandu.
PPTX
Overview of HDFS Transparent Encryption
PDF
Interactive SQL-on-Hadoop and JethroData
PPTX
Is your Enterprise Data lake Metadata Driven AND Secure?
PPTX
Decision trees in hadoop
PDF
Discover.hdp2.2.storm and kafka.final
PPTX
SQL-on-Hadoop Tutorial
PDF
Big SQL Competitive Summary - Vendor Landscape
PDF
Kafka Summit SF Apr 26 2016 - Generating Real-time Recommendations with NiFi,...
SQL on Hadoop
SQL on Hadoop: Defining the New Generation of Analytic SQL Databases
The Challenges of SQL on Hadoop
Securing Hadoop with Apache Ranger
SQL on Hadoop
Apache NiFi- MiNiFi meetup Slides
Apache HBase™
Tajo and SQL-on-Hadoop in Tech Planet 2013
Building a Hadoop Data Warehouse with Impala
Introduction to Azure DocumentDB
SQL on Hadoop in Taiwan
eHarmony @ Hbase Conference 2016 by vijay vangapandu.
Overview of HDFS Transparent Encryption
Interactive SQL-on-Hadoop and JethroData
Is your Enterprise Data lake Metadata Driven AND Secure?
Decision trees in hadoop
Discover.hdp2.2.storm and kafka.final
SQL-on-Hadoop Tutorial
Big SQL Competitive Summary - Vendor Landscape
Kafka Summit SF Apr 26 2016 - Generating Real-time Recommendations with NiFi,...
Ad

Similar to Apache ranger meetup (20)

PPTX
Security needs in Hadoop’s Current and Future – How Apache Ranger can help?
PPTX
Security and Data Governance using Apache Ranger and Apache Atlas
PPTX
Treat your enterprise data lake indigestion: Enterprise ready security and go...
PDF
Apache Ranger
PDF
BigData Security - A Point of View
PPTX
Open Source Security Tools for Big Data
PDF
Hadoop Security
PDF
Hadoop & Security - Past, Present, Future
PDF
Hortonworks Protegrity Webinar: Leverage Security in Hadoop Without Sacrifici...
PPTX
Enabling ABAC with Accumulo and Ranger integration
PPTX
Securing Hadoop in an Enterprise Context
PDF
2014 sept 4_hadoop_security
PPTX
Securing Hadoop in an Enterprise Context
PPTX
Securing Hadoop in an Enterprise Context (v2)
PPTX
Apache Hadoop India Summit 2011 talk "Making Apache Hadoop Secure" by Devaraj...
PDF
Охота на уязвимости Hadoop
PDF
Practical Hadoop Security 1st ed. Edition Lakhe
PPTX
Saving the elephant—now, not later
PPTX
Improvements in Hadoop Security
PDF
April 2014 HUG : Apache Sentry
Security needs in Hadoop’s Current and Future – How Apache Ranger can help?
Security and Data Governance using Apache Ranger and Apache Atlas
Treat your enterprise data lake indigestion: Enterprise ready security and go...
Apache Ranger
BigData Security - A Point of View
Open Source Security Tools for Big Data
Hadoop Security
Hadoop & Security - Past, Present, Future
Hortonworks Protegrity Webinar: Leverage Security in Hadoop Without Sacrifici...
Enabling ABAC with Accumulo and Ranger integration
Securing Hadoop in an Enterprise Context
2014 sept 4_hadoop_security
Securing Hadoop in an Enterprise Context
Securing Hadoop in an Enterprise Context (v2)
Apache Hadoop India Summit 2011 talk "Making Apache Hadoop Secure" by Devaraj...
Охота на уязвимости Hadoop
Practical Hadoop Security 1st ed. Edition Lakhe
Saving the elephant—now, not later
Improvements in Hadoop Security
April 2014 HUG : Apache Sentry

More from nvvrajesh (8)

PDF
HdInsight essentials Hadoop on Microsoft Platform
PPTX
Information management and enterprise architecture
PPTX
Pentaho bi suite overview presentation
PPTX
Social Networking for Non-Profits
PPTX
Oracle business intelligence overview
PPTX
BI the Agile Way
PPTX
Agile Process in a Nutshell
PPTX
Hadoop For Enterprises
HdInsight essentials Hadoop on Microsoft Platform
Information management and enterprise architecture
Pentaho bi suite overview presentation
Social Networking for Non-Profits
Oracle business intelligence overview
BI the Agile Way
Agile Process in a Nutshell
Hadoop For Enterprises

Recently uploaded (20)

PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
Essential Infomation Tech presentation.pptx
PPTX
ai tools demonstartion for schools and inter college
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Digital Strategies for Manufacturing Companies
PPTX
L1 - Introduction to python Backend.pptx
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Transform Your Business with a Software ERP System
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Complete React Javascript Course Syllabus.pdf
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
Materi-Enum-and-Record-Data-Type (1).pptx
PDF
top salesforce developer skills in 2025.pdf
PPT
Introduction Database Management System for Course Database
PDF
Softaken Excel to vCard Converter Software.pdf
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Essential Infomation Tech presentation.pptx
ai tools demonstartion for schools and inter college
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
ISO 45001 Occupational Health and Safety Management System
ManageIQ - Sprint 268 Review - Slide Deck
Digital Strategies for Manufacturing Companies
L1 - Introduction to python Backend.pptx
VVF-Customer-Presentation2025-Ver1.9.pptx
Design an Analysis of Algorithms I-SECS-1021-03
Transform Your Business with a Software ERP System
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Complete React Javascript Course Syllabus.pdf
How Creative Agencies Leverage Project Management Software.pdf
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Materi-Enum-and-Record-Data-Type (1).pptx
top salesforce developer skills in 2025.pdf
Introduction Database Management System for Course Database
Softaken Excel to vCard Converter Software.pdf

Apache ranger meetup