Jayush Luniya created AMBARI-17793:
--------------------------------------

             Summary: Blueprint deployment throwing NPE when there is a config 
marked as deleted
                 Key: AMBARI-17793
                 URL: https://issues.apache.org/jira/browse/AMBARI-17793
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.4.0
            Reporter: Jayush Luniya
            Assignee: Jayush Luniya
            Priority: Critical
             Fix For: 2.4.0


Discovered when deploying a custom stack

Ambari accepts the blueprint and starts the deploy job but when you open the 
UI, the job just sits in pending state and status says waiting for hosts to be 
added to host group

Errors seen
{code}
15 Jul 2016 20:27:21,637  INFO [pool-17-thread-1] TopologyManager:900 - 
TopologyManager.ConfigureClusterTask: Entering
15 Jul 2016 20:27:21,638 ERROR [pool-17-thread-1] TopologyManager:938 - 
TopologyManager.ConfigureClusterTask: An exception occurred while attempting to 
determine required host groups for config update
java.lang.NullPointerException
15 Jul 2016 20:27:21,638  INFO [pool-17-thread-1] TopologyManager:912 - 
TopologyManager.ConfigureClusterTask: All Required host groups are completed, 
Cluster Configuration can now begin
15 Jul 2016 20:27:21,638  INFO [pool-17-thread-1] 
BlueprintConfigurationProcessor:482 - Config recommendation strategy being used 
is NEVER_APPLY)
15 Jul 2016 20:27:21,638  INFO [pool-17-thread-1] 
BlueprintConfigurationProcessor:501 - No recommended configurations are 
applied. (strategy: NEVER_APPLY)
15 Jul 2016 20:27:21,668 ERROR [pool-17-thread-1] TopologyManager:916 - 
TopologyManager.ConfigureClusterTask: An exception occurred while attempting to 
process cluster configs and set on cluster:
java.lang.NullPointerException
15 Jul 2016 20:27:21,668  INFO [pool-3-thread-1] AsyncCallableService:111 - 
Exception during task execution:
java.util.concurrent.ExecutionException: java.lang.Exception: 
java.lang.NullPointerException
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:206)
        at 
org.apache.ambari.server.topology.AsyncCallableService.taskCompleted(AsyncCallableService.java:103)
        at 
org.apache.ambari.server.topology.AsyncCallableService.call(AsyncCallableService.java:74)
        at 
org.apache.ambari.server.topology.AsyncCallableService.call(AsyncCallableService.java:37)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: java.lang.NullPointerException
        at 
org.apache.ambari.server.topology.TopologyManager$ConfigureClusterTask.call(TopologyManager.java:920)
        at 
org.apache.ambari.server.topology.TopologyManager$ConfigureClusterTask.call(TopologyManager.java:888)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        ... 3 more
Caused by: java.lang.NullPointerException
{code}

{code}
18 Jul 2016 17:45:02,064 ERROR [pool-17-thread-1] TopologyManager:938 - 
TopologyManager.ConfigureClusterTask: An exception occurred while at
tempting to determine required host groups for config update
java.lang.NullPointerException
        at java.util.regex.Matcher.getTextLength(Matcher.java:1234)
        at java.util.regex.Matcher.reset(Matcher.java:308)
        at java.util.regex.Matcher.<init>(Matcher.java:228)
        at java.util.regex.Pattern.matcher(Pattern.java:1088)
        at 
org.apache.ambari.server.controller.internal.BlueprintConfigurationProcessor$SingleHostTopologyUpdater.getRequiredHostGroups(Blue
printConfigurationProcessor.java:1399)
        at 
org.apache.ambari.server.controller.internal.BlueprintConfigurationProcessor$OptionalSingleHostTopologyUpdater.getRequiredHostGro
ups(BlueprintConfigurationProcessor.java:1572)
        at 
org.apache.ambari.server.controller.internal.BlueprintConfigurationProcessor.getRequiredHostGroups(BlueprintConfigurationProcesso
r.java:219)
        at 
org.apache.ambari.server.topology.ClusterConfigurationRequest.getRequiredHostGroups(ClusterConfigurationRequest.java:129)
        at 
org.apache.ambari.server.topology.TopologyManager$ConfigureClusterTask.getTopologyRequiredHostGroups(TopologyManager.java:935)
        at 
org.apache.ambari.server.topology.TopologyManager$ConfigureClusterTask.call(TopologyManager.java:902)
        at 
org.apache.ambari.server.topology.TopologyManager$ConfigureClusterTask.call(TopologyManager.java:888)
        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)
{code}



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

Reply via email to