[ 
https://issues.apache.org/jira/browse/AMBARI-11994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Myroslav Papirkovskyy resolved AMBARI-11994.
--------------------------------------------
    Resolution: Fixed

Pushed to trunk and branch-2.1

> Creating Zookeeper-only cluster fails with 'hadoop-env' was not found
> ---------------------------------------------------------------------
>
>                 Key: AMBARI-11994
>                 URL: https://issues.apache.org/jira/browse/AMBARI-11994
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.0
>            Reporter: Myroslav Papirkovskyy
>            Assignee: Myroslav Papirkovskyy
>            Priority: Blocker
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-11994.patch
>
>
> This ocurrs on the inital install of a new cluster where only Zookeeper is 
> being installed:
> {noformat:title=stderr}
> Traceback (most recent call last):
>   File 
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py",
>  line 34, in <module>
>     BeforeAnyHook().execute()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 216, in execute
>     method(env)
>   File 
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py",
>  line 30, in hook
>     setup_users()
>   File 
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py",
>  line 76, in setup_users
>     ignore_failures = params.ignore_groupsusers_create
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", 
> line 157, in __init__
>     self.env.run()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
> line 135, in run
>     Logger.info_resource(resource)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/logger.py", 
> line 81, in info_resource
>     Logger.info(Logger.filter_text(resource.get_function_repr()))
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", 
> line 172, in get_function_repr
>     val = arg.log_str(x, y)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", 
> line 45, in log_str
>     return Logger.get_arg_repr(key, value)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/logger.py", 
> line 143, in get_arg_repr
>     val = repr(y)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py",
>  line 81, in __getattr__
>     raise Fail("Configuration parameter '" + self.name + "' was not found in 
> configurations dictionary!")
> resource_management.core.exceptions.Fail: Configuration parameter 
> 'hadoop-env' 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-13.json', 
> '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', 
> '/var/lib/ambari-agent/data/structured-out-13.json', 'INFO', 
> '/var/lib/ambari-agent/data/tmp']
> {noformat}
> {noformat:title=stdout}
> 2015-06-15 11:00:30,446 - 
> Directory['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts/'] {'recursive': 
> True}
> 2015-06-15 11:00:30,447 - 
> File['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts//jce_policy-8.zip'] 
> {'content': 
> DownloadSource('http://levas-39370-1.c.pramod-thangali.internal:8080/resources//jce_policy-8.zip')}
> 2015-06-15 11:00:30,447 - Not downloading the file from 
> http://levas-39370-1.c.pramod-thangali.internal:8080/resources//jce_policy-8.zip,
>  because /var/lib/ambari-agent/data/tmp/jce_policy-8.zip already exists
> 2015-06-15 11:00:30,447 - Group['hadoop'] {'ignore_failures': False}
> 2015-06-15 11:00:30,448 - User['zookeeper'] {'gid': 'hadoop', 
> 'ignore_failures': False, 'groups': ['hadoop']}
> 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-13.json', 
> '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', 
> '/var/lib/ambari-agent/data/structured-out-13.json', 'INFO', 
> '/var/lib/ambari-agent/data/tmp']
> {noformat}
> Adding HDFS _fixes_ the issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to