[ https://issues.apache.org/jira/browse/AMBARI-22894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
zhangxiaolu updated AMBARI-22894: --------------------------------- Resolution: Resolved Status: Resolved (was: Patch Available) [https://github.com/apache/ambari/blob/79504f74e83164a9c70713ea54cfc2f257d5be04/ambari-server/src/main/resources/stack-hooks/before-START/scripts/params.py#L336-L337] and [https://github.com/apache/ambari/blob/2019a5c0d824c73167535ac7091fc1af765c4826/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py#L330-L331] > Install zk error when cluster just only installed zk. > ----------------------------------------------------- > > Key: AMBARI-22894 > URL: https://issues.apache.org/jira/browse/AMBARI-22894 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: trunk > Environment: cluster with only the service of zookeeper > Reporter: zhangxiaolu > Assignee: zhangxiaolu > Priority: Major > Labels: pull-request-available, trunk > Fix For: trunk > > Attachments: AMBARI-22894.patch, screenshot-1.png > > Time Spent: 2h 20m > Remaining Estimate: 0h > > cluster with only the service of zookeeper. > > when start zk, error is like this: > Traceback (most recent call last): > File > "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py", > line 40, in <module> > BeforeStartHook().execute() > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", > line 314, in execute > method(env) > File > "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py", > line 28, in hook > import params > File > "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py", > line 320, in <module> > if namenode_rpc: > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py", > line 73, in __getattr__ > raise Fail("Configuration parameter '" + self.name + "' was not found in > configurations dictionary!") > resource_management.core.exceptions.Fail: Configuration parameter 'core-site' > was not found in configurations dictionary! > Error: Error: Unable to run the custom hook script ['/usr/bin/python', > '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py', > 'START', '/var/lib/ambari-agent/data/command-31.json', > '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START', > '/var/lib/ambari-agent/data/structured-out-31.json', 'INFO', > '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1'] -- This message was sent by Atlassian JIRA (v7.6.3#76005)