Member since
05-23-2017
5
Posts
0
Kudos Received
0
Solutions
05-25-2017
01:48 PM
Thank you all for your suggestions. I did clear up any items you may have mentioned and still had the problem. I resolved this issue with hdp-select by re-provisioning all of the servers in the cluster and reinstalling Ambari. This particular item is closed.
... View more
05-23-2017
06:56 PM
I ran "/usr/bin/hdp-select versions" and it failed.
I realized hadoop was not suppose to be in /usr/hdp directory. I deleted it and re-ran "/usr/bin/hdp-select versions" after removing the hadoop directory from /usr/hdp. I listed the directory again after the deploy failed again and noticed the hadoop directory had been recreated. Not sure why hadoop directory is beiing recreated in /usr/hdp during deploy. Here is the sequence of commands. [root@hwmn1 yum.repos.d]# /usr/bin/hdp-select versions ERROR: Unexpected file/directory found in /usr/hdp: hadoop [root@hwmn1 yum.repos.d]# cd /usr/hdp [root@hwmn1 hdp]# ls -ltr total 16
drwxr-xr-x 3 root root 4096 May 23 13:00 share drwxr-xr-x 22 root root 4096 May 23 14:31 2.6.0.3-8 drwxr-xr-x 2 root root 4096 May 23 14:31 current drwxr-xr-x 3 root root 4096 May 23 14:31 hadoop [root@hwmn1 hdp]# rm -fR hadoop [root@hwmn1 hdp]# ls -ltr total 12
drwxr-xr-x 3 root root 4096 May 23 13:00 share drwxr-xr-x 22 root root 4096 May 23 14:31 2.6.0.3-8 drwxr-xr-x 2 root root 4096 May 23 14:31 current [root@hwmn1 hdp]# ls -ltr total 16
drwxr-xr-x 3 root root 4096 May 23 13:00 share drwxr-xr-x 22 root root 4096 May 23 14:31 2.6.0.3-8 drwxr-xr-x 2 root root 4096 May 23 14:35 current drwxr-xr-x 3 root root 4096 May 23 14:35 hadoop [root@hwmn1 hdp]# pwd /usr/hdp [root@hwmn1 hdp]# /usr/bin/hdp-select versions ERROR: Unexpected file/directory found in /usr/hdp: hadoop [root@hwmn1 hdp]#
... View more
05-23-2017
06:13 PM
I consistently get this hdp-seletct error in Ambari whenever I try to deploy any service. Can anyone help? [root@hwmn1 yum.repos.d]# cat /var/lib/ambari-agent/data/errors-593.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 <module>
AfterInstallHook().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 314, 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_stack_symlinks()
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 52, in setup_stack_symlinks
stack_select.select_all(version)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/stack_select.py", line 135, in select_all
Execute(command, only_if = only_if_command)
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, 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 'ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.6 | tail -1`' returned 1. ERROR: set command takes 2 parameters, instead of 1 usage: distro-select [-h] [<command>] [<package>] [<version>] Set the selected version of HDP. positional arguments:
<command> One of set, status, versions, or packages
<package> the package name to set
<version> 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
[root@hwmn1 yum.repos.d]#
[root@hwmn1 yum.repos.d]#
[root@hwmn1 yum.repos.d]# cat /var/lib/ambari-agent/data/errors-593.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 <module>
AfterInstallHook().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 314, 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_stack_symlinks()
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 52, in setup_stack_symlinks
stack_select.select_all(version)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/stack_select.py", line 135, in select_all
Execute(command, only_if = only_if_command)
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, 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 'ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.6 | tail -1`' returned 1. ERROR: set command takes 2 parameters, instead of 1 usage: distro-select [-h] [<command>] [<package>] [<version>] Set the selected version of HDP. positional arguments:
<command> One of set, status, versions, or packages
<package> the package name to set
<version> 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
[root@hwmn1 yum.repos.d]#
... View more
Labels: