Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Error installing Slider Client using Ambari

avatar
Explorer

I got following errors when setup a 3 node cluster using Ambari (Ubuntu 16.04). It is reference content from /usr/hdp/current/slider-client/lib, which I don't have. In /usr/hdp/current/slider-client directory, I only have conf. This issue seems had been reported earlier, but I did not see the solution.

https://community.hortonworks.com/questions/149001/slider-client-install.html

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/SLIDER/0.60.0.2.2/package/scripts/slider_client.py", line 62, in <module>
    SliderClient().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 375, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/SLIDER/0.60.0.2.2/package/scripts/slider_client.py", line 46, in install
    self.configure(env)
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 120, in locking_configure
    original_configure(obj, *args, **kw)
  File "/var/lib/ambari-agent/cache/common-services/SLIDER/0.60.0.2.2/package/scripts/slider_client.py", line 51, in configure
    slider()
  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/common-services/SLIDER/0.60.0.2.2/package/scripts/slider.py", line 92, in slider
    group=params.user_group,
  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 120, in action_create
    raise Fail("Applying %s failed, parent directory %s doesn't exist" % (self.resource, dirname))
resource_management.core.exceptions.Fail: Applying File['/usr/hdp/current/slider-client/lib/slider.tar.gz'] failed, parent directory /usr/hdp/current/slider-client/lib doesn't exist
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Harry Li

It looks like a Symlink issue. Looks like due to some reason the symlink is not created properly. The "lib" should be actually here

# ls -l /usr/hdp/2.6.5.0-292/slider/lib/

.

The "/usr/hdp/current/slider-client" path should be ideally a symlink something like following:

# ls -l /usr/hdp/current/slider-client
lrwxrwxrwx. 1 root root 27 Jun 28 22:44 /usr/hdp/current/slider-client -> /usr/hdp/2.6.5.0-292/slider

NOTE: here the version "2.6.5.0-292" might be different based on your Stack version. So please change the version accordingly.
.



So you might want to create a symlink on your own.
First if you have "slider-client" as a Directory or as a Symlink?

# ls -ld /usr/hdp/current/slider-client
lrwxrwxrwx. 1 root root 27 Jun 28 22:44 /usr/hdp/current/slider-client -> /usr/hdp/2.6.5.0-292/slider




If you find that "/usr/hdp/current/slider-client" is a directory then move it.

# mv /usr/hdp/current/slider-client  /usr/hdp/current/slider-client_OLD


Then create a symlink instead like:

# ln -s /usr/hdp/2.6.5.0-292/slider /usr/hdp/current/slider-client

NOTE: here the version "2.6.5.0-292" might be different based on your Stack version. So please change the version accordingly.

.

View solution in original post

1 REPLY 1

avatar
Master Mentor

@Harry Li

It looks like a Symlink issue. Looks like due to some reason the symlink is not created properly. The "lib" should be actually here

# ls -l /usr/hdp/2.6.5.0-292/slider/lib/

.

The "/usr/hdp/current/slider-client" path should be ideally a symlink something like following:

# ls -l /usr/hdp/current/slider-client
lrwxrwxrwx. 1 root root 27 Jun 28 22:44 /usr/hdp/current/slider-client -> /usr/hdp/2.6.5.0-292/slider

NOTE: here the version "2.6.5.0-292" might be different based on your Stack version. So please change the version accordingly.
.



So you might want to create a symlink on your own.
First if you have "slider-client" as a Directory or as a Symlink?

# ls -ld /usr/hdp/current/slider-client
lrwxrwxrwx. 1 root root 27 Jun 28 22:44 /usr/hdp/current/slider-client -> /usr/hdp/2.6.5.0-292/slider




If you find that "/usr/hdp/current/slider-client" is a directory then move it.

# mv /usr/hdp/current/slider-client  /usr/hdp/current/slider-client_OLD


Then create a symlink instead like:

# ln -s /usr/hdp/2.6.5.0-292/slider /usr/hdp/current/slider-client

NOTE: here the version "2.6.5.0-292" might be different based on your Stack version. So please change the version accordingly.

.