ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-14901) NPE when configuring Kerberos at provisioning secure cluster with Blueprint
Date Fri, 05 Feb 2016 04:14:39 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-14901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15133622#comment-15133622
] 

Hudson commented on AMBARI-14901:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #4279 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4279/])
AMBARI-14901. NPE when configuring Kerberos at provisioning secure (rnettleton: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=080991d131768ece5e0d7065df2bb8443e14053f])
* ambari-server/src/main/java/org/apache/ambari/server/topology/ClusterConfigurationRequest.java
* ambari-server/src/test/java/org/apache/ambari/server/topology/ClusterConfigurationRequestTest.java


> NPE when configuring Kerberos at provisioning secure cluster with Blueprint
> ---------------------------------------------------------------------------
>
>                 Key: AMBARI-14901
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14901
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.2.1
>            Reporter: Sandor Magyari
>            Assignee: Sandor Magyari
>             Fix For: 2.2.2
>
>         Attachments: AMBARI-14901.patch, AMBARI-14901_branch-2.2.patch
>
>
> Provision a cluster with blueprint and enable kerberos with it. config_recommendation_strategy
is ONLY_STACK_DEFAULTS_APPLY. The cluster installation will fail.
> java.lang.NullPointerException
>         at org.apache.ambari.server.topology.ClusterConfigurationRequest.configureKerberos(ClusterConfigurationRequest.java:151)
>         at org.apache.ambari.server.topology.ClusterConfigurationRequest.process(ClusterConfigurationRequest.java:103)
>         at org.apache.ambari.server.topology.TopologyManager$ConfigureClusterTask.call(TopologyManager.java:764)
>         at org.apache.ambari.server.topology.TopologyManager$ConfigureClusterTask.call(TopologyManager.java:738)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> Suspicious code snippet:
> {code:java}
> Map<String, String> propertyMap = updatedConfigs.get(configType);
>         Map<String, String> clusterConfigProperties = existingConfigurations.get(configType);
>         Map<String, String> stackDefaultConfigProperties = stackDefaultProps.get(configType);
>         for (String property : propertyMap.keySet()) {
>           if (clusterConfigProperties == null || !clusterConfigProperties.containsKey(property)
>                 || (clusterConfigProperties.get(property) == null && stackDefaultConfigProperties.get(property)
== null)
>                 || (clusterConfigProperties.get(property) != null && clusterConfigProperties.get(property).equals(stackDefaultConfigProperties.get(property))))
> {code}



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

Mime
View raw message