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

Robert Nettleton commented on AMBARI-6957:
------------------------------------------

I think this problem may be related to the recent changes in the Cluster 
resource provider. 

In the latest Blueprint code, if one of a certain set of services is not 
enabled (examples: Falcon, Oozie, Hive), then a NullPointerException will occur 
that is similar to the stack trace listed in the bug that Sid just filed.

I’m currently working on a fix for this, but in the meantime you can probably 
work around this by adding one of the missing services, even if these services 
are not required by your cluster.  In particular, you might want to try adding 
the “FALCON_SERVER” to one of your host groups, which will force the Falcon 
config to be pulled in, and thus avoid the NullPointer until I have the fix 
ready to submit as a patch.

> NPE on blueprint cluster create
> -------------------------------
>
>                 Key: AMBARI-6957
>                 URL: https://issues.apache.org/jira/browse/AMBARI-6957
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.7.0
>            Reporter: Siddharth Wagle
>            Assignee: John Speidel
>             Fix For: 1.7.0
>
>
> Blueprint script location: 
> https://gist.github.com/jimbobhickville/9b95bbedc4f3380ffa11
> {code}
> 19:25:27,778 ERROR [qtp1958563572-23 - /api/v1/clusters/testcluster] 
> BaseManagementHandler:66 - Caught a runtime exception while attempting to 
> create a resource
> java.lang.NullPointerException
> at 
> org.apache.ambari.server.controller.internal.ClusterResourceProvider.setMissingConfigurations(ClusterResourceProvider.java:925)
> at 
> org.apache.ambari.server.controller.internal.ClusterResourceProvider.processConfigurations(ClusterResourceProvider.java:846)
> at 
> org.apache.ambari.server.controller.internal.ClusterResourceProvider.processBlueprintCreate(ClusterResourceProvider.java:406)
> at 
> org.apache.ambari.server.controller.internal.ClusterResourceProvider.createResources(ClusterResourceProvider.java:123)
> at 
> org.apache.ambari.server.controller.internal.ClusterControllerImpl.createResources(ClusterControllerImpl.java:274)
> at 
> org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.create(PersistenceManagerImpl.java:75)
> at 
> org.apache.ambari.server.api.handlers.CreateHandler.persist(CreateHandler.java:36)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to