Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28CE0189D9 for ; Wed, 3 Feb 2016 15:25:14 +0000 (UTC) Received: (qmail 99770 invoked by uid 500); 3 Feb 2016 15:24:40 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 99713 invoked by uid 500); 3 Feb 2016 15:24:40 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 99661 invoked by uid 99); 3 Feb 2016 15:24:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2016 15:24:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C3EAB2C14F0 for ; Wed, 3 Feb 2016 15:24:39 +0000 (UTC) Date: Wed, 3 Feb 2016 15:24:39 +0000 (UTC) From: "Sandor Magyari (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-14901) NPE when configuring Kerberos at provisioning secure cluster with Blueprint MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-14901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sandor Magyari updated AMBARI-14901: ------------------------------------ Description: 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 propertyMap = updatedConfigs.get(configType); Map clusterConfigProperties = existingConfigurations.get(configType); Map 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} was: 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: Map propertyMap = updatedConfigs.get(configType); Map clusterConfigProperties = existingConfigurations.get(configType); Map 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)))) > 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 > > > 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 propertyMap = updatedConfigs.get(configType); > Map clusterConfigProperties = existingConfigurations.get(configType); > Map 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)