2015-07-13 11:02:25,906 - Error while executing command 'any':
Traceback (most recent call last):
  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 214, in execute
    method(env)
  File 
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py",
line 29, in hook
    setup_jce()
  File 
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py",
line 37, in setup_jce
    recursive = True,
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
line 148, in __init__
    self.env.run()
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
line 152, in run
    self.run_action(resource, action)
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
line 118, in run_action
    provider_action()
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
line 165, in action_create
    sudo.makedirs(path, self.resource.mode or 0755)
  File "/usr/lib/python2.6/site-packages/resource_management/core/sudo.py",
line 43, in makedirs
    shell.checked_call(["mkdir", "-p", path], sudo=True)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
line 70, in inner
    return function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
line 82, in checked_call
    return _call(command, logoutput, True, cwd, env, preexec_fn, user,
wait_for_finish, timeout, path, sudo, on_new_line)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
line 199, in _call
    raise Fail(err_msg)
Fail: Execution of 'mkdir -p
/var/lib/ambari-agent/data/tmp/AMBARI-artifacts/' returned 1.
/usr/bin/sudo: 
PATH=/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/sbin:/sbin:/bin:/usr/bin:/usr/dev_infra/platform/bin:/usr/dev_infra/generic/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/ade/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:
command not found
Error: Error: Unable to run the custom hook script
['/usr/bin/python2.6',
'/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py',
'ANY', '/var/lib/ambari-agent/data/command-653.json',
'/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY',
'/var/lib/ambari-agent/data/structured-out-653.json', 'INFO',
'/var/lib/ambari-agent/data/tmp']


On Mon, Jul 13, 2015 at 10:19 AM, Chen He <[email protected]> wrote:

> I met a problem about Ambari when I use it. Here is a problem
>
> When Ambari is installing, the "sudo" command is actually
> "/usr/local/bin/sudo", it works fine.
>
> However, after I installed everything successfully, I create a soft link:
>
> /usr/bin/sudo -> /usr/local/bin/sudo
>
> Then, all ambari metrics are down and all other services were shown on
> WebUI down consequently. I checked process on each node using "ps aux|grep
> java", except ambari metrics, all other service are healthy.
>
> If I remove the soft link, ambari metrics can be recovered by restarting.
>
> I think as a monitoring software, it shouldn't depend on which "sudo" on
> the host system.
>
> If there is no tracking ticket, I am happy to create one
>
> Regards!
>
> Chen
>

Reply via email to