Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BIGTOP-2603: NN/RM charm should include a spark user/group #163

Closed

Conversation

kwmonroe
Copy link
Member

@kwmonroe kwmonroe commented Nov 22, 2016

When NN/RM are not colocated with spark, they do not know about the spark user/group. When in yarn-client mode, the spark charm will create hdfs dirs with spark ACLs. This leads to warnings like this on the namenode:

WARN org.apache.hadoop.security.UserGroupInformation: No groups available for user spark

Always create the spark user/group on NN and RM. This also works if spark/NN/RM are all colocated.

Note that hadoop should be a secondary group (not primary) for extra users created by these charms, so this PR ensures that as well.

@ktsakalozos
Copy link
Contributor

LGTM +1 . Do you think we should be doing the same with other components that may use hdfs, like hbase?

@kwmonroe
Copy link
Member Author

kwmonroe commented Dec 5, 2016

Yeah, we probably should. oozie and hue come to mind. We chatted about this a little while ago. It would really be nice if the charm that relied on hadoop-plugin would send user info over the plugin relation.

The plugin would then proxy that to the NN or RM as needed. Unfortunately, this isn't really a priority at the moment, so I think we'll treat spark as special for now and work up a more generic solution later.

@asfgit asfgit closed this in 8e4d973 Feb 3, 2017
@kwmonroe kwmonroe deleted the bug/BIGTOP-2603/add-spark-user branch February 3, 2017 17:32
kulikovav pushed a commit to kulikovav/bigtop that referenced this pull request Feb 8, 2017
Signed-off-by: Kevin W Monroe <kevin.monroe@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants