https://github.com/prateek/cdh-user-prep
https://github.com/prateek/cdh-user-prep
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/prateek/cdh-user-prep
- Owner: prateek
- Created: 2014-06-13T16:36:39.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-13T16:40:26.000Z (about 12 years ago)
- Last Synced: 2025-11-20T15:29:04.970Z (7 months ago)
- Language: Shell
- Size: 121 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
User Accounts for CDH
---------------------
`create-user-accounts.sh`: Script to create the required user accounts
```sh
# Usage
# Execute on every node in the cluster
$ ./create-user-accounts.sh
```
`verify-user-accounts.sh`: Script to check if the required user accounts exist
```sh
# Sample usage to check errors
# Execute on every node in the cluster
$ ./verify-user-accounts.sh | grep -i error | sort
[ERROR] User: flume does not belong to Group: flume
[ERROR] User: hbase does not belong to Group: hbase
[ERROR] User: hdfs does not belong to Group: hdfs
[ERROR] User: hive does not belong to Group: hive
[ERROR] User: httpfs does not belong to Group: httpfs
[ERROR] User: hue does not belong to Group: hue
[ERROR] User: impala does not belong to Group: hdfs
[ERROR] User: impala does not belong to Group: hive
[ERROR] User: impala does not belong to Group: impala
[ERROR] User: mapred does not belong to Group: mapred
[ERROR] User: oozie does not belong to Group: oozie
[ERROR] User: sqoop2 does not belong to Group: sqoop
[ERROR] User: sqoop2 does not belong to Group: sqoop2
[ERROR] User: sqoop does not belong to Group: sqoop
[ERROR] User: yarn does not belong to Group: yarn
[ERROR] User: zookeeper does not belong to Group: zookeeper
```