Support Questions
Find answers, ask questions, and share your expertise

Issue deploying livy_server through Ambari


Am trying to deploy LIVY_SERVER through Ambari using blueprints, our cluster is running Ambari and HDP 2.5.

The installation of LIVY_SERVER on the node works fine, however when Ambari comes to start the service it fails with the below error;

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/SPARK/1.2.1/package/scripts/", line 145, in <module>
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/", line 280, in execute
  File "/var/lib/ambari-agent/cache/common-services/SPARK/1.2.1/package/scripts/", line 61, in start
  File "/var/lib/ambari-agent/cache/common-services/SPARK/1.2.1/package/scripts/", line 51, in configure
    setup_livy(env, 'server', upgrade_type=upgrade_type, action = 'config')
  File "/var/lib/ambari-agent/cache/common-services/SPARK/1.2.1/package/scripts/", line 48, in setup_livy
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 155, in __init__
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 124, in run_action
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/", 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/livy-server/conf/'] failed, parent directory /usr/hdp/current/livy-server/conf doesn't exist

It seems under /usr/hdp/current/ there is a symbolic link for livy-client but not livy-server.


Re: Issue deploying livy_server through Ambari

Rising Star

@Aaron Harris There should be both livy-client and livy-server directories both linking back to the /usr/hdp/<version>/livy dir. If you manually create the dir does it correct the issue? You could also run hdp-select to see if livy-server is connected to the correct hdp version. Hope this helps or you have resolved your issue.