Reply
Explorer
Posts: 15
Registered: ‎09-01-2015

Facing error while installing CDH through Cloudera Manager. java.lang.NullPointerException.

[ Edited ]

I am installing Cloudera Hadoop as pseudo distributed mode. I am having ony one machine/system/node. And in this machine only I have to install Cloudera Manager and CDH. I have sussessfully installed the Clouder Manager through manual installation steps (http://www.cloudera.com/content/cloudera/en/documentation/cloudera-manager/v4-7-1/Cloudera-Manager-I...

 

When I am installing the CDH through Cloudera Manager GUI, I am facing error in the 3rd step where we specify hosts for our CDH cluster installation.
In this step I have mentioned my machine IP address and when I click on "Search" button it is able to search my machine, then I click on "Continue". After this It shows SERVER ERROR and the error is

"java.lang.NullPointerException:
at IOUtils.java line 1792
in org.apache.commons.io.IOUtils copyLarge()"

 

I am not able to find out the issue. Please help me out.

 

Here is the entire stack.

 

Path: http://xx.xx.xx.xx:7180/cmf/express-wizard/wizard

Version: Cloudera Enterprise Data Hub Edition Trial 5.4.5 (#5 built by jenkins on 20150728-0320 git: 0f47e1327ab87d49c6f504fe3e09e4022fa63ba1)

java.lang.NullPointerException:
at IOUtils.java line 1792
in org.apache.commons.io.IOUtils copyLarge()
Stack Trace:
  1. IOUtils.java line 1792
    in org.apache.commons.io.IOUtils copyLarge()
  2. IOUtils.java line 1769
    in org.apache.commons.io.IOUtils copyLarge()
  3. IOUtils.java line 1744
    in org.apache.commons.io.IOUtils copy()
  4. IOUtils.java line 462
    in org.apache.commons.io.IOUtils toByteArray()
  5. JavaOptionsStepImpl.java line 38
    in com.cloudera.server.web.cmf.wizard.hosts.JavaOptionsStepImpl child_render_1()
  6. WizardStepBaseImpl.java line 26
    in com.cloudera.server.web.cmf.wizard.WizardStepBaseImpl renderNoFlush()
  7. JavaOptionsStep.java line 101
    in com.cloudera.server.web.cmf.wizard.hosts.JavaOptionsStep renderNoFlush()
  8. ExpressAddHostsWizardImpl.java line 114
    in com.cloudera.server.web.cmf.wizard.express.ExpressAddHostsWizardImpl child_render_3()
  9. WizardBaseImpl.java line 35
    in com.cloudera.server.web.cmf.WizardBaseImpl child_render_2()
  10. SimpleBaseImpl.java line 257
    in com.cloudera.server.web.common.SimpleBaseImpl child_render_1()
  11. MegaBaseImpl.java line 137
    in com.cloudera.server.web.common.MegaBaseImpl renderNoFlush()
  12. ExpressAddHostsWizard.java line 240
    in com.cloudera.server.web.cmf.wizard.express.ExpressAddHostsWizard renderNoFlush()
  13. ExpressAddHostsWizard.java line 227
    in com.cloudera.server.web.cmf.wizard.express.ExpressAddHostsWizard render()
  14. ExpressAddHostsWizard.java line 219
    in com.cloudera.server.web.cmf.wizard.express.ExpressAddHostsWizard$1 renderTo()
  15. JamonModelAndView.java line 50
    in com.cloudera.server.web.common.JamonModelAndView$JamonView <init>()
  16. JamonModelAndView.java line 27
    in com.cloudera.server.web.common.JamonModelAndView$JamonView <init>()
  17. JamonModelAndView.java line 86
    in com.cloudera.server.web.common.JamonModelAndView of()
  18. ExpressWizardHostsController.java line 154
    in com.cloudera.server.web.cmf.ExpressWizardHostsController getAddHostsWizard()
  19. <generated> line -1
    in com.cloudera.server.web.cmf.ExpressWizardHostsController$$FastClassByCGLIB$$545e37e1 invoke()
  20. MethodProxy.java line 191
    in net.sf.cglib.proxy.MethodProxy invoke()
  21. Cglib2AopProxy.java line 688
    in org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation invokeJoinpoint()
  22. ReflectiveMethodInvocation.java line 150
    in org.springframework.aop.framework.ReflectiveMethodInvocation proceed()
  23. MethodSecurityInterceptor.java line 61
    in org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor invoke()
  24. ReflectiveMethodInvocation.java line 172
    in org.springframework.aop.framework.ReflectiveMethodInvocation proceed()
  25. Cglib2AopProxy.java line 621
    in org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor intercept()
  26. <generated> line -1
    in com.cloudera.server.web.cmf.ExpressWizardHostsController$$EnhancerByCGLIB$$90f269cc getAddHostsWizard()
  27. NativeMethodAccessorImpl.java line -2
    in sun.reflect.NativeMethodAccessorImpl invoke0()
  28. NativeMethodAccessorImpl.java line 57
    in sun.reflect.NativeMethodAccessorImpl invoke()
  29. DelegatingMethodAccessorImpl.java line 43
    in sun.reflect.DelegatingMethodAccessorImpl invoke()
  30. Method.java line 606
    in java.lang.reflect.Method invoke()
  31. HandlerMethodInvoker.java line 176
    in org.springframework.web.bind.annotation.support.HandlerMethodInvoker invokeHandlerMethod()
  32. AnnotationMethodHandlerAdapter.java line 436
    in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter invokeHandlerMethod()
  33. AnnotationMethodHandlerAdapter.java line 424
    in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter handle()
  34. DispatcherServlet.java line 790
    in org.springframework.web.servlet.DispatcherServlet doDispatch()
  35. DispatcherServlet.java line 719
    in org.springframework.web.servlet.DispatcherServlet doService()
  36. FrameworkServlet.java line 669
    in org.springframework.web.servlet.FrameworkServlet processRequest()
  37. FrameworkServlet.java line 585
    in org.springframework.web.servlet.FrameworkServlet doPost()
  38. HttpServlet.java line 727
    in javax.servlet.http.HttpServlet service()
  39. HttpServlet.java line 820
    in javax.servlet.http.HttpServlet service()
  40. ServletHolder.java line 511
    in org.mortbay.jetty.servlet.ServletHolder handle()
  41. ServletHandler.java line 1221
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
  42. UserAgentFilter.java line 78
    in org.mortbay.servlet.UserAgentFilter doFilter()
  43. GzipFilter.java line 154
    in org.mortbay.servlet.GzipFilter doFilter()
  44. ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
  45. JAMonServletFilter.java line 48
    in com.jamonapi.http.JAMonServletFilter doFilter()
  46. ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
  47. JavaMelodyFacade.java line 109
    in com.cloudera.enterprise.JavaMelodyFacade$MonitoringFilter doFilter()
  48. ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
  49. FilterChainProxy.java line 311
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  50. FilterSecurityInterceptor.java line 116
    in org.springframework.security.web.access.intercept.FilterSecurityInterceptor invoke()
  51. FilterSecurityInterceptor.java line 83
    in org.springframework.security.web.access.intercept.FilterSecurityInterceptor doFilter()
  52. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  53. ExceptionTranslationFilter.java line 113
    in org.springframework.security.web.access.ExceptionTranslationFilter doFilter()
  54. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  55. SessionManagementFilter.java line 101
    in org.springframework.security.web.session.SessionManagementFilter doFilter()
  56. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  57. AnonymousAuthenticationFilter.java line 113
    in org.springframework.security.web.authentication.AnonymousAuthenticationFilter doFilter()
  58. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  59. RememberMeAuthenticationFilter.java line 146
    in org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter doFilter()
  60. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  61. SecurityContextHolderAwareRequestFilter.java line 54
    in org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter doFilter()
  62. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  63. RequestCacheAwareFilter.java line 45
    in org.springframework.security.web.savedrequest.RequestCacheAwareFilter doFilter()
  64. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  65. AbstractAuthenticationProcessingFilter.java line 182
    in org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter doFilter()
  66. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  67. LogoutFilter.java line 105
    in org.springframework.security.web.authentication.logout.LogoutFilter doFilter()
  68. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  69. SecurityContextPersistenceFilter.java line 87
    in org.springframework.security.web.context.SecurityContextPersistenceFilter doFilter()
  70. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  71. ConcurrentSessionFilter.java line 125
    in org.springframework.security.web.session.ConcurrentSessionFilter doFilter()
  72. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  73. FilterChainProxy.java line 173
    in org.springframework.security.web.FilterChainProxy doFilter()
  74. DelegatingFilterProxy.java line 237
    in org.springframework.web.filter.DelegatingFilterProxy invokeDelegate()
  75. DelegatingFilterProxy.java line 167
    in org.springframework.web.filter.DelegatingFilterProxy doFilter()
  76. ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
  77. CharacterEncodingFilter.java line 88
    in org.springframework.web.filter.CharacterEncodingFilter doFilterInternal()
  78. OncePerRequestFilter.java line 76
    in org.springframework.web.filter.OncePerRequestFilter doFilter()
  79. ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
  80. ServletHandler.java line 399
    in org.mortbay.jetty.servlet.ServletHandler handle()
  81. SecurityHandler.java line 216
    in org.mortbay.jetty.security.SecurityHandler handle()
  82. SessionHandler.java line 182
    in org.mortbay.jetty.servlet.SessionHandler handle()
  83. SecurityHandler.java line 216
    in org.mortbay.jetty.security.SecurityHandler handle()
  84. ContextHandler.java line 767
    in org.mortbay.jetty.handler.ContextHandler handle()
  85. WebAppContext.java line 450
    in org.mortbay.jetty.webapp.WebAppContext handle()
  86. HandlerWrapper.java line 152
    in org.mortbay.jetty.handler.HandlerWrapper handle()
  87. StatisticsHandler.java line 53
    in org.mortbay.jetty.handler.StatisticsHandler handle()
  88. HandlerWrapper.java line 152
    in org.mortbay.jetty.handler.HandlerWrapper handle()
  89. Server.java line 326
    in org.mortbay.jetty.Server handle()
  90. HttpConnection.java line 542
    in org.mortbay.jetty.HttpConnection handleRequest()
  91. HttpConnection.java line 945
    in org.mortbay.jetty.HttpConnection$RequestHandler content()
  92. HttpParser.java line 756
    in org.mortbay.jetty.HttpParser parseNext()
  93. HttpParser.java line 218
    in org.mortbay.jetty.HttpParser parseAvailable()
  94. HttpConnection.java line 404
    in org.mortbay.jetty.HttpConnection handle()
  95. SelectChannelEndPoint.java line 410
    in org.mortbay.io.nio.SelectChannelEndPoint run()
  96. QueuedThreadPool.java line 582
    in org.mortbay.thread.QueuedThreadPool$PoolThread run()
New Contributor
Posts: 5
Registered: ‎08-21-2013

Re: Facing error while installing CDH through Cloudera Manager. java.lang.NullPointerException.

I am having the same error. I am runnig Ubuntu 14.04 on all machines. I have 17 nodes one running the manager and the other 16 running the Agents. I put in the FQDN name in the host search space and click searh. All 17 nodes show up with their respective IP's and names. But as soon as I click next I received the folowing error:

 

A server error has occurred. Send the following information to Cloudera.

Path: http://xxx.xxx.xxx.113:7180/cmf/express-wizard/wizard

Version: Cloudera Express 5.4.7 (#10 built by jenkins on 20150915-1155 git: acbc8190254a37d0bb06aa0901325a9197eb73bb)

java.lang.NullPointerException:
at IOUtils.java line 1792
in org.apache.commons.io.IOUtils copyLarge()
Cloudera Employee
Posts: 39
Registered: ‎08-22-2014

Re: Facing error while installing CDH through Cloudera Manager. java.lang.NullPointerException.

Hi enelso and hkumar449,

 

That stacktrace is typically indicative of a potential version mismatch between the CM Agents and the CM Server, or by using an unsupported JDK.  Can you confirm that the CM Agent versions are equal to the version of the CM Server and the JDK type and version used on the nodes?

 

 

 

New Contributor
Posts: 2
Registered: ‎06-07-2016

Re: Facing error while installing CDH through Cloudera Manager. java.lang.NullPointerException.

[ Edited ]

Hi @Anthony,

 

I do meet the same issue.

 

Maybe it's because I do "sudo apt-get upgrade" on cloudera manager server,

I get the error on each agent node

"This host is in contact with the Cloudera Manager Server. This host is in contact with the Host Monitor. The host's Cloudera Manager Agent version (5.7.1) does not match the Host Monitor version (5.8.1)."

 

I do "sudo apt-get upgrade" on agent node, but it doesn't help.

I do upgrade on CDH, but the error shows the same as above.

Could you tell me how to get the agent upgrade done?

 

Thanks.

Cloudera Employee
Posts: 39
Registered: ‎08-22-2014

Re: Facing error while installing CDH through Cloudera Manager. java.lang.NullPointerException.

[ Edited ]

Hi @acer,

 

It appears that you're running an Ubuntu / Debian OS;  Have you had a chance to run the CM upgrade wizard which upgrades the CM Agents?

 

You can access the upgrade wizard by navigating to the following URL (please modify the hostname to suit your CM installation):

http://cloudera-manager-node.yourcompany.com:7180/cmf/upgrade-wizard/welcome

 

Please try to go through the CM Wizard to upgrade the CM Agents.  If this doesn't resolve the issue, you can also try to manually upgrade the CM Agents on each node.  On each node containing an outdated CM Agent, please perform the following steps:

 

 

1. Verify the current version of the CM Agent

$ dpkg -s cloudera-manager-agent | grep Version

 

2. Update the apt-get cache

$ sudo apt-get update

 

3. Upgrade the CM Agent package

$ sudo apt-get install --only-upgrade cloudera-manager-agent

 

4. Verify that the CM Agent was upgraded, confirming the version of the package installed:

$ dpkg -s cloudera-manager-agent | grep Version

 

 

Kind Regards,

 

Anthony

Highlighted
Explorer
Posts: 7
Registered: ‎04-23-2018

Re: Facing error while installing CDH through Cloudera Manager. java.lang.NullPointerException.

This happened to me while trying to running an upgrade wizard.

 

This is an old post but one way to workaround this issue is to restart cloudera-scm-server service.

 

#sudo service cloudera-scm-server restart. 

 

Then try the upgrade again.

Announcements