Apache Ranger is a centralized security framework that implements fine-grained access control across Hadoop components, such as HDFS, Hive, YARN, Kafka, Storm, and Solr. You can manage access policies on the Ranger UI.
Ranger consists of three modules:
- Ranger Admin
You can use Ranger Admin to create and update access policies. The policies are stored in a database. The plug-ins for Hadoop components poll these policies on a regular basis.
- Ranger Plug-ins
The plug-ins for Hadoop components are embedded in cluster processes as lightweight Java programs. For example, the Hive plug-in is embedded in the Hiveserver2 process. The plug-ins obtain policies from Ranger Admin and store them in local files. When Ranger receives a request from a user of a Hadoop component, the plug-in for this component obtains the request and evaluates it based on the access policies.
- Ranger UserSync
UserSync is a user information synchronization tool. It is used to fetch user and user group information from the UNIX system or an LDAP server. The information is stored in the database of Ranger Admin and is used to define policies.
- If you are creating a cluster of EMR V2.9.2, EMR V3.9.0, or later, select Ranger from optional services in the Software Settings step.
- If you want to enable Ranger for an existing cluster of EMR V2.9.2, EMR V3.9.0, or
later, add the Ranger service on the Cluster Management tab.
- After Ranger is enabled, applications are not affected until you configure access policies.
- You can configure policies for Linux users and LDAP users in your cluster in Ranger.
Access the Ranger UI
- Check configurations.
Before you access the Ranger UI, ensure that a security group is configured, which indicates that you are allowed to access the Hadoop cluster on the current network. For more information, see Access links and ports.
- Log on to the Ranger UI.
- Log on to the Alibaba Cloud E-MapReduce console.
- Click the Cluster Management tab.
- Find the target cluster and click Details in the Actions column.
- In the left-side navigation pane, click Access Links and Ports.
- On the Access Links and Ports page that appears, click the link for RANGER UI.
- On the Ranger UI logon page, log on with the default username (admin) and password.
- Change the password.
- When you log on to the Ranger UI for the first time, click Settings in the top navigation bar.
- Change the password of the admin user.
- In the upper-right corner, choose
Log on to the Ranger UI with the new password.
Integrate components with Ranger
You can use plug-ins to integrate the open source components in the cluster with Ranger. After a component is integrated, you can use Ranger to implement fine-grained access control on the component. The following table lists the components that can be integrated with Ranger, as well as the supported EMR versions.
|HDFS||V2.9.2, V3.9.0, or later|
|Hive||V2.9.2, V3.9.0, or later|
|HBase||V2.9.2, V3.9.0, or later|
|YARN||V2.9.2, V3.9.0, or later|
|Kafka||V3.12.0 or later|
|Spark||V3.24.0 or later|
|Presto||V3.25.0 or later|
For information about how to integrate the components in your cluster with Ranger, see the following topics:
You can use Ranger to manage the permissions of users or user groups, which include users and user groups from an LDAP server (recommended) or the local UNIX system.