[ 
https://issues.apache.org/jira/browse/AMBARI-25258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Opher Shachar updated AMBARI-25258:
-----------------------------------
    Description: 
Installing HDF 3.4.0. The documentation starts me up with Ambari 2.7.3 that 
goes on to install HDP 3.1.0.

I'm installing on a single server as Non-Root following the documentation 
[here|https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_how_to_configure_ambari_server_for_non_root.html]
 and 
[here|https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_how_to_configure_an_ambari_agent_for_non_root.html].

When installation starts (after pressing Deploy) I get a failure during 
"Supervisor Install"
{noformat}
Traceback (most recent call last):
  File 
"/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/STORM/package/scripts/supervisor.py",
 line 110, in <module>
    Supervisor().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/stacks/HDP/3.0/services/STORM/package/scripts/supervisor.py",
 line 39, in install
    self.configure(env)
  File 
"/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/STORM/package/scripts/supervisor.py",
 line 44, in configure
    storm("supervisor")
  File "/usr/lib/ambari-agent/lib/ambari_commons/os_family_impl.py", line 89, 
in thunk
    return fn(*args, **kwargs)
  File 
"/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/STORM/package/scripts/storm.py",
 line 117, in storm
    setup_atlas_jar_symlinks("storm", storm_extlib_dir)
  File 
"/usr/lib/ambari-agent/lib/resource_management/libraries/functions/setup_atlas_hook.py",
 line 181, in setup_atlas_jar_symlinks
    Link(source_lib_file_name, to=atlas_hook_file_name)
  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/system.py", line 
238, in action_create
    sudo.symlink(self.resource.to, path)
  File "/usr/lib/ambari-agent/lib/resource_management/core/sudo.py", line 221, 
in symlink
    shell.checked_call(["ln","-sf", source, link_name], sudo=True)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, 
in inner
    result = function(command, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, 
in checked_call
    tries=tries, try_sleep=try_sleep, 
timeout_kill_strategy=timeout_kill_strategy, returns=returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, 
in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, 
in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'ln -sf 
/usr/hdp/3.1.0.0-78/atlas/hook/storm/atlas-plugin-classloader-1.1.0.3.1.0.0-78.jar
 
/usr/hdp/current/storm-supervisor/extlib/atlas-plugin-classloader-1.1.0.3.1.0.0-78.jar'
 returned 1. ln: failed to create symbolic link 
'/usr/hdp/current/storm-supervisor/extlib/atlas-plugin-classloader-1.1.0.3.1.0.0-78.jar':
 No such file or directory
{noformat}
The workaround is to do the following:
{code}
cd /usr/hdp/current
rm -rf storm-supervisor
ln -s /usr/hdp/3.1.0.0-78/storm storm-supervisor
{code}
and retry.

  was:
Installing HDF 3.4.0. The documentation starts me up with Ambari 2.7.3 that 
goes on to install HDP 3.1.0.

I'm installing on a single server as Non-Root following the documentation 
[here|https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_how_to_configure_ambari_server_for_non_root.html]
 and 
[here|https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_how_to_configure_an_ambari_agent_for_non_root.html].

When installation starts (after pressing Deploy) I get a failure during "DRPC 
Server Install"
{noformat}
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stack-hooks/after-INSTALL/scripts/hook.py", 
line 39, in <module>
    AfterInstallHook().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/after-INSTALL/scripts/hook.py", 
line 32, in hook
    setup_stack_symlinks(self.stroutfile)
  File 
"/var/lib/ambari-agent/cache/stack-hooks/after-INSTALL/scripts/shared_initialization.py",
 line 66, in setup_stack_symlinks
    stack_select.select(package, json_version)
  File 
"/usr/lib/ambari-agent/lib/resource_management/libraries/functions/stack_select.py",
 line 312, in select
    Execute(command, sudo=True)
  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/system.py", line 
263, in action_run
    returns=self.resource.returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, 
in inner
    result = function(command, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, 
in checked_call
    tries=tries, try_sleep=try_sleep, 
timeout_kill_strategy=timeout_kill_strategy, returns=returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, 
in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, 
in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 
'ambari-python-wrap /usr/bin/hdp-select set storm-client 3.1.0.0-78' returned 
1. symlink target /usr/hdp/current/storm-client for storm already exists and it 
is not a symlink.
{noformat}
The workaround is to do the following:
{code:sh}
cd /usr/hdp/current
rm -rf storm-client
ln -s /usr/hdp/3.1.0.0-78/storm storm-client
{code}
and retry.


> The Cluster Install Wizard fails on task Supervisor Install
> -----------------------------------------------------------
>
>                 Key: AMBARI-25258
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25258
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent
>    Affects Versions: 2.7.3
>         Environment: CentOS 7.6
> Ambari 2.7.3
> HDP 3.1.0
> Install on single-server as Non-Root
>            Reporter: Opher Shachar
>            Priority: Critical
>
> Installing HDF 3.4.0. The documentation starts me up with Ambari 2.7.3 that 
> goes on to install HDP 3.1.0.
> I'm installing on a single server as Non-Root following the documentation 
> [here|https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_how_to_configure_ambari_server_for_non_root.html]
>  and 
> [here|https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_how_to_configure_an_ambari_agent_for_non_root.html].
> When installation starts (after pressing Deploy) I get a failure during 
> "Supervisor Install"
> {noformat}
> Traceback (most recent call last):
>   File 
> "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/STORM/package/scripts/supervisor.py",
>  line 110, in <module>
>     Supervisor().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/stacks/HDP/3.0/services/STORM/package/scripts/supervisor.py",
>  line 39, in install
>     self.configure(env)
>   File 
> "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/STORM/package/scripts/supervisor.py",
>  line 44, in configure
>     storm("supervisor")
>   File "/usr/lib/ambari-agent/lib/ambari_commons/os_family_impl.py", line 89, 
> in thunk
>     return fn(*args, **kwargs)
>   File 
> "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/STORM/package/scripts/storm.py",
>  line 117, in storm
>     setup_atlas_jar_symlinks("storm", storm_extlib_dir)
>   File 
> "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/setup_atlas_hook.py",
>  line 181, in setup_atlas_jar_symlinks
>     Link(source_lib_file_name, to=atlas_hook_file_name)
>   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/system.py", 
> line 238, in action_create
>     sudo.symlink(self.resource.to, path)
>   File "/usr/lib/ambari-agent/lib/resource_management/core/sudo.py", line 
> 221, in symlink
>     shell.checked_call(["ln","-sf", source, link_name], sudo=True)
>   File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 
> 72, in inner
>     result = function(command, **kwargs)
>   File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 
> 102, in checked_call
>     tries=tries, try_sleep=try_sleep, 
> timeout_kill_strategy=timeout_kill_strategy, returns=returns)
>   File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 
> 150, in _call_wrapper
>     result = _call(command, **kwargs_copy)
>   File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 
> 314, in _call
>     raise ExecutionFailed(err_msg, code, out, err)
> resource_management.core.exceptions.ExecutionFailed: Execution of 'ln -sf 
> /usr/hdp/3.1.0.0-78/atlas/hook/storm/atlas-plugin-classloader-1.1.0.3.1.0.0-78.jar
>  
> /usr/hdp/current/storm-supervisor/extlib/atlas-plugin-classloader-1.1.0.3.1.0.0-78.jar'
>  returned 1. ln: failed to create symbolic link 
> '/usr/hdp/current/storm-supervisor/extlib/atlas-plugin-classloader-1.1.0.3.1.0.0-78.jar':
>  No such file or directory
> {noformat}
> The workaround is to do the following:
> {code}
> cd /usr/hdp/current
> rm -rf storm-supervisor
> ln -s /usr/hdp/3.1.0.0-78/storm storm-supervisor
> {code}
> and retry.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to