stderr: /var/lib/ambari-agent/data/errors-452.txt Traceback (most recent call last): File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 37, in AfterInstallHook().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute method(env) File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 31, in hook setup_hdp_symlinks() File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 49, in setup_hdp_symlinks hdp_select.select_all(version) File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/hdp_select.py", line 122, in select_all Execute(command, only_if = only_if_command) File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__ self.env.run() File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run self.run_action(resource, action) File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action provider_action() File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 238, in action_run tries=self.resource.tries, try_sleep=self.resource.try_sleep) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner result = function(command, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call tries=tries, try_sleep=try_sleep) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper result = _call(command, **kwargs_copy) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call raise Fail(err_msg) resource_management.core.exceptions.Fail: Execution of 'ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.4.2.0-258 | tail -1`' returned 1. Traceback (most recent call last): File "/usr/bin/hdp-select", line 382, in printVersions() File "/usr/bin/hdp-select", line 239, in printVersions result[tuple(map(int, versionRegex.split(f)))] = f ValueError: invalid literal for int() with base 10: 'kafka' ERROR: set command takes 2 parameters, instead of 1 usage: hdp-select [-h] [] [] [] Set the selected version of HDP. positional arguments: One of set, status, versions, or packages the package name to set the HDP version to set optional arguments: -h, --help show this help message and exit -r, --rpm-mode if true checks if there is symlink exists and creates the symlink if it doesn't Commands: set : set the package to a specified version status : show the version of the package versions : show the currently installed versions packages : show the individual package names stdout: /var/lib/ambari-agent/data/output-452.txt 2016-06-14 09:34:00,612 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.4.2.0-258 2016-06-14 09:34:00,612 - Checking if need to create versioned conf dir /etc/hadoop/2.4.2.0-258/0 2016-06-14 09:34:00,613 - call['conf-select create-conf-dir --package hadoop --stack-version 2.4.2.0-258 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1} 2016-06-14 09:34:00,634 - call returned (1, '/etc/hadoop/2.4.2.0-258/0 exist already', '') 2016-06-14 09:34:00,634 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.4.2.0-258 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False} 2016-06-14 09:34:00,655 - checked_call returned (0, '') 2016-06-14 09:34:00,655 - Ensuring that hadoop has the correct symlink structure 2016-06-14 09:34:00,655 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf 2016-06-14 09:34:00,656 - Group['spark'] {} 2016-06-14 09:34:00,660 - Group['hadoop'] {} 2016-06-14 09:34:00,661 - Group['users'] {} 2016-06-14 09:34:00,661 - Group['knox'] {} 2016-06-14 09:34:00,661 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,662 - User['storm'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,663 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,663 - User['oozie'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users']} 2016-06-14 09:34:00,664 - User['atlas'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,665 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,665 - User['falcon'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users']} 2016-06-14 09:34:00,666 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users']} 2016-06-14 09:34:00,666 - User['accumulo'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,667 - User['mahout'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,668 - User['spark'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,668 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users']} 2016-06-14 09:34:00,669 - User['flume'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,669 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,670 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,671 - User['sqoop'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,671 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,672 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,672 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,673 - User['knox'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,674 - User['hcat'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']} 2016-06-14 09:34:00,674 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555} 2016-06-14 09:34:00,685 - 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)'} 2016-06-14 09:34:00,689 - 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 2016-06-14 09:34:00,690 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'recursive': True, 'mode': 0775, 'cd_access': 'a'} 2016-06-14 09:34:00,691 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555} 2016-06-14 09:34:00,692 - 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)'} 2016-06-14 09:34:00,697 - 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 2016-06-14 09:34:00,697 - Group['hdfs'] {} 2016-06-14 09:34:00,698 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hadoop', 'hdfs']} 2016-06-14 09:34:00,699 - FS Type: 2016-06-14 09:34:00,699 - Directory['/etc/hadoop'] {'mode': 0755} 2016-06-14 09:34:00,710 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'} 2016-06-14 09:34:00,711 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 0777} 2016-06-14 09:34:00,726 - Repository['HDP-2.4'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.2.0', 'action': ['create'], 'components': ['HDP', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'HDP', 'mirror_list': None} 2016-06-14 09:34:00,773 - File['/etc/yum.repos.d/HDP.repo'] {'content': '[HDP-2.4]\nname=HDP-2.4\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.2.0\n\npath=/\nenabled=1\ngpgcheck=0'} 2016-06-14 09:34:00,773 - Repository['HDP-UTILS-1.1.0.20'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos6', 'action': ['create'], 'components': ['HDP-UTILS', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'HDP-UTILS', 'mirror_list': None} 2016-06-14 09:34:00,782 - File['/etc/yum.repos.d/HDP-UTILS.repo'] {'content': '[HDP-UTILS-1.1.0.20]\nname=HDP-UTILS-1.1.0.20\nbaseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos6\n\npath=/\nenabled=1\ngpgcheck=0'} 2016-06-14 09:34:00,783 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2016-06-14 09:34:04,065 - Skipping installation of existing package unzip 2016-06-14 09:34:04,066 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2016-06-14 09:34:04,106 - Skipping installation of existing package curl 2016-06-14 09:34:04,107 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2016-06-14 09:34:04,147 - Skipping installation of existing package hdp-select 2016-06-14 09:34:04,317 - Package['accumulo_2_4_*'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2016-06-14 09:34:04,515 - Skipping installation of existing package accumulo_2_4_* 2016-06-14 09:34:04,567 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.4.2.0-258 2016-06-14 09:34:04,567 - Checking if need to create versioned conf dir /etc/hadoop/2.4.2.0-258/0 2016-06-14 09:34:04,568 - call['conf-select create-conf-dir --package hadoop --stack-version 2.4.2.0-258 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1} 2016-06-14 09:34:04,589 - call returned (1, '/etc/hadoop/2.4.2.0-258/0 exist already', '') 2016-06-14 09:34:04,589 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.4.2.0-258 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False} 2016-06-14 09:34:04,610 - checked_call returned (0, '') 2016-06-14 09:34:04,610 - Ensuring that hadoop has the correct symlink structure 2016-06-14 09:34:04,610 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf 2016-06-14 09:34:04,612 - Directory['/usr/hdp/current/accumulo-client/conf'] {'owner': 'accumulo', 'group': 'hadoop', 'recursive': True, 'mode': 0755} 2016-06-14 09:34:04,613 - XmlConfig['accumulo-site.xml'] {'group': 'hadoop', 'conf_dir': '/usr/hdp/current/accumulo-client/conf', 'mode': 0644, 'configuration_attributes': {}, 'owner': 'accumulo', 'configurations': ...} 2016-06-14 09:34:04,626 - Generating config: /usr/hdp/current/accumulo-client/conf/accumulo-site.xml 2016-06-14 09:34:04,626 - File['/usr/hdp/current/accumulo-client/conf/accumulo-site.xml'] {'owner': 'accumulo', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': 0644, 'encoding': 'UTF-8'} 2016-06-14 09:34:04,639 - File['/usr/hdp/current/accumulo-client/conf/accumulo-env.sh'] {'content': InlineTemplate(...), 'owner': 'accumulo', 'group': 'hadoop', 'mode': 0644} 2016-06-14 09:34:04,645 - PropertiesFile['/usr/hdp/current/accumulo-client/conf/client.conf'] {'owner': 'accumulo', 'group': 'hadoop', 'properties': {'instance.zookeeper.host': 'sibi1b.gov.calgary.ab.ca:2181', 'instance.name': 'hdp-accumulo-instance', 'instance.zookeeper.timeout': '30s'}} 2016-06-14 09:34:04,668 - Generating properties file: /usr/hdp/current/accumulo-client/conf/client.conf 2016-06-14 09:34:04,668 - File['/usr/hdp/current/accumulo-client/conf/client.conf'] {'owner': 'accumulo', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': None} 2016-06-14 09:34:04,677 - Writing File['/usr/hdp/current/accumulo-client/conf/client.conf'] because contents don't match 2016-06-14 09:34:04,679 - File['/usr/hdp/current/accumulo-client/conf/log4j.properties'] {'content': ..., 'owner': 'accumulo', 'group': 'hadoop', 'mode': 0644} 2016-06-14 09:34:04,687 - TemplateConfig['/usr/hdp/current/accumulo-client/conf/auditLog.xml'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'} 2016-06-14 09:34:04,694 - File['/usr/hdp/current/accumulo-client/conf/auditLog.xml'] {'content': Template('auditLog.xml.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None} 2016-06-14 09:34:04,697 - TemplateConfig['/usr/hdp/current/accumulo-client/conf/generic_logger.xml'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'} 2016-06-14 09:34:04,711 - File['/usr/hdp/current/accumulo-client/conf/generic_logger.xml'] {'content': Template('generic_logger.xml.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None} 2016-06-14 09:34:04,719 - TemplateConfig['/usr/hdp/current/accumulo-client/conf/monitor_logger.xml'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'} 2016-06-14 09:34:04,723 - File['/usr/hdp/current/accumulo-client/conf/monitor_logger.xml'] {'content': Template('monitor_logger.xml.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None} 2016-06-14 09:34:04,725 - File['/usr/hdp/current/accumulo-client/conf/accumulo-metrics.xml'] {'content': StaticFile('accumulo-metrics.xml'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': 0644} 2016-06-14 09:34:04,738 - TemplateConfig['/usr/hdp/current/accumulo-client/conf/tracers'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'} 2016-06-14 09:34:04,741 - File['/usr/hdp/current/accumulo-client/conf/tracers'] {'content': Template('tracers.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None} 2016-06-14 09:34:04,748 - TemplateConfig['/usr/hdp/current/accumulo-client/conf/gc'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'} 2016-06-14 09:34:04,761 - File['/usr/hdp/current/accumulo-client/conf/gc'] {'content': Template('gc.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None} 2016-06-14 09:34:04,767 - TemplateConfig['/usr/hdp/current/accumulo-client/conf/monitor'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'} 2016-06-14 09:34:04,769 - File['/usr/hdp/current/accumulo-client/conf/monitor'] {'content': Template('monitor.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None} 2016-06-14 09:34:04,771 - TemplateConfig['/usr/hdp/current/accumulo-client/conf/slaves'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'} 2016-06-14 09:34:04,773 - File['/usr/hdp/current/accumulo-client/conf/slaves'] {'content': Template('slaves.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None} 2016-06-14 09:34:04,775 - TemplateConfig['/usr/hdp/current/accumulo-client/conf/masters'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'} 2016-06-14 09:34:04,778 - File['/usr/hdp/current/accumulo-client/conf/masters'] {'content': Template('masters.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None} 2016-06-14 09:34:04,779 - TemplateConfig['/usr/hdp/current/accumulo-client/conf/hadoop-metrics2-accumulo.properties'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'} 2016-06-14 09:34:04,785 - File['/usr/hdp/current/accumulo-client/conf/hadoop-metrics2-accumulo.properties'] {'content': Template('hadoop-metrics2-accumulo.properties.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None} 2016-06-14 09:34:05,054 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.4.2.0-258 2016-06-14 09:34:05,054 - Checking if need to create versioned conf dir /etc/hadoop/2.4.2.0-258/0 2016-06-14 09:34:05,054 - call['conf-select create-conf-dir --package hadoop --stack-version 2.4.2.0-258 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1} 2016-06-14 09:34:05,075 - call returned (1, '/etc/hadoop/2.4.2.0-258/0 exist already', '') 2016-06-14 09:34:05,075 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.4.2.0-258 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False} 2016-06-14 09:34:05,096 - checked_call returned (0, '') 2016-06-14 09:34:05,096 - Ensuring that hadoop has the correct symlink structure 2016-06-14 09:34:05,096 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf 2016-06-14 09:34:05,097 - Executing hdp-select set all on 2.4.2.0-258 2016-06-14 09:34:05,097 - Execute['ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.4.2.0-258 | tail -1`'] {'only_if': 'ls -d /usr/hdp/2.4.2.0-258*'}