You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Madhuvanthi Radhakrishnan (JIRA)" <ji...@apache.org> on 2017/11/13 22:52:00 UTC

[jira] [Created] (AMBARI-22432) Getting NPE when trying to get services information from service group

Madhuvanthi Radhakrishnan created AMBARI-22432:
--------------------------------------------------

             Summary: Getting NPE when trying to get services information from service group
                 Key: AMBARI-22432
                 URL: https://issues.apache.org/jira/browse/AMBARI-22432
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 3.0.0
            Reporter: Madhuvanthi Radhakrishnan
            Assignee: Madhuvanthi Radhakrishnan
             Fix For: 3.0.0


Install lates ambari build from feature branch. Add HDFS,YARN,MP and ZK services. After cluster will be deployed run this request in command line:
curl -X GET -u admin:admin -H "X-Requested-By: ambari" http://localhost:8080/api/v1/clusters/cl1/servicegroups/core/services/ZOOKEEPER
Getting NPE here:
13 Nov 2017 17:40:48,727 ERROR [ambari-client-thread-35] ContainerResponse:419 - The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
java.lang.NullPointerException
 at org.apache.ambari.server.controller.AmbariManagementControllerImpl.getConfigurations(AmbariManagementControllerImpl.java:1562)
 at org.apache.ambari.server.controller.AmbariManagementControllerImpl.getConfigurations(AmbariManagementControllerImpl.java:4016)
Problem is in fact that clusterConfigEntity doesn't have serviceId (service id == null). So method cacheConfigurations doesn't work.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)