[
https://issues.apache.org/jira/browse/AMBARI-18888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Hurley reopened AMBARI-18888:
--------------------------------------
Reverting this from trunk/branch-2.5 because it's causing agent heartbeats to
fail on commands executed before a cluster is created:
{code}
02 Dec 2016 15:30:55,079 WARN [qtp-ambari-agent-42] AgentResource:136 - Error
in HeartBeat
org.apache.ambari.server.ClusterNotFoundException: Cluster not found,
clusterName=null
at
org.apache.ambari.server.state.cluster.ClustersImpl.getCluster(ClustersImpl.java:277)
at
org.apache.ambari.server.agent.HeartBeatHandler.sendCommands(HeartBeatHandler.java:335)
at
org.apache.ambari.server.agent.HeartBeatHandler.handleHeartBeat(HeartBeatHandler.java:298)
at
org.apache.ambari.server.agent.rest.AgentResource.heartbeat(AgentResource.java:130)
at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
at
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
{code}
> Ambari-agent: Create configuration files with JCEKS information
> ---------------------------------------------------------------
>
> Key: AMBARI-18888
> URL: https://issues.apache.org/jira/browse/AMBARI-18888
> Project: Ambari
> Issue Type: Task
> Components: ambari-agent
> Reporter: Nahappan Somasundaram
> Assignee: Nahappan Somasundaram
> Attachments: rb53747.patch
>
>
> When a non-status command is received, a command.json file is generated. This
> file contains the passwords used in a configuration. When the command is then
> executed, ambari agent spawns off a subprocess to execute component-specific
> Python scripts to generate the configuration files using the data from the
> command.json file.
> To avoid storing clear text passwords in command.json file and configuration
> files, ambari-agent will first generate the JCEKS files corresponding to the
> configuration information in the command JSON blob coming from the server and
> then generate the command.json with the path to the JCEKS store instead of
> clear text passwords for *password* properties.
> Subsequently when executing a command, ambari-agent will generate the
> configuration files with the JCEKS path information from command.json.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)