stderr: Traceback (most recent call last): File "/var/lib/ambari-agent/cache/stacks/HDP/2.6/services/NIFI/package/scripts/master.py", line 131, in Master().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 375, in execute method(env) File "/var/lib/ambari-agent/cache/stacks/HDP/2.6/services/NIFI/package/scripts/master.py", line 50, in install Execute('tar -xf '+params.temp_file+' -C '+ params.nifi_dir +' >> ' + params.nifi_log_file, user=params.nifi_user) File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, 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 262, 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 72, in inner result = function(command, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper result = _call(command, **kwargs_copy) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call raise ExecutionFailed(err_msg, code, out, err) resource_management.core.exceptions.ExecutionFailed: Execution of 'tar -xf /tmp/nifi-1.1.0.2.1.2.0-10-bin.tar.gz -C /opt/nifi-1.1.0.2.1.2.0-10-bin >> /var/log/nifi/nifi-setup.log' returned 2. tar: This does not look like a tar archive gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now stdout: 2018-03-28 20:35:42,120 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=None -> 2.6 2018-03-28 20:35:42,123 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf 2018-03-28 20:35:42,124 - Group['livy'] {} 2018-03-28 20:35:42,126 - Group['spark'] {} 2018-03-28 20:35:42,126 - Group['ranger'] {} 2018-03-28 20:35:42,126 - Group['hdfs'] {} 2018-03-28 20:35:42,126 - Group['zeppelin'] {} 2018-03-28 20:35:42,132 - Group['hadoop'] {} 2018-03-28 20:35:42,133 - Group['nifi'] {} 2018-03-28 20:35:42,133 - Group['users'] {} 2018-03-28 20:35:42,133 - Group['knox'] {} 2018-03-28 20:35:42,134 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,143 - User['storm'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,143 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,144 - User['infra-solr'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,145 - User['oozie'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users'], 'uid': None} 2018-03-28 20:35:42,152 - User['atlas'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,153 - User['falcon'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users'], 'uid': None} 2018-03-28 20:35:42,154 - User['ranger'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['ranger'], 'uid': None} 2018-03-28 20:35:42,155 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users'], 'uid': None} 2018-03-28 20:35:42,156 - User['zeppelin'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['zeppelin', 'hadoop'], 'uid': None} 2018-03-28 20:35:42,162 - User['nifi'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,163 - User['livy'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,164 - User['spark'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,165 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users'], 'uid': None} 2018-03-28 20:35:42,172 - User['flume'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,173 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,174 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hdfs'], 'uid': None} 2018-03-28 20:35:42,174 - User['sqoop'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,181 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,182 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,183 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,184 - User['knox'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,185 - User['hcat'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-03-28 20:35:42,192 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555} 2018-03-28 20:35:42,194 - 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 0'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'} 2018-03-28 20:35:42,305 - 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 0'] due to not_if 2018-03-28 20:35:42,309 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'create_parents': True, 'mode': 0775, 'cd_access': 'a'} 2018-03-28 20:35:42,310 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555} 2018-03-28 20:35:42,312 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555} 2018-03-28 20:35:42,319 - call['/var/lib/ambari-agent/tmp/changeUid.sh hbase'] {} 2018-03-28 20:35:42,431 - call returned (0, '1002') 2018-03-28 20:35:42,432 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1002'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'} 2018-03-28 20:35:42,543 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1002'] due to not_if 2018-03-28 20:35:42,543 - Group['hdfs'] {} 2018-03-28 20:35:42,544 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hdfs', 'hdfs']} 2018-03-28 20:35:42,544 - FS Type: 2018-03-28 20:35:42,544 - Directory['/etc/hadoop'] {'mode': 0755} 2018-03-28 20:35:42,576 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'} 2018-03-28 20:35:42,582 - Writing File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] because contents don't match 2018-03-28 20:35:42,582 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777} 2018-03-28 20:35:42,615 - Repository['HDP-2.6-repo-1'] {'append_to_file': False, 'base_url': 'http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.6.4.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': 'ambari-hdp-1', 'mirror_list': None} 2018-03-28 20:35:42,642 - File['/etc/yum.repos.d/ambari-hdp-1.repo'] {'content': '[HDP-2.6-repo-1]\nname=HDP-2.6-repo-1\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.6.4.0\n\npath=/\nenabled=1\ngpgcheck=0'} 2018-03-28 20:35:42,652 - Writing File['/etc/yum.repos.d/ambari-hdp-1.repo'] because contents don't match 2018-03-28 20:35:42,653 - Repository with url http://public-repo-1.hortonworks.com/HDP-GPL/centos6/2.x/updates/2.6.4.0 is not created due to its tags: set(['GPL']) 2018-03-28 20:35:42,653 - Repository['HDP-UTILS-1.1.0.22-repo-1'] {'append_to_file': True, 'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/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': 'ambari-hdp-1', 'mirror_list': None} 2018-03-28 20:35:42,663 - File['/etc/yum.repos.d/ambari-hdp-1.repo'] {'content': '[HDP-2.6-repo-1]\nname=HDP-2.6-repo-1\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.6.4.0\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-UTILS-1.1.0.22-repo-1]\nname=HDP-UTILS-1.1.0.22-repo-1\nbaseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos6\n\npath=/\nenabled=1\ngpgcheck=0'} 2018-03-28 20:35:42,663 - Writing File['/etc/yum.repos.d/ambari-hdp-1.repo'] because contents don't match 2018-03-28 20:35:42,670 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2018-03-28 20:35:43,099 - Skipping installation of existing package unzip 2018-03-28 20:35:43,099 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2018-03-28 20:35:43,362 - Skipping installation of existing package curl 2018-03-28 20:35:43,362 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5} 2018-03-28 20:35:43,613 - Skipping installation of existing package hdp-select 2018-03-28 20:35:43,615 - The repository with version 2.6.4.0-91 for this command has been marked as resolved. It will be used to report the version of the component which was installed 2018-03-28 20:35:43,621 - Skipping stack-select on NIFI because it does not exist in the stack-select package structure. 2018-03-28 20:35:44,096 - Directory['/var/run/nifi'] {'owner': 'nifi', 'group': 'nifi'} 2018-03-28 20:35:44,097 - Directory['/var/log/nifi'] {'owner': 'nifi', 'group': 'nifi'} 2018-03-28 20:35:44,098 - Execute['touch /var/log/nifi/nifi-setup.log'] {'user': 'nifi'} 2018-03-28 20:35:44,242 - Creating /opt/nifi-1.1.0.2.1.2.0-10-bin 2018-03-28 20:35:44,242 - Execute['rm -rf /opt/nifi-1.1.0.2.1.2.0-10-bin'] {'ignore_failures': True} 2018-03-28 20:35:44,352 - Directory['/opt/nifi-1.1.0.2.1.2.0-10-bin'] {'owner': 'nifi', 'group': 'nifi'} 2018-03-28 20:35:44,353 - Creating directory Directory['/opt/nifi-1.1.0.2.1.2.0-10-bin'] since it doesn't exist. 2018-03-28 20:35:44,353 - Changing owner for /opt/nifi-1.1.0.2.1.2.0-10-bin from 0 to nifi 2018-03-28 20:35:44,353 - Changing group for /opt/nifi-1.1.0.2.1.2.0-10-bin from 0 to nifi 2018-03-28 20:35:44,354 - Execute['tar -xf /tmp/nifi-1.1.0.2.1.2.0-10-bin.tar.gz -C /opt/nifi-1.1.0.2.1.2.0-10-bin >> /var/log/nifi/nifi-setup.log'] {'user': 'nifi'} 2018-03-28 20:35:44,495 - The repository with version 2.6.4.0-91 for this command has been marked as resolved. It will be used to report the version of the component which was installed 2018-03-28 20:35:44,511 - Skipping stack-select on NIFI because it does not exist in the stack-select package structure. Command failed after 1 tries