FAQ
Swarnim,

Please post your Cloudera Manager (CM) questions to scm-users <
scm-users@cloudera.org> for a faster response.

Also you can file CM bugs at
https://issues.cloudera.org/browse/cm

Thanks,
Bala



On Thu, Jan 9, 2014 at 11:28 AM, kulkarni.swarnim@gmail.com wrote:

I managed to figure this one out. You will apparently need to do a
setBase(false) on the ApiRoleConfigGroup object or you will get this weird
error. Still I feel that this should be a bug and it should report back to
the client what is wrong instead of a cryptic 500 error. Any specific place
to log it?

Thanks,
Swarnim


On Thu, Jan 9, 2014 at 12:41 PM, kulkarni.swarnim@gmail.com <
kulkarni.swarnim@gmail.com> wrote:
Hello,

So I was trying to provision a cluster using the cloudera manager java
api and got the following exception:

2014-01-09 12:29:04,214 WARN [1205100289@scm-web-16070:api.ApiExceptionMapper@141] Unexpected exception.
java.lang.NullPointerException
at com.cloudera.api.dao.impl.ServiceManagerDaoImpl.createService(ServiceManagerDaoImpl.java:204)
at com.cloudera.api.dao.impl.ServiceManagerDaoImpl.createServices(ServiceManagerDaoImpl.java:353)
at sun.reflect.GeneratedMethodAccessor2224.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:197)
at com.sun.proxy.$Proxy71.createServices(Unknown Source)
at com.cloudera.api.dao.impl.ClusterManagerDaoImpl.createClusters(ClusterManagerDaoImpl.java:45)
at sun.reflect.GeneratedMethodAccessor2222.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:147)
at com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:192)
at com.sun.proxy.$Proxy70.createClusters(Unknown Source)
at com.cloudera.api.v1.impl.ClustersResourceImpl.createClusters(ClustersResourceImpl.java:43)
at sun.reflect.GeneratedMethodAccessor2221.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:167)
at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:102)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:243)
at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:102)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:243)
at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:102)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:94)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:122)
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:154)
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:129)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:219)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:139)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)


This exception specifically pops up when trying to set role groups and
their configuration within a service.

On the client side all I see is this error which is of not much help:

Status : 500
Headers :
Content-Length : 3
content-type : application/json; charset=UTF-8
Date : Thu, 09 Jan 2014 18:34:14 GMT
Expires : Thu, 01-Jan-1970 00:00:00 GMT
Server : Jetty(6.1.26.cloudera.2)
Set-Cookie :
CLOUDERA_MANAGER_SESSIONID=e093wbf25f6dwv6sta9uuew3;Path=/;HttpOnly
Error message :
{ }
at
org.apache.cxf.jaxrs.client.ClientProxyImpl.checkResponse(ClientProxyImpl.java:278)
at
org.apache.cxf.jaxrs.client.ClientProxyImpl.handleResponse(ClientProxyImpl.java:571)
at
org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(ClientProxyImpl.java:540)
at
org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:205)
at com.sun.proxy.$Proxy26.createClusters(Unknown Source)


Any ideas on what I might be missing?

The cloudera manager server and client version is 4.8.

Thanks,
Swarnim


--
Swarnim

--

---
You received this message because you are subscribed to the Google Groups
"CDH Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to cdh-user+unsubscribe@cloudera.org.
For more options, visit
https://groups.google.com/a/cloudera.org/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Search Discussions

  • Darren Lo at Jan 9, 2014 at 9:33 pm
    Thanks for reporting this issue! We've actually already fixed this in the
    latest CM5 beta release. It is not fixed in CM4.x.

    Thanks,
    Darren

    On Thu, Jan 9, 2014 at 11:36 AM, Bala Venkatrao wrote:

    Swarnim,

    Please post your Cloudera Manager (CM) questions to scm-users <
    scm-users@cloudera.org> for a faster response.

    Also you can file CM bugs at
    https://issues.cloudera.org/browse/cm

    Thanks,
    Bala




    On Thu, Jan 9, 2014 at 11:28 AM, kulkarni.swarnim@gmail.com <
    kulkarni.swarnim@gmail.com> wrote:
    I managed to figure this one out. You will apparently need to do a
    setBase(false) on the ApiRoleConfigGroup object or you will get this weird
    error. Still I feel that this should be a bug and it should report back to
    the client what is wrong instead of a cryptic 500 error. Any specific place
    to log it?

    Thanks,
    Swarnim


    On Thu, Jan 9, 2014 at 12:41 PM, kulkarni.swarnim@gmail.com <
    kulkarni.swarnim@gmail.com> wrote:
    Hello,

    So I was trying to provision a cluster using the cloudera manager java
    api and got the following exception:

    2014-01-09 12:29:04,214 WARN [1205100289@scm-web-16070:api.ApiExceptionMapper@141] Unexpected exception.
    java.lang.NullPointerException
    at com.cloudera.api.dao.impl.ServiceManagerDaoImpl.createService(ServiceManagerDaoImpl.java:204)
    at com.cloudera.api.dao.impl.ServiceManagerDaoImpl.createServices(ServiceManagerDaoImpl.java:353)
    at sun.reflect.GeneratedMethodAccessor2224.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:197)
    at com.sun.proxy.$Proxy71.createServices(Unknown Source)
    at com.cloudera.api.dao.impl.ClusterManagerDaoImpl.createClusters(ClusterManagerDaoImpl.java:45)
    at sun.reflect.GeneratedMethodAccessor2222.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:147)
    at com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:192)
    at com.sun.proxy.$Proxy70.createClusters(Unknown Source)
    at com.cloudera.api.v1.impl.ClustersResourceImpl.createClusters(ClustersResourceImpl.java:43)
    at sun.reflect.GeneratedMethodAccessor2221.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
    at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:167)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:102)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:243)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:102)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:243)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:102)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:94)
    at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
    at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:122)
    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)
    at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)
    at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:154)
    at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:129)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:219)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:139)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)


    This exception specifically pops up when trying to set role groups and
    their configuration within a service.

    On the client side all I see is this error which is of not much help:

    Status : 500
    Headers :
    Content-Length : 3
    content-type : application/json; charset=UTF-8
    Date : Thu, 09 Jan 2014 18:34:14 GMT
    Expires : Thu, 01-Jan-1970 00:00:00 GMT
    Server : Jetty(6.1.26.cloudera.2)
    Set-Cookie :
    CLOUDERA_MANAGER_SESSIONID=e093wbf25f6dwv6sta9uuew3;Path=/;HttpOnly
    Error message :
    { }
    at
    org.apache.cxf.jaxrs.client.ClientProxyImpl.checkResponse(ClientProxyImpl.java:278)
    at
    org.apache.cxf.jaxrs.client.ClientProxyImpl.handleResponse(ClientProxyImpl.java:571)
    at
    org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(ClientProxyImpl.java:540)
    at
    org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:205)
    at com.sun.proxy.$Proxy26.createClusters(Unknown Source)


    Any ideas on what I might be missing?

    The cloudera manager server and client version is 4.8.

    Thanks,
    Swarnim


    --
    Swarnim

    --

    ---
    You received this message because you are subscribed to the Google Groups
    "CDH Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to cdh-user+unsubscribe@cloudera.org.
    For more options, visit
    https://groups.google.com/a/cloudera.org/groups/opt_out.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to scm-users+unsubscribe@cloudera.org.


    --
    Thanks,
    Darren

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedJan 9, '14 at 7:37p
activeJan 9, '14 at 9:33p
posts2
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Darren Lo: 1 post Bala Venkatrao: 1 post

People

Translate

site design / logo © 2022 Grokbase