Created 07-25-2018 07:47 PM
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/TEZ/package/scripts/tez_client.py", line 130, in <module> TezClient().execute() File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 353, in execute method(env) File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/TEZ/package/scripts/tez_client.py", line 90, in install self.install_packages(env) File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 836, in install_packages retry_count=agent_stack_retry_count) File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__ self.env.run() File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run self.run_action(resource, action) File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action provider_action() File "/usr/lib/ambari-agent/lib/resource_management/core/providers/packaging.py", line 30, in action_install self._pkg_manager.install_package(package_name, self.__create_context()) File "/usr/lib/ambari-agent/lib/ambari_commons/repo_manager/yum_manager.py", line 219, in install_package shell.repository_manager_executor(cmd, self.properties, context) File "/usr/lib/ambari-agent/lib/ambari_commons/shell.py", line 749, in repository_manager_executor raise RuntimeError(message) RuntimeError: Failed to execute command '/usr/bin/yum -y install tez_3_0_0_0_1634', exited with code '1', message: 'Error unpacking rpm package tez_3_0_0_0_1634-0.9.1.3.0.0.0-1634.noarch
Created 07-25-2018 11:48 PM
Looks like some issue at yum/rpm level.
Can you please try the following on the host where the package installtion is failing:
# yum clean metadata (or) # yum clean all # yum -y install tez_3_0_0_0_1634
.
Then try the installation from ambari UI.
Created 07-25-2018 11:48 PM
Looks like some issue at yum/rpm level.
Can you please try the following on the host where the package installtion is failing:
# yum clean metadata (or) # yum clean all # yum -y install tez_3_0_0_0_1634
.
Then try the installation from ambari UI.
Created 07-25-2018 11:53 PM
Looks other thread is duplicate of this issue: https://community.hortonworks.com/questions/208830/hdp-30-tez-rpm-issue.html
Created 07-26-2018 04:38 AM
Hi,
Thanks for quick response, I have tried above commands but still getting below errors.
Total download size: 256 M Installed size: 259 M Downloading packages: tez_3_0_0_0_1634-0.9.1.3.0.0.0-1634.noarch.rpm | 256 MB 13:08 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : tez_3_0_0_0_1634-0.9.1.3.0.0.0-1634.noarch 1/1 Error unpacking rpm package tez_3_0_0_0_1634-0.9.1.3.0.0.0-1634.noarch error: unpacking of archive failed on file /usr/hdp/3.0.0.0-1634/tez/conf: cpio: rename Verifying : tez_3_0_0_0_1634-0.9.1.3.0.0.0-1634.noarch 1/1 Failed: tez_3_0_0_0_1634.noarch 0:0.9.1.3.0.0.0-1634 Complete!
regards
Dharam
Created 07-26-2018 03:54 PM
Hi,
I am not sure what is issue with tez.
================================================================================ Install 1 Package Total download size: 256 M Installed size: 259 M Downloading packages: tez_3_0_0_0_1634-0.9.1.3.0.0.0-1634.noarch.rpm | 256 MB 03:54 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : tez_3_0_0_0_1634-0.9.1.3.0.0.0-1634.noarch 1/1 Error unpacking rpm package tez_3_0_0_0_1634-0.9.1.3.0.0.0-1634.noarch error: unpacking of archive failed on file /usr/hdp/3.0.0.0-1634/tez/conf: cpio: rename Verifying : tez_3_0_0_0_1634-0.9.1.3.0.0.0-1634.noarch 1/1 Failed: tez_3_0_0_0_1634.noarch 0:0.9.1.3.0.0.0-1634
Created 07-26-2018 04:05 PM
thanks it is resolved using #rm -rf /usr/hdp/3.0.0.0-1634/tez/conf and again installing it.
Created 05-27-2019 04:30 PM
I checked my tez directory
[root@node2 ~]# ls -l /usr/hdp/3.1.0.0-78/tez/ total 0 drwxr-xr-x 2 tez hadoop 44 May 27 00:57 conf lrwxrwxrwx 1 root root 13 May 27 01:12 conf;5ceb0f32 -> /etc/tez/conf lrwxrwxrwx 1 root root 13 May 27 01:34 conf;5ceb1477 -> /etc/tez/conf lrwxrwxrwx 1 root root 13 May 27 02:09 conf;5ceb1c24 -> /etc/tez/conf lrwxrwxrwx 1 root root 13 May 27 03:58 conf;5ceb3650 -> /etc/tez/conf lrwxrwxrwx 1 root root 13 May 27 06:50 conf;5ceb5dd1 -> /etc/tez/conf lrwxrwxrwx 1 root root 13 May 27 18:55 conf;5cec0874 -> /etc/tez/conf lrwxrwxrwx 1 root root 13 May 27 19:13 conf;5cec0c93 -> /etc/tez/conf lrwxrwxrwx 1 root root 13 May 27 19:17 conf;5cec0d9c -> /etc/tez/conf lrwxrwxrwx 1 root root 13 May 27 19:21 conf;5cec0e81 -> /etc/tez/conf
I think every unsuccessful attempt added a new line. I removed all
[root@node2 ~]# rm -rf /usr/hdp/3.1.0.0-78/tez/*
Using Ambari I reinstalled tez client for this node only. It worked.