This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property> | |
<name>ranger.plugin.hive.service.name</name> | |
<value>ranger-hive-service-01</value> | |
<description> | |
Name of the Ranger service containing policies for this YARN instance | |
</description> | |
</property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo vi /etc/hive/conf/ranger-hive-security.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo service ranger-usersync restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property> | |
<name>ranger.usersync.sync.source</name> | |
<value>ldap</value> | |
</property> | |
<property> | |
<name>ranger.usersync.ldap.url</name> | |
<value>ldap://<proxy-master-internal-dns-name>:33389</value> | |
</property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo vi /etc/ranger/usersync/conf/ranger-ugsync-site.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export BACKEND_CLUSTER=backend-cluster | |
gcloud compute ssh --zone ${ZONE} ${BACKEND_CLUSTER}-m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ldapsearch -b "uid=${USER_ID},ou=people,dc=hadoop,dc=apache,dc=org" \ | |
-D 'uid=admin,ou=people,dc=hadoop,dc=apache,dc=org' \ | |
-w 'admin-password' \ | |
-H ldap://localhost:33389 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ldapadd -f new-user.ldif \ | |
-D 'uid=admin,ou=people,dc=hadoop,dc=apache,dc=org' \ | |
-w 'admin-password' \ | |
-H ldap://localhost:33389 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export USER_ID=mary | |
printf '%s\n'\ | |
"# entry for user ${USER_ID}"\ | |
"dn: uid=${USER_ID},ou=people,dc=hadoop,dc=apache,dc=org"\ | |
"objectclass:top"\ | |
"objectclass:person"\ | |
"objectclass:organizationalPerson"\ | |
"objectclass:inetOrgPerson"\ | |
"cn: ${USER_ID}"\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install ldap-utils |