FAQ
While using the CM5 API (5.0.1), ran into the following error on the server
while enabling HDFS HA:

java.lang.NullPointerException
at com.cloudera.server.common.HaUtils.validateHost(HaUtils.java:106)
at
com.cloudera.cmf.service.hdfs.EnableNNHACommand.validateArgs(EnableNNHACommand.java:161)
at
com.cloudera.cmf.service.hdfs.EnableNNHACommand.constructWork(EnableNNHACommand.java:262)
at
com.cloudera.cmf.service.hdfs.EnableNNHACommand.constructWork(EnableNNHACommand.java:49)
at com.cloudera.cmf.command.CmdWorkCommand.execute(CmdWorkCommand.java:52)
at
com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommandHelper(ServiceHandlerRegistry.java:751)
at
com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommand(ServiceHandlerRegistry.java:716)
at
com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommand(ServiceHandlerRegistry.java:711)
at
com.cloudera.server.cmf.components.OperationsManagerImpl.executeServiceCmd(OperationsManagerImpl.java:1482)
at
com.cloudera.api.dao.impl.CommandManagerDaoImpl.issueHdfsEnableNnHaCommand(CommandManagerDaoImpl.java:319)
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.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:158)
at com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:203)
at com.sun.proxy.$Proxy123.issueHdfsEnableNnHaCommand(Unknown Source)
at
com.cloudera.api.v6.impl.ServicesResourceV6Impl.hdfsEnableNnHaCommand(ServicesResourceV6Impl.java:239)
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
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:102)

Any ideas on what went wrong here? Looking at the exception its very hard
to say what is wrong with my configuration.

Thanks,
Swarnim

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

Search Discussions

  • Vikram Srivastava at May 16, 2014 at 4:18 pm
    Does the host where you are trying to setup Standby NN belong to the same
    cluster where your Active NN is?

    On Fri, May 16, 2014 at 9:07 AM, kulkarni.swarnim@gmail.com wrote:

    While using the CM5 API (5.0.1), ran into the following error on the
    server while enabling HDFS HA:

    java.lang.NullPointerException
    at com.cloudera.server.common.HaUtils.validateHost(HaUtils.java:106)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.validateArgs(EnableNNHACommand.java:161)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.constructWork(EnableNNHACommand.java:262)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.constructWork(EnableNNHACommand.java:49)
    at com.cloudera.cmf.command.CmdWorkCommand.execute(CmdWorkCommand.java:52)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommandHelper(ServiceHandlerRegistry.java:751)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommand(ServiceHandlerRegistry.java:716)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommand(ServiceHandlerRegistry.java:711)
    at
    com.cloudera.server.cmf.components.OperationsManagerImpl.executeServiceCmd(OperationsManagerImpl.java:1482)
    at
    com.cloudera.api.dao.impl.CommandManagerDaoImpl.issueHdfsEnableNnHaCommand(CommandManagerDaoImpl.java:319)
    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.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:158)
    at
    com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:203)
    at com.sun.proxy.$Proxy123.issueHdfsEnableNnHaCommand(Unknown Source)
    at
    com.cloudera.api.v6.impl.ServicesResourceV6Impl.hdfsEnableNnHaCommand(ServicesResourceV6Impl.java:239)
    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
    org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
    at
    org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:102)

    Any ideas on what went wrong here? Looking at the exception its very hard
    to say what is wrong with my configuration.

    Thanks,
    Swarnim

    To unsubscribe from this group and stop receiving emails from it, send an
    email to scm-users+unsubscribe@cloudera.org.
    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Kulkarni Swarnim at May 16, 2014 at 4:16 pm
    Yes. They belong to the same cluster but are different hosts. Also AFAIK
    this had worked before with 5.0.0. Did anything change with 5.0.1?

    On Fri, May 16, 2014 at 11:12 AM, Vikram Srivastava wrote:

    Does the host where you are trying to setup Standby NN belong to the same
    cluster where your Active NN is?


    On Fri, May 16, 2014 at 9:07 AM, kulkarni.swarnim@gmail.com <
    kulkarni.swarnim@gmail.com> wrote:
    While using the CM5 API (5.0.1), ran into the following error on the
    server while enabling HDFS HA:

    java.lang.NullPointerException
    at com.cloudera.server.common.HaUtils.validateHost(HaUtils.java:106)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.validateArgs(EnableNNHACommand.java:161)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.constructWork(EnableNNHACommand.java:262)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.constructWork(EnableNNHACommand.java:49)
    at
    com.cloudera.cmf.command.CmdWorkCommand.execute(CmdWorkCommand.java:52)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommandHelper(ServiceHandlerRegistry.java:751)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommand(ServiceHandlerRegistry.java:716)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommand(ServiceHandlerRegistry.java:711)
    at
    com.cloudera.server.cmf.components.OperationsManagerImpl.executeServiceCmd(OperationsManagerImpl.java:1482)
    at
    com.cloudera.api.dao.impl.CommandManagerDaoImpl.issueHdfsEnableNnHaCommand(CommandManagerDaoImpl.java:319)
    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.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:158)
    at
    com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:203)
    at com.sun.proxy.$Proxy123.issueHdfsEnableNnHaCommand(Unknown Source)
    at
    com.cloudera.api.v6.impl.ServicesResourceV6Impl.hdfsEnableNnHaCommand(ServicesResourceV6Impl.java:239)
    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
    org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
    at
    org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:102)

    Any ideas on what went wrong here? Looking at the exception its very hard
    to say what is wrong with my configuration.

    Thanks,
    Swarnim

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

    --
    Swarnim

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Vikram Srivastava at May 16, 2014 at 4:35 pm
    No, there hasn't been any change with this between 5.0.0 and 5.0.1. The
    check where this is failing checks if SBN Host's cluster is same as HDFS
    service's cluster. So NPE will happen if Host's cluster is null. Can you
    post a screenshot of your "Hosts" tab and let us know which host you are
    trying to add SBN to?

    On Fri, May 16, 2014 at 9:15 AM, kulkarni.swarnim@gmail.com wrote:

    Yes. They belong to the same cluster but are different hosts. Also AFAIK
    this had worked before with 5.0.0. Did anything change with 5.0.1?

    On Fri, May 16, 2014 at 11:12 AM, Vikram Srivastava wrote:

    Does the host where you are trying to setup Standby NN belong to the same
    cluster where your Active NN is?


    On Fri, May 16, 2014 at 9:07 AM, kulkarni.swarnim@gmail.com <
    kulkarni.swarnim@gmail.com> wrote:
    While using the CM5 API (5.0.1), ran into the following error on the
    server while enabling HDFS HA:

    java.lang.NullPointerException
    at com.cloudera.server.common.HaUtils.validateHost(HaUtils.java:106)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.validateArgs(EnableNNHACommand.java:161)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.constructWork(EnableNNHACommand.java:262)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.constructWork(EnableNNHACommand.java:49)
    at
    com.cloudera.cmf.command.CmdWorkCommand.execute(CmdWorkCommand.java:52)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommandHelper(ServiceHandlerRegistry.java:751)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommand(ServiceHandlerRegistry.java:716)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommand(ServiceHandlerRegistry.java:711)
    at
    com.cloudera.server.cmf.components.OperationsManagerImpl.executeServiceCmd(OperationsManagerImpl.java:1482)
    at
    com.cloudera.api.dao.impl.CommandManagerDaoImpl.issueHdfsEnableNnHaCommand(CommandManagerDaoImpl.java:319)
    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.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:158)
    at
    com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:203)
    at com.sun.proxy.$Proxy123.issueHdfsEnableNnHaCommand(Unknown Source)
    at
    com.cloudera.api.v6.impl.ServicesResourceV6Impl.hdfsEnableNnHaCommand(ServicesResourceV6Impl.java:239)
    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
    org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
    at
    org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:102)

    Any ideas on what went wrong here? Looking at the exception its very
    hard to say what is wrong with my configuration.

    Thanks,
    Swarnim

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

    --
    Swarnim
    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Kulkarni Swarnim at May 16, 2014 at 6:53 pm
    Thanks Vikram. That helps.
    So NPE will happen if Host's cluster is null.
    This was critical. I would have never figured that on my own without the
    source code. Also you were correct. The host with SB NN was not part of the
    cluster and had a blank in front of it in the UI under "Clusters" column. I
    reconfigured to run them on different hosts and things went fine from there.

    Should this be logged as a bug to handle the exception more gracefully? We
    are cloudera customers and I have anyways opened an internal ticket for
    this.



    On Fri, May 16, 2014 at 11:35 AM, Vikram Srivastava wrote:

    No, there hasn't been any change with this between 5.0.0 and 5.0.1. The
    check where this is failing checks if SBN Host's cluster is same as HDFS
    service's cluster. So NPE will happen if Host's cluster is null. Can you
    post a screenshot of your "Hosts" tab and let us know which host you are
    trying to add SBN to?


    On Fri, May 16, 2014 at 9:15 AM, kulkarni.swarnim@gmail.com <
    kulkarni.swarnim@gmail.com> wrote:
    Yes. They belong to the same cluster but are different hosts. Also AFAIK
    this had worked before with 5.0.0. Did anything change with 5.0.1?


    On Fri, May 16, 2014 at 11:12 AM, Vikram Srivastava <vikrams@cloudera.com
    wrote:
    Does the host where you are trying to setup Standby NN belong to the
    same cluster where your Active NN is?


    On Fri, May 16, 2014 at 9:07 AM, kulkarni.swarnim@gmail.com <
    kulkarni.swarnim@gmail.com> wrote:
    While using the CM5 API (5.0.1), ran into the following error on the
    server while enabling HDFS HA:

    java.lang.NullPointerException
    at com.cloudera.server.common.HaUtils.validateHost(HaUtils.java:106)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.validateArgs(EnableNNHACommand.java:161)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.constructWork(EnableNNHACommand.java:262)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.constructWork(EnableNNHACommand.java:49)
    at
    com.cloudera.cmf.command.CmdWorkCommand.execute(CmdWorkCommand.java:52)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommandHelper(ServiceHandlerRegistry.java:751)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommand(ServiceHandlerRegistry.java:716)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommand(ServiceHandlerRegistry.java:711)
    at
    com.cloudera.server.cmf.components.OperationsManagerImpl.executeServiceCmd(OperationsManagerImpl.java:1482)
    at
    com.cloudera.api.dao.impl.CommandManagerDaoImpl.issueHdfsEnableNnHaCommand(CommandManagerDaoImpl.java:319)
    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.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:158)
    at
    com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:203)
    at com.sun.proxy.$Proxy123.issueHdfsEnableNnHaCommand(Unknown Source)
    at
    com.cloudera.api.v6.impl.ServicesResourceV6Impl.hdfsEnableNnHaCommand(ServicesResourceV6Impl.java:239)
    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
    org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
    at
    org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:102)

    Any ideas on what went wrong here? Looking at the exception its very
    hard to say what is wrong with my configuration.

    Thanks,
    Swarnim

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

    --
    Swarnim

    --
    Swarnim

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Vikram Srivastava at May 16, 2014 at 11:27 pm
    Thanks for verifying. I've filed an internal ticket for this.

    On Fri, May 16, 2014 at 11:52 AM, kulkarni.swarnim@gmail.com wrote:

    Thanks Vikram. That helps.
    So NPE will happen if Host's cluster is null.
    This was critical. I would have never figured that on my own without the
    source code. Also you were correct. The host with SB NN was not part of the
    cluster and had a blank in front of it in the UI under "Clusters" column. I
    reconfigured to run them on different hosts and things went fine from there.

    Should this be logged as a bug to handle the exception more gracefully? We
    are cloudera customers and I have anyways opened an internal ticket for
    this.



    On Fri, May 16, 2014 at 11:35 AM, Vikram Srivastava wrote:

    No, there hasn't been any change with this between 5.0.0 and 5.0.1. The
    check where this is failing checks if SBN Host's cluster is same as HDFS
    service's cluster. So NPE will happen if Host's cluster is null. Can you
    post a screenshot of your "Hosts" tab and let us know which host you are
    trying to add SBN to?


    On Fri, May 16, 2014 at 9:15 AM, kulkarni.swarnim@gmail.com <
    kulkarni.swarnim@gmail.com> wrote:
    Yes. They belong to the same cluster but are different hosts. Also AFAIK
    this had worked before with 5.0.0. Did anything change with 5.0.1?


    On Fri, May 16, 2014 at 11:12 AM, Vikram Srivastava <
    vikrams@cloudera.com> wrote:
    Does the host where you are trying to setup Standby NN belong to the
    same cluster where your Active NN is?


    On Fri, May 16, 2014 at 9:07 AM, kulkarni.swarnim@gmail.com <
    kulkarni.swarnim@gmail.com> wrote:
    While using the CM5 API (5.0.1), ran into the following error on the
    server while enabling HDFS HA:

    java.lang.NullPointerException
    at com.cloudera.server.common.HaUtils.validateHost(HaUtils.java:106)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.validateArgs(EnableNNHACommand.java:161)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.constructWork(EnableNNHACommand.java:262)
    at
    com.cloudera.cmf.service.hdfs.EnableNNHACommand.constructWork(EnableNNHACommand.java:49)
    at
    com.cloudera.cmf.command.CmdWorkCommand.execute(CmdWorkCommand.java:52)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommandHelper(ServiceHandlerRegistry.java:751)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommand(ServiceHandlerRegistry.java:716)
    at
    com.cloudera.cmf.service.ServiceHandlerRegistry.executeCommand(ServiceHandlerRegistry.java:711)
    at
    com.cloudera.server.cmf.components.OperationsManagerImpl.executeServiceCmd(OperationsManagerImpl.java:1482)
    at
    com.cloudera.api.dao.impl.CommandManagerDaoImpl.issueHdfsEnableNnHaCommand(CommandManagerDaoImpl.java:319)
    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.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:158)
    at
    com.cloudera.api.dao.impl.ManagerDaoBase.invoke(ManagerDaoBase.java:203)
    at com.sun.proxy.$Proxy123.issueHdfsEnableNnHaCommand(Unknown Source)
    at
    com.cloudera.api.v6.impl.ServicesResourceV6Impl.hdfsEnableNnHaCommand(ServicesResourceV6Impl.java:239)
    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
    org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
    at
    org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:257)
    at com.cloudera.api.ApiInvoker.invoke(ApiInvoker.java:104)
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:102)

    Any ideas on what went wrong here? Looking at the exception its very
    hard to say what is wrong with my configuration.

    Thanks,
    Swarnim

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

    --
    Swarnim

    --
    Swarnim
    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
postedMay 16, '14 at 4:07p
activeMay 16, '14 at 11:27p
posts6
users2
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase