Github user rvs commented on a diff in the pull request:
https://github.com/apache/bigtop/pull/193#discussion_r121272384
--- Diff:
bigtop-tests/smoke-tests/odpi-runtime/src/test/groovy/org/odpi/specs/runtime/TestSpecsRuntime.groovy
---
@@ -239,6 +239,34 @@ public class TestSpecsRuntime {
}
)
break
+ case 'hadoop_users':
+ Shell sh = new Shell()
+ def confDir = getEnv(arguments['confDir'], arguments['envcmd'])
+
+ def dfsUser = sh.exec("sed -n '/dfs.cluster.administrator/ {n;p}'
" + confDir + "/hdfs-site.xml | grep -oPm1 '(?<=<value>)[^<]+'").out
+ if (sh.getRet() == 0) {
+ System.out.println("Found DFS user in hadoop conf hdfs-site.xml:
" + dfsUser)
+ }
+ def dfsGroup = sh.exec("sed -n '/dfs.permissions.superusergroup/
{n;p}' " + confDir + "/hdfs-site.xml | grep -oPm1 '(?<=<value>)[^<]+'").out
+ if (sh.getRet() == 0) {
+ System.out.println("Found DFS group in hadoop conf
hdfs-site.xml: " + dfsGroup)
+ }
+
+ def yarnUser = sh.exec("sed -n '/yarn.admin.acl/ {n;p}' " +
confDir + "/yarn-site.xml | grep -oPm1 '(?<=<value>)[^<]+'").out
+ if (sh.getRet() == 0) {
+ System.out.println("Found Yarn user in hadoop conf
yarn-site.xml: " + yarnUser)
+ }
+ def yarnGroup = sh.exec("sed -n
'/yarn.nodemanager.linux-container-executor.group/ {n;p}' " + confDir +
"/yarn-site.xml | grep -oPm1 '(?<=<value>)[^<]+'").out
+ if (sh.getRet() == 0) {
+ System.out.println("Found Yarn group in hadoop conf
yarn-site.xml: " + yarnGroup)
+ }
+
+ def mapredUser = sh.exec("sed -n
'/mapreduce.cluster.administrators/ {n;p}' " + confDir + "/mapred-site.xml |
grep -oPm1 '(?<=<value>)[^<]+'").out
+ if (sh.getRet() == 0) {
+ System.out.println("Found MapReduce user in hadoop conf
mapred-site.xml: " + mapredUser)
+ }
+
+ break
--- End diff --
@rajddesai apologies for this totally disappearing from my radar -- are you
still up to trying a more reliable approach of Hadoop Configuration here?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---