Support Questions

Find answers, ask questions, and share your expertise

HDP 3.0 tez installation issue on one of new node in cluster

avatar

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
1 ACCEPTED SOLUTION

avatar
Master Mentor

@dharam p

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.

View solution in original post

6 REPLIES 6

avatar
Master Mentor

@dharam p

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.

avatar
Master Mentor

avatar

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

avatar

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

avatar

thanks it is resolved using #rm -rf /usr/hdp/3.0.0.0-1634/tez/conf and again installing it.

avatar
Expert Contributor

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.