Support Questions

Find answers, ask questions, and share your expertise

Having issues installing hadoop 3.x via ambari

avatar
Contributor

Hi experts, 

I am having issues installing hadoop 3.x with ambari.

Currently Ambari is displaying the error below:

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stack-hooks/before-INSTALL/scripts/hook.py", line 37, in <module>
    BeforeInstallHook().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stack-hooks/before-INSTALL/scripts/hook.py", line 33, in hook
    install_packages()
  File "/var/lib/ambari-agent/cache/stack-hooks/before-INSTALL/scripts/shared_initialization.py", line 37, in install_packages
    retry_count=params.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 753, in repository_manager_executor
    raise RuntimeError(message)
RuntimeError: Failed to execute command '/usr/bin/yum -y install distro-select', exited with code '1', message: 'Error: Nothing to do
'

 

Any help is much appreciated.

 

Thanks,

3 REPLIES 3

avatar
Expert Contributor

Hi @ryu , I checked my lab and did not found this package anywhere - distro-select. 

Can you check the Ambari server logs and share any relevant error if any. Also please share the screenshot of the operation you are trying to do. 

 

One more thing we can check is does /usr/hdp have any extra folders apart from HDP version , current and share ? If yes , please move that directory/file to backup location and try again by restarting agent and server. 

avatar
Contributor

Is there any way to have ambari skip the "distro-select" yum installation?

 

Thanks,

avatar
Expert Contributor

We have to check from where the Ambari is triggering the command. If possible please share the relevant Ambari server error logs during the operation.