Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Error Installing HBase using Cloudera Manager

Error Installing HBase using Cloudera Manager

New Contributor

I installed CDH4 and Cloudera Manager on a set of AWS EC2 Instances. The installation went fine and was able to run a few tests successfully. I wanted to install Hbase on the cluster, and tried to add the service. I am getting this error message, which does not go away even after I reboot all the instances.

Help Please!!

 

Server Error

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

Path: http://ec2-aaa-a-aaa-aaa.compute-1.amazonaws.com:7180/cmf/add-service-wizard/firstrun

Version: Cloudera Standard 4.8.4 (#149 built by jenkins on 20140728-1659 git: df6652ee32b68f52f566edc08935b2704f42acbe)

javax.persistence.RollbackException:Error while committing the transaction
at TransactionImpl.java line 92
in org.hibernate.ejb.TransactionImpl commit()
Stack Trace:
  1. TransactionImpl.java line 92
    in org.hibernate.ejb.TransactionImpl commit()
  2. AbstractWrappedEntityManager.java line 110
    in com.cloudera.enterprise.AbstractWrappedEntityManager commit()
  3. CmfEntityManager.java line 364
    in com.cloudera.cmf.persist.CmfEntityManager commit()
  4. AddServiceWizardControllerBase.java line 75
    in com.cloudera.server.web.cmf.AddServiceWizardControllerBase wizardFirstRun()
  5. <generated> line -1
    in com.cloudera.server.web.cmf.AddServiceWizardControllerBase$$FastClassByCGLIB$$a4661f21 invoke()
  6. MethodProxy.java line 191
    in net.sf.cglib.proxy.MethodProxy invoke()
  7. Cglib2AopProxy.java line 688
    in org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation invokeJoinpoint()
  8. ReflectiveMethodInvocation.java line 150
    in org.springframework.aop.framework.ReflectiveMethodInvocation proceed()
  9. MethodSecurityInterceptor.java line 61
    in org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor invoke()
  10. ReflectiveMethodInvocation.java line 172
    in org.springframework.aop.framework.ReflectiveMethodInvocation proceed()
  11. Cglib2AopProxy.java line 621
    in org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor intercept()
  12. <generated> line -1
    in com.cloudera.server.web.cmf.AddServiceWizardController$$EnhancerByCGLIB$$425c01b1 wizardFirstRun()
  13. NativeMethodAccessorImpl.java line -2
    in sun.reflect.NativeMethodAccessorImpl invoke0()
  14. NativeMethodAccessorImpl.java line 39
    in sun.reflect.NativeMethodAccessorImpl invoke()
  15. DelegatingMethodAccessorImpl.java line 25
    in sun.reflect.DelegatingMethodAccessorImpl invoke()
  16. Method.java line 597
    in java.lang.reflect.Method invoke()
  17. HandlerMethodInvoker.java line 176
    in org.springframework.web.bind.annotation.support.HandlerMethodInvoker invokeHandlerMethod()
  18. AnnotationMethodHandlerAdapter.java line 436
    in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter invokeHandlerMethod()
  19. AnnotationMethodHandlerAdapter.java line 424
    in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter handle()
  20. DispatcherServlet.java line 790
    in org.springframework.web.servlet.DispatcherServlet doDispatch()
  21. DispatcherServlet.java line 719
    in org.springframework.web.servlet.DispatcherServlet doService()
  22. FrameworkServlet.java line 669
    in org.springframework.web.servlet.FrameworkServlet processRequest()
  23. FrameworkServlet.java line 574
    in org.springframework.web.servlet.FrameworkServlet doGet()
  24. HttpServlet.java line 707
    in javax.servlet.http.HttpServlet service()
  25. HttpServlet.java line 820
    in javax.servlet.http.HttpServlet service()
  26. ServletHolder.java line 511
    in org.mortbay.jetty.servlet.ServletHolder handle()
  27. ServletHandler.java line 1221
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
  28. UserAgentFilter.java line 78
    in org.mortbay.servlet.UserAgentFilter doFilter()
  29. GzipFilter.java line 131
    in org.mortbay.servlet.GzipFilter doFilter()
  30. ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
  31. JAMonServletFilter.java line 48
    in com.jamonapi.http.JAMonServletFilter doFilter()
  32. ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
  33. JavaMelodyFacade.java line 109
    in com.cloudera.enterprise.JavaMelodyFacade$MonitoringFilter doFilter()
  34. ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
  35. FilterChainProxy.java line 311
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  36. FilterSecurityInterceptor.java line 116
    in org.springframework.security.web.access.intercept.FilterSecurityInterceptor invoke()
  37. FilterSecurityInterceptor.java line 83
    in org.springframework.security.web.access.intercept.FilterSecurityInterceptor doFilter()
  38. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  39. ExceptionTranslationFilter.java line 113
    in org.springframework.security.web.access.ExceptionTranslationFilter doFilter()
  40. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  41. SessionManagementFilter.java line 101
    in org.springframework.security.web.session.SessionManagementFilter doFilter()
  42. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  43. AnonymousAuthenticationFilter.java line 113
    in org.springframework.security.web.authentication.AnonymousAuthenticationFilter doFilter()
  44. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  45. RememberMeAuthenticationFilter.java line 146
    in org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter doFilter()
  46. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  47. SecurityContextHolderAwareRequestFilter.java line 54
    in org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter doFilter()
  48. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  49. RequestCacheAwareFilter.java line 45
    in org.springframework.security.web.savedrequest.RequestCacheAwareFilter doFilter()
  50. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  51. AbstractAuthenticationProcessingFilter.java line 182
    in org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter doFilter()
  52. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  53. LogoutFilter.java line 105
    in org.springframework.security.web.authentication.logout.LogoutFilter doFilter()
  54. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  55. SecurityContextPersistenceFilter.java line 87
    in org.springframework.security.web.context.SecurityContextPersistenceFilter doFilter()
  56. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  57. ConcurrentSessionFilter.java line 125
    in org.springframework.security.web.session.ConcurrentSessionFilter doFilter()
  58. FilterChainProxy.java line 323
    in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()
  59. FilterChainProxy.java line 173
    in org.springframework.security.web.FilterChainProxy doFilter()
  60. DelegatingFilterProxy.java line 237
    in org.springframework.web.filter.DelegatingFilterProxy invokeDelegate()
  61. DelegatingFilterProxy.java line 167
    in org.springframework.web.filter.DelegatingFilterProxy doFilter()
  62. ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
  63. CharacterEncodingFilter.java line 88
    in org.springframework.web.filter.CharacterEncodingFilter doFilterInternal()
  64. OncePerRequestFilter.java line 76
    in org.springframework.web.filter.OncePerRequestFilter doFilter()
  65. ServletHandler.java line 1212
    in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()
  66. ServletHandler.java line 399
    in org.mortbay.jetty.servlet.ServletHandler handle()
  67. SecurityHandler.java line 216
    in org.mortbay.jetty.security.SecurityHandler handle()
  68. SessionHandler.java line 182
    in org.mortbay.jetty.servlet.SessionHandler handle()
  69. SecurityHandler.java line 216
    in org.mortbay.jetty.security.SecurityHandler handle()
  70. ContextHandler.java line 766
    in org.mortbay.jetty.handler.ContextHandler handle()
  71. WebAppContext.java line 450
    in org.mortbay.jetty.webapp.WebAppContext handle()
  72. HandlerWrapper.java line 152
    in org.mortbay.jetty.handler.HandlerWrapper handle()
  73. StatisticsHandler.java line 53
    in org.mortbay.jetty.handler.StatisticsHandler handle()
  74. HandlerWrapper.java line 152
    in org.mortbay.jetty.handler.HandlerWrapper handle()
  75. Server.java line 326
    in org.mortbay.jetty.Server handle()
  76. HttpConnection.java line 542
    in org.mortbay.jetty.HttpConnection handleRequest()
  77. HttpConnection.java line 928
    in org.mortbay.jetty.HttpConnection$RequestHandler headerComplete()
  78. HttpParser.java line 549
    in org.mortbay.jetty.HttpParser parseNext()
  79. HttpParser.java line 212
    in org.mortbay.jetty.HttpParser parseAvailable()
  80. HttpConnection.java line 404
    in org.mortbay.jetty.HttpConnection handle()
  81. SelectChannelEndPoint.java line 410
    in org.mortbay.io.nio.SelectChannelEndPoint run()
  82. QueuedThreadPool.java line 582
    in org.mortbay.thread.QueuedThreadPool$PoolThread run()
Caused by: javax.persistence.PersistenceException:org.hibernate.exception.GenericJDBCException: Batch entry 0 insert into COMMANDS (OPTIMISTIC_LOCK_VERSION, NAME, STATE, START_INSTANT, END_INSTANT, ACTIVE, RESULT_MESSAGE, RESULT_DATA, RESULT_DATA_MIME_TYPE, RESULT_DATA_FILENAME, RESULT_DATA_PATH, RESULT_DATA_REAPED, SUCCESS, INTERNAL_STATE, ARGUMENTS, AUDITED, CLUSTER_ID, SERVICE_ID, ROLE_ID, HOST_ID, SCHEDULE_ID, PARENT_ID, COMMAND_ID) values ('0', 'First Run', 'STARTED', '1415769322411', NULL, '1', NULL, NULL, NULL, NULL, NULL, '0', '0', '<stream of 198 bytes>', '{"@class":"com.cloudera.cmf.command.BasicCmdArgs","alertConfig":null,"args":["CREATED_SERVICES","hbase1","DEPENDENCIES","zookeeper1","hdfs1"]}', '0', NULL, NULL, NULL, NULL, NULL, NULL, '179') was aborted. Call getNextException to see the cause.
at AbstractEntityManagerImpl.java line 1377
in org.hibernate.ejb.AbstractEntityManagerImpl convert()
6 REPLIES 6
Highlighted

Re: Error Installing HBase using Cloudera Manager

Could you confirm which version of CDH you are using and what other
services you have running prior to adding HBase?

The error seems to be about writing to the database. Are you using the
embedded Postgresql or an external database? Are you able to connect
to the database directly and run simple commands like "describe"?
Regards,
Gautam Gopalakrishnan

Re: Error Installing HBase using Cloudera Manager

New Contributor

how to solve the problem? thanks 

Re: Error Installing HBase using Cloudera Manager

New Contributor

how to solve the problems? thanks a lot

Re: Error Installing HBase using Cloudera Manager

Have you checked if the database is running?
Regards,
Gautam Gopalakrishnan

Re: Error Installing HBase using Cloudera Manager

New Contributor

when i run a  select command, it shows the following error:

 

FAILED: RuntimeException org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.namenode.SafeModeException): Cannot create directory /tmp/hive-root/hive_2015-01-14_11-03-41_225_5881224394136658199-1. Name node is in safe mode.
Resources are low on NN. Please add or free up more resources then turn off safe mode manually. NOTE: If you turn off safe mode before adding resources, the NN will immediately return to safe mode. Use "hdfs dfsadmin -safemode leave" to turn safe mode off.
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkNameNodeSafeMode(FSNamesystem.java:1197)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirsInt(FSNamesystem.java:3568)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirs(FSNamesystem.java:3544)
at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.mkdirs(NameNodeRpcServer.java:739)
at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.mkdirs(ClientNamenodeProtocolServerSideTranslatorPB.java:558)
at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:585)
at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1026)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1986)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1982)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1548)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1980)

Re: Error Installing HBase using Cloudera Manager

When the namenode is in safe mode, it is basically in read only mode. You
should inspect the namenode logs to find out why it is in safe mode. The
log would be under /var/log/hadoop-hdfs

Regards,
Gautam Gopalakrishnan