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

vitthal (Suhas) Gogate commented on AMBARI-88:
----------------------------------------------

When node is pre-registered with the controller without any cluster 
association, its cluster ID field is null. So when node is later associated 
with the cluster, it should check if clusterID is not null before using its 
value. 
                
> Update cluster nodes reservation is giving null pointer exception during 
> cluster creation
> -----------------------------------------------------------------------------------------
>
>                 Key: AMBARI-88
>                 URL: https://issues.apache.org/jira/browse/AMBARI-88
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 0.1.0
>            Reporter: vitthal (Suhas) Gogate
>             Fix For: 0.1.0
>
>
> ./bin/ambari client cluster create -name eric1 -blueprint 
> cluster124-blueprint3 -goalstate active -nodes Eric-Yangs-MacBook-Pro.local 
> -revision 0
> java.lang.NullPointerException
>    at 
> org.apache.ambari.controller.Clusters.updateClusterNodesReservation(Clusters.java:415)
>    at org.apache.ambari.controller.Clusters.addCluster(Clusters.java:269)
>    at org.apache.ambari.controller.Clusters.<init>(Clusters.java:153)
>    at org.apache.ambari.controller.Clusters.getInstance(Clusters.java:161)
>    at 
> org.apache.ambari.controller.rest.resources.ClustersResource.addCluster(ClustersResource.java:113)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMe

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to