After the installation of Hue is complete, the user who first logs on is the super user of Hue, can manage users, and so on. But the process of using it found a problem this user cannot manage the data created by supergroup in HDFs.
Although users created in Hue can manage the data/user/xxx under their own folders. So what about Hadoop Superuser's data management, Hue provides a feature that integrates UNIX users and hue, so that users of Hadoop Superuser can manage data smoothly by logging into hue.
The next few steps to integrate
1 Ensure that the Hadoop user group is in the system
2 Run the following command
Uild/env/bin/hue Useradmin_sync_with_unix
3 run the above command, enter the hue of the total you will find that the user has been integrated, but, no password, so the UNIX users need to set a password and assign user groups.
4 after completing the above steps, log in, and you will be able to manage the HDFs data happily.
5 Useradmin_sync_with_unix provides a number of parameters. From official documents
- –min-uid–the Minimum Linux user ID that would be imported (inclusive). The default value is 500.
- –max-uid–the Maximum Linux user ID that would be imported (exclusive). The default value is 65334.
- –min-gid–the Minimum Linux group ID that would be imported (inclusive). The default value is 500.
- –max-gid–the Maximum Linux group ID that would be imported (exclusive). The default value is 65334.
- –check-shell–a Boolean flag to see if the users shell is set To/bin/false.
6 Ensure that the Hadoop user group exists
grep Hadoop
----------------------------------
Reference
http://gethue.com/hadoop-tutorial-how-to-integrate-unix-users-and-groups/
Hadoop management tool Hue configuration-integrated UNIX users and user groups