Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

unable to use ambari after HDP2.2 upgrade

$
0
0

After upgrading the stack, every ambari command fails with the error:

Fail: Configuration parameter ‘java_home’ was not found in configurations dictionary!

I see the configuration json being sent as a command, and the “hostLevelParams” does not have a java_home. What do I need to do to get the ambari server to send a java_home with this payload? Is there a template somewhere that didn’t get updated?

Full error:

2015-01-30 12:02:18,697 – Error while executing command ‘any':
Traceback (most recent call last):
File “/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py”, line 123, in execute
method(env)
File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py”, line 31, in hook
setup_hadoop_env()
File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py”, line 113, in setup_hadoop_env
content=InlineTemplate(params.hadoop_env_sh_template)
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 149, in run
self.run_action(resource, action)
File “/usr/lib/python2.6/site-packages/resource_management/core/environment.py”, line 115, in run_action
provider_action()
File “/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py”, line 96, in action_create
content = self._get_content()
File “/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py”, line 138, in _get_content
return content()
File “/usr/lib/python2.6/site-packages/resource_management/core/source.py”, line 47, in __call__
return self.get_content()
File “/usr/lib/python2.6/site-packages/resource_management/core/source.py”, line 126, in get_content
rendered = self.template.render(self.context)
File “/usr/lib/python2.6/site-packages/ambari_jinja2/environment.py”, line 891, in render
return self.environment.handle_exception(exc_info, True)
File “<template>”, line 108, in top-level template code
File “/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py”, line 79, in __getattr__
raise Fail(“Configuration parameter ‘”+self.name+”‘ was not found in configurations dictionary!”)
Fail: Configuration parameter ‘java_home’ was not found in configurations dictionary!
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-1368.json’, ‘/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY’, ‘/var/lib/ambari-agent/data/structured-out-1368.json’, ‘INFO’, ‘/var/lib/ambari-agent/data/tmp’]


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>