Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

LLAP failed to start - wrong Python version for scripts

Solved Go to solution
Highlighted

LLAP failed to start - wrong Python version for scripts

New Contributor

Can not start Hive LLAP:

File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py", line 616, in <module>
HiveServerInteractive().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 329, in execute
method(env)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 865, in restart
self.start(env, upgrade_type=upgrade_type)
File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py", line 121, in start
status = self._llap_start(env)
File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py", line 258, in _llap_start
llap_java_args = InlineTemplate(params.llap_app_java_opts).get_content()
File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line 150, in __init__
super(InlineTemplate, self).__init__(name, extra_imports, **kwargs)
File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line 137, in __init__
self.template = self.template_env.get_template(self.name)
File "/usr/lib/python2.6/site-packages/ambari_jinja2/environment.py", line 716, in get_template
return self._load_template(name, self.make_globals(globals))
File "/usr/lib/python2.6/site-packages/ambari_jinja2/environment.py", line 690, in _load_template
template = self.loader.load(self, name, globals)
File "/usr/lib/python2.6/site-packages/ambari_jinja2/loaders.py", line 127, in load
code = environment.compile(source, name, filename)
File "/usr/lib/python2.6/site-packages/ambari_jinja2/environment.py", line 492, in compile
self.handle_exception(exc_info, source_hint=source)
File "<unknown>", line 1, in template
ambari_jinja2.exceptions.TemplateSyntaxError: Unexpected end of template. Jinja was looking for the following tags: 'endif'. The innermost block that needs to be closed is 'if'.

Maybe this issue is related to the wrong python version?

OS: Ubuntu 14.04.5

# /usr/bin/python -V
Python 2.7.6

1 ACCEPTED SOLUTION

Accepted Solutions

Re: LLAP failed to start - wrong Python version for scripts

Super Mentor

@Gunar Mueller

Looks like you made some changes in the llap java options from Ambari UI specially inside the Jinja template specially related to llap java option from ambari UI and by mistake you removed the "endif" string from the if ...else blok of Jinja template.

Please see in the ambari UI if you can revert back the config changes and then try again... or compare the two versions of Hive configs from ambari UI.

3 REPLIES 3

Re: LLAP failed to start - wrong Python version for scripts

Super Mentor

@Gunar Mueller

Looks like you made some changes in the llap java options from Ambari UI specially inside the Jinja template specially related to llap java option from ambari UI and by mistake you removed the "endif" string from the if ...else blok of Jinja template.

Please see in the ambari UI if you can revert back the config changes and then try again... or compare the two versions of Hive configs from ambari UI.

Re: LLAP failed to start - wrong Python version for scripts

Super Mentor

@Gunar Mueller

As the issue is resolved, hence it will be also great if you can mark this HCC thread as Answered by clicking on the "Accept" Button on the correct answer. That way other HCC users can quickly find the solution when they encounter the same issue.

.

Re: LLAP failed to start - wrong Python version for scripts

New Contributor

@Jay Kumar SenSharma

You are right. I changed the <LLAP app java opts> and deleted {% endif %}.

Thanks

Don't have an account?
Coming from Hortonworks? Activate your account here