Support Questions

Find answers, ask questions, and share your expertise

Is it possible to set 'Skip Group Modifications' on a already installed environment

avatar
New Contributor

Our environment is already installed. Now we want to use an LDAP for the user managment (hdfs, oozie, sqoop, etc...). When starting the hosts an error is raised about usermod is not possible ( user does not exist in /etc/passwd).

During installation you can set 'Skip Group Modifications'. How can this be set afterwards?

1 ACCEPTED SOLUTION

avatar

@Mart van Loon

You could try setting this cluster-env parameter "ignore_groupsusers_create" using configs.sh.

cd /var/lib/ambari-server/resources/scripts

./configs.sh set $AMBARI-SERVER-FQDN $AMBARI-CLUSTER-NAME global ignore_groupsusers_create "true"

Hope this helps.

View solution in original post

5 REPLIES 5

avatar

@Mart van Loon

You could try setting this cluster-env parameter "ignore_groupsusers_create" using configs.sh.

cd /var/lib/ambari-server/resources/scripts

./configs.sh set $AMBARI-SERVER-FQDN $AMBARI-CLUSTER-NAME global ignore_groupsusers_create "true"

Hope this helps.

avatar
Master Guru

This works after replacing "global" with "cluster-env", and quotes on the new value are not required, for example:

./configs.sh set h10.example.com c1 cluster-env ignore_groupsusers_create true

avatar
New Contributor

@jramakrishnan

Thanks for the response. I've tried it but get an error.

/var/lib/ambari-server/resources/scripts/configs.sh -u admin -p <password> set hdptonamb01.ton.rsg hdptoncluster global ignore_groupsusers_create "true"

USERID=admin PASSWORD=********* [ERROR] "global" not found in server response. [ERROR] Output of `curl -k -s -u admin:admin "http://hdptonamb01.ton.rsg:8080/api/v1/clusters/hdptoncluster?fields=Clusters/desired_configs"` is: [ERROR] { "href" : "http://hdptonamb01.ton.rsg:8080/api/v1/clusters/hdptoncluster?fields=Clusters/desired_configs", "Clusters" : { "cluster_name" : "hdptoncluster", "version" : "HDP-2.3", "desired_configs" : { "ams-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ams-hbase-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ams-hbase-log4j" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ams-hbase-policy" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ams-hbase-security-site" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ams-hbase-site" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ams-log4j" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ams-site" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "capacity-scheduler" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "cluster-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "core-site" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "gateway-log4j" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "gateway-site" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "hadoop-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "hadoop-policy" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "hcat-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "hdfs-log4j" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "hdfs-site" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "hive-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "hive-exec-log4j" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "hive-log4j" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "hive-site" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "hiveserver2-site" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "knox-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ldap-log4j" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "mapred-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "mapred-site" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "oozie-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "oozie-log4j" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "oozie-site" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "pig-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "pig-log4j" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "pig-properties" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-hdfs-audit" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-hdfs-plugin-properties" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-hdfs-policymgr-ssl" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-hdfs-security" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-hive-audit" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-hive-plugin-properties" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-hive-policymgr-ssl" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-hive-security" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-knox-audit" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-knox-plugin-properties" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-knox-policymgr-ssl" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-knox-security" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-yarn-audit" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-yarn-plugin-properties" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-yarn-policymgr-ssl" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ranger-yarn-security" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "sqoop-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ssl-client" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "ssl-server" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "tez-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "tez-site" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "topology" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "users-ldif" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "webhcat-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "webhcat-log4j" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "webhcat-site" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "yarn-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "yarn-log4j" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "yarn-site" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "zoo.cfg" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "zookeeper-env" : { "tag" : "version1", "user" : "admin", "version" : 1 }, "zookeeper-log4j" : { "tag" : "version1", "user" : "admin", "version" : 1 } } } }

avatar

@Mart van Loon

Instead of global could you try "cluster-env" ?

avatar
New Contributor

allconfigsh.txtconfiglst.txt@jramakrishnan

I've made a script which does the config.sh set for all configs (see attachement). This works.