Created 04-21-2015 05:53 AM
Hi
I am trying to add roles for Management Service. I could add all the roles, except Navigator Metadata Server. I get "NullPointerException" as my code touches the create_role for Navigator Metadata Server.
cm_api.api_client.ApiException: <ns1:XMLFault xmlns:ns1="http://cxf.apache.org/bindings/xformat"><ns1:faultstring xmlns:ns1="http://cxf.apache.org/bindings/xformat">java.lang.RuntimeException: java.lang.NullPointerException</ns1:faultstring></ns1:XMLFault> (error 500)
My code is as follows:
mgmt = ApiResource(<my_configs_here>).get_cloudera_manager().create_mgmt_service(<my_configs_here>) mgmt.create_role(navms_role_name + '-1', navms_role_type, cm_host_name)
Any help or pointers would be appreciated.
Created 04-21-2015 04:55 PM
Created on 04-21-2015 10:16 PM - edited 04-21-2015 10:42 PM
Hey Darren,
I started the CM with a trial license, and I was able to install Navigator Auditor as well, but not just Navigator Metadata Server.
As you suggested, I will try a re-install and check the logs and then come back.
Sorry for a dumb question, but how can I change the logging level for the API ?
Thanks for the pointers.
Cheers,
Harman
Created 04-22-2015 09:44 AM
Created on 04-23-2015 01:59 AM - edited 04-23-2015 02:02 AM
Hey Darren,
Thanks a lot for all your help and patience. Also, is there a way out to enable debugging and change web port using API ?
Logs from my server are:
Body:
{"items": [{"type": "NAVIGATORMETADATASERVER", "name": "NAVIGATORMETADATASERVER-1", "hostRef": {"hostId": "my-host-name"}}]}
2015-04-23 04:56:37,280 WARN 1161865304@scm-web-140:com.cloudera.cmf.persist.ReadOnlyDatabaseTaskCallable: Error while executing read only database task
java.lang.NullPointerException
2015-04-23 04:56:37,282 WARN 1161865304@scm-web-140:org.apache.cxf.phase.PhaseInterceptorChain: Interceptor for {http://api.cloudera.com/}ApiRootResourceImpl has thrown exception, unwinding now
java.lang.RuntimeException: java.lang.NullPointerException
Caused by: java.lang.NullPointerException
Thanks,
Harman
Created 04-23-2015 09:55 PM
Hey Darren,
Did you get a chance to look at the error from CM Server logs ?
Thanks,
Harman
Created 09-20-2017 06:08 AM
I'm having this same issue when installing using Cloudera Manager API. Were you able to install Navigator Metadata Server role using API?