Created 04-12-2016 03:47 PM
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?
Created 04-13-2016 12:31 PM
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.
Created 04-13-2016 12:31 PM
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.
Created 06-13-2017 05:05 AM
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
Created 04-14-2016 07:26 AM
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 } } } }
Created 04-14-2016 12:49 PM
Instead of global could you try "cluster-env" ?
Created 04-14-2016 07:50 AM
allconfigsh.txtconfiglst.txt@jramakrishnan
I've made a script which does the config.sh set for all configs (see attachement). This works.