I use ambari create an elastic cluster.
I need to install x-pack by linux shell ('elasticsearch-plugin install x-pack') before start Elasticsearch Master.
If i don't do this,start Elasticsearch Master Would fail.
I don't understand why every time i restart Elasticsearch Master,it need remove and install x-pack?
Download the installation package is spenda lot of seconds,so i want to remove this step,but i don't know what and where configs need to modify.
Thank for you help.
stdout: /var/lib/ambari-agent/data/output-1590.txt
2017-04-10 11:07:52,589 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.5.0.0-1245
2017-04-10 11:07:52,591 - Checking if need to create versioned conf dir /etc/hadoop/2.5.0.0-1245/0
2017-04-10 11:07:52,593 - call[('ambari-python-wrap', u'/usr/bin/conf-select', 'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.0.0-1245', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2017-04-10 11:07:52,624 - call returned (1, '/etc/hadoop/2.5.0.0-1245/0 exist already', '')
2017-04-10 11:07:52,625 - checked_call[('ambari-python-wrap', u'/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.0.0-1245', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2017-04-10 11:07:52,655 - checked_call returned (0, '')
2017-04-10 11:07:52,656 - Ensuring that hadoop has the correct symlink structure
2017-04-10 11:07:52,657 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2017-04-10 11:07:52,827 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.5.0.0-1245
2017-04-10 11:07:52,829 - Checking if need to create versioned conf dir /etc/hadoop/2.5.0.0-1245/0
2017-04-10 11:07:52,831 - call[('ambari-python-wrap', u'/usr/bin/conf-select', 'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.0.0-1245', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2017-04-10 11:07:52,859 - call returned (1, '/etc/hadoop/2.5.0.0-1245/0 exist already', '')
2017-04-10 11:07:52,859 - checked_call[('ambari-python-wrap', u'/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.0.0-1245', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2017-04-10 11:07:52,888 - checked_call returned (0, '')
2017-04-10 11:07:52,889 - Ensuring that hadoop has the correct symlink structure
2017-04-10 11:07:52,889 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2017-04-10 11:07:52,891 - Group['livy'] {}
2017-04-10 11:07:52,892 - Group['elasticsearch'] {}
2017-04-10 11:07:52,893 - Group['spark'] {}
2017-04-10 11:07:52,893 - Group['zeppelin'] {}
2017-04-10 11:07:52,893 - Group['hadoop'] {}
2017-04-10 11:07:52,893 - Group['users'] {}
2017-04-10 11:07:52,893 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:07:52,894 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:07:52,895 - User['oozie'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']}
2017-04-10 11:07:52,895 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:07:52,896 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']}
2017-04-10 11:07:52,896 - User['zeppelin'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:07:52,897 - User['livy'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:07:52,897 - User['elasticsearch'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:07:52,898 - User['spark'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:07:52,898 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']}
2017-04-10 11:07:52,899 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:07:52,899 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:07:52,900 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:07:52,900 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:07:52,901 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:07:52,901 - User['hcat'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:07:52,902 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2017-04-10 11:07:52,904 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2017-04-10 11:07:52,911 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa'] due to not_if
2017-04-10 11:07:52,911 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'create_parents': True, 'mode': 0775, 'cd_access': 'a'}
2017-04-10 11:07:52,913 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2017-04-10 11:07:52,914 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2017-04-10 11:07:52,922 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] due to not_if
2017-04-10 11:07:52,922 - Group['hdfs'] {}
2017-04-10 11:07:52,923 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': [u'hadoop', u'hdfs']}
2017-04-10 11:07:52,924 - FS Type:
2017-04-10 11:07:52,924 - Directory['/etc/hadoop'] {'mode': 0755}
2017-04-10 11:07:52,942 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2017-04-10 11:07:52,942 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2017-04-10 11:07:52,956 - Execute[('setenforce', '0')] {'not_if': '(! which getenforce ) || (which getenforce && getenforce | grep -q Disabled)', 'sudo': True, 'only_if': 'test -f /selinux/enforce'}
2017-04-10 11:07:52,968 - Skipping Execute[('setenforce', '0')] due to only_if
2017-04-10 11:07:52,969 - Directory['/var/log/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'hadoop', 'mode': 0775, 'cd_access': 'a'}
2017-04-10 11:07:52,972 - Directory['/var/run/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'root', 'cd_access': 'a'}
2017-04-10 11:07:52,973 - Directory['/tmp/hadoop-hdfs'] {'owner': 'hdfs', 'create_parents': True, 'cd_access': 'a'}
2017-04-10 11:07:52,981 - File['/usr/hdp/current/hadoop-client/conf/commons-logging.properties'] {'content': Template('commons-logging.properties.j2'), 'owner': 'hdfs'}
2017-04-10 11:07:52,982 - File['/usr/hdp/current/hadoop-client/conf/health_check'] {'content': Template('health_check.j2'), 'owner': 'hdfs'}
2017-04-10 11:07:52,983 - File['/usr/hdp/current/hadoop-client/conf/log4j.properties'] {'content': ..., 'owner': 'hdfs', 'group': 'hadoop', 'mode': 0644}
2017-04-10 11:07:52,992 - File['/usr/hdp/current/hadoop-client/conf/hadoop-metrics2.properties'] {'content': Template('hadoop-metrics2.properties.j2'), 'owner': 'hdfs', 'group': 'hadoop'}
2017-04-10 11:07:52,993 - File['/usr/hdp/current/hadoop-client/conf/task-log4j.properties'] {'content': StaticFile('task-log4j.properties'), 'mode': 0755}
2017-04-10 11:07:52,993 - File['/usr/hdp/current/hadoop-client/conf/configuration.xsl'] {'owner': 'hdfs', 'group': 'hadoop'}
2017-04-10 11:07:52,997 - File['/etc/hadoop/conf/topology_mappings.data'] {'owner': 'hdfs', 'content': Template('topology_mappings.data.j2'), 'only_if': 'test -d /etc/hadoop/conf', 'group': 'hadoop'}
2017-04-10 11:07:53,001 - File['/etc/hadoop/conf/topology_script.py'] {'content': StaticFile('topology_script.py'), 'only_if': 'test -d /etc/hadoop/conf', 'mode': 0755}
2017-04-10 11:07:53,197 - File['/hadoop/elasticsearch/config/elasticsearch.yml'] {'owner': 'elasticsearch', 'content': Template('elasticsearch.yml.j2'), 'group': 'elasticsearch'}
2017-04-10 11:07:53,199 - Execute['/hadoop/elasticsearch/bin/elasticsearch-plugin remove x-pack'] {}
2017-04-10 11:07:53,884 - Execute['/hadoop/elasticsearch/bin/elasticsearch-plugin install x-pack'] {}
2017-04-10 11:14:55,064 - Execute['chown -R elasticsearch:elasticsearch /hadoop/elasticsearch'] {}
2017-04-10 11:14:55,103 - Execute['echo "Configuration complete"'] {}
2017-04-10 11:14:55,108 - Execute['/hadoop/elasticsearch/bin/elasticsearch -d -p /hadoop/elasticsearch/run/elasticsearch/elasticsearch.pid'] {'user': 'elasticsearch'}
Command completed successfully!
stdout: /var/lib/ambari-agent/data/output-1593.txt
2017-04-10 11:14:41,775 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.5.0.0-1245
2017-04-10 11:14:41,777 - Checking if need to create versioned conf dir /etc/hadoop/2.5.0.0-1245/0
2017-04-10 11:14:41,779 - call[('ambari-python-wrap', u'/usr/bin/conf-select', 'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.0.0-1245', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2017-04-10 11:14:41,809 - call returned (1, '/etc/hadoop/2.5.0.0-1245/0 exist already', '')
2017-04-10 11:14:41,810 - checked_call[('ambari-python-wrap', u'/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.0.0-1245', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2017-04-10 11:14:41,840 - checked_call returned (0, '')
2017-04-10 11:14:41,841 - Ensuring that hadoop has the correct symlink structure
2017-04-10 11:14:41,841 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2017-04-10 11:14:42,013 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.5.0.0-1245
2017-04-10 11:14:42,015 - Checking if need to create versioned conf dir /etc/hadoop/2.5.0.0-1245/0
2017-04-10 11:14:42,017 - call[('ambari-python-wrap', u'/usr/bin/conf-select', 'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.0.0-1245', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2017-04-10 11:14:42,048 - call returned (1, '/etc/hadoop/2.5.0.0-1245/0 exist already', '')
2017-04-10 11:14:42,049 - checked_call[('ambari-python-wrap', u'/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.0.0-1245', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2017-04-10 11:14:42,078 - checked_call returned (0, '')
2017-04-10 11:14:42,080 - Ensuring that hadoop has the correct symlink structure
2017-04-10 11:14:42,080 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2017-04-10 11:14:42,081 - Group['livy'] {}
2017-04-10 11:14:42,083 - Group['elasticsearch'] {}
2017-04-10 11:14:42,083 - Group['spark'] {}
2017-04-10 11:14:42,083 - Group['zeppelin'] {}
2017-04-10 11:14:42,083 - Group['hadoop'] {}
2017-04-10 11:14:42,084 - Group['users'] {}
2017-04-10 11:14:42,084 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:14:42,085 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:14:42,085 - User['oozie'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']}
2017-04-10 11:14:42,086 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:14:42,086 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']}
2017-04-10 11:14:42,087 - User['zeppelin'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:14:42,087 - User['livy'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:14:42,088 - User['elasticsearch'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:14:42,089 - User['spark'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:14:42,089 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']}
2017-04-10 11:14:42,090 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:14:42,090 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:14:42,091 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:14:42,091 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:14:42,092 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:14:42,092 - User['hcat'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-04-10 11:14:42,093 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2017-04-10 11:14:42,095 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2017-04-10 11:14:42,103 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa'] due to not_if
2017-04-10 11:14:42,103 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'create_parents': True, 'mode': 0775, 'cd_access': 'a'}
2017-04-10 11:14:42,104 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2017-04-10 11:14:42,106 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2017-04-10 11:14:42,114 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] due to not_if
2017-04-10 11:14:42,115 - Group['hdfs'] {}
2017-04-10 11:14:42,116 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': [u'hadoop', u'hdfs']}
2017-04-10 11:14:42,117 - FS Type:
2017-04-10 11:14:42,117 - Directory['/etc/hadoop'] {'mode': 0755}
2017-04-10 11:14:42,134 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2017-04-10 11:14:42,134 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2017-04-10 11:14:42,150 - Execute[('setenforce', '0')] {'not_if': '(! which getenforce ) || (which getenforce && getenforce | grep -q Disabled)', 'sudo': True, 'only_if': 'test -f /selinux/enforce'}
2017-04-10 11:14:42,164 - Skipping Execute[('setenforce', '0')] due to only_if
2017-04-10 11:14:42,165 - Directory['/var/log/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'hadoop', 'mode': 0775, 'cd_access': 'a'}
2017-04-10 11:14:42,168 - Directory['/var/run/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'root', 'cd_access': 'a'}
2017-04-10 11:14:42,169 - Directory['/tmp/hadoop-hdfs'] {'owner': 'hdfs', 'create_parents': True, 'cd_access': 'a'}
2017-04-10 11:14:42,177 - File['/usr/hdp/current/hadoop-client/conf/commons-logging.properties'] {'content': Template('commons-logging.properties.j2'), 'owner': 'hdfs'}
2017-04-10 11:14:42,180 - File['/usr/hdp/current/hadoop-client/conf/health_check'] {'content': Template('health_check.j2'), 'owner': 'hdfs'}
2017-04-10 11:14:42,181 - File['/usr/hdp/current/hadoop-client/conf/log4j.properties'] {'content': ..., 'owner': 'hdfs', 'group': 'hadoop', 'mode': 0644}
2017-04-10 11:14:42,193 - File['/usr/hdp/current/hadoop-client/conf/hadoop-metrics2.properties'] {'content': Template('hadoop-metrics2.properties.j2'), 'owner': 'hdfs', 'group': 'hadoop'}
2017-04-10 11:14:42,194 - File['/usr/hdp/current/hadoop-client/conf/task-log4j.properties'] {'content': StaticFile('task-log4j.properties'), 'mode': 0755}
2017-04-10 11:14:42,195 - File['/usr/hdp/current/hadoop-client/conf/configuration.xsl'] {'owner': 'hdfs', 'group': 'hadoop'}
2017-04-10 11:14:42,199 - File['/etc/hadoop/conf/topology_mappings.data'] {'owner': 'hdfs', 'content': Template('topology_mappings.data.j2'), 'only_if': 'test -d /etc/hadoop/conf', 'group': 'hadoop'}
2017-04-10 11:14:42,205 - File['/etc/hadoop/conf/topology_script.py'] {'content': StaticFile('topology_script.py'), 'only_if': 'test -d /etc/hadoop/conf', 'mode': 0755}
2017-04-10 11:14:42,442 - File['/hadoop/elasticsearch/config/elasticsearch.yml'] {'owner': 'elasticsearch', 'content': Template('elasticsearch.yml.j2'), 'group': 'elasticsearch'}
2017-04-10 11:14:42,444 - Execute['/hadoop/elasticsearch/bin/elasticsearch-plugin remove x-pack'] {}
Command failed after 1 tries