Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

Cannot install Livy for Spark2 in HDP 3.0.0 / Ambari 2.7.0

Installing Livy for Spark2 returns

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py", line 35, in <module>
    BeforeAnyHook().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 353, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py", line 29, in hook
    setup_users()
  File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/shared_initialization.py", line 50, in setup_users
    groups = params.user_to_groups_dict[user],
KeyError: u'livy'
Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-3302.json', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-3302.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1_2', '']

Checked the apache JIRA and found that it should have already been fixed: https://issues.apache.org/jira/browse/AMBARI-24021

3 REPLIES 3

@Jay Kumar SenSharma

Can you help out on this?

Many thanks!

Mentor

@Daniel K

I did a clean install last night and it was all successful, in HDP 3.0 during the account configuration you need to setup users like attached did you do that?



livy.jpg

@Geoffrey Shelton Okot

My installation is not a fresh one. It is an upgrade from HDP 2.6.4 to 3.0 and Ambari from 2.6.1 to 2.7.0.

Any idea?