Home » NoSQL » Hbase startup failed. Htrace

Hbase startup failed. Htrace

was installing Hbase-1.1.2 today, and the configuration file was checked many times without any problems, but the HRegionServer found on slave always failed to start, and then log on. The error message is as follows:


2016-01-02, 20:15:53145, INFO, [regionserver/slave6/10.72.51.199:16020], regionserver.HRegionServer:, STOPPED:, Failed, initialization
2016-01-02, 20:15:53146, ERROR, [regionserver/slave6/10.72.51.199:16020], regionserver.HRegionServer:, Failed, init
Java.lang.NoClassDefFoundError: org/htrace/Trace
At org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke (ProtobufRpcEngine.java:214)
At com.sun.proxy.$Proxy19.getFileInfo (Unknown Source)
At org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo (ClientNamenodeProtocolTranslatorPB.java:752)
At sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
At sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
At sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
At java.lang.reflect.Method.invoke (Method.java:606)
At org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod (RetryInvocationHandler.java:187)
At org.apache.hadoop.io.retry.RetryInvocationHandler.invoke (RetryInvocationHandler.java:102)
At com.sun.proxy.$Proxy20.getFileInfo (Unknown Source)
At sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
At sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
At sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
At java.lang.reflect.Method.invoke (Method.java:606)
At org.apache.hadoop.hbase.fs.HFileSystem$1.invoke (HFileSystem.java:279)
At com.sun.proxy.$Proxy21.getFileInfo (Unknown Source)
At org.apache.hadoop.hdfs.DFSClient.getFileInfo (DFSClient.java:1988)
At org.apache.hadoop.hdfs.DistributedFileSystem$18.doCall (DistributedFileSystem.java:1118)
At org.apache.hadoop.hdfs.DistributedFileSystem$18.doCall (DistributedFileSystem.java:1114)
At org.apache.hadoop.fs.FileSystemLinkResolver.resolve (FileSystemLinkResolver.java:81)
At org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus (DistributedFileSystem.java:1114)
At org.apache.hadoop.fs.FilterFileSystem.getFileStatus (FilterFileSystem.java:409)
At org.apache.hadoop.fs.FileSystem.exists (FileSystem.java:1400)
At org.apache.hadoop.hbase.regionserver.HRegionServer.setupWALAndReplication (HRegionServer.java:1606)
At org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse (HRegionServer.java:1362)
At org.apache.hadoop.hbase.regionserver.HRegionServer.run (HRegionServer.java:899)
At java.lang.Thread.run (Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.htrace.Trace
At java.net.URLClassLoader$1.run (URLClassLoader.java:366)
At java.net.URLClassLoader$1.run (URLClassLoader.java:355)
At java.security.AccessController.doPrivileged (Native Method)
At java.net.URLClassLoader.findClass (URLClassLoader.java:354)
At java.lang.ClassLoader.loadClass (ClassLoader.java:425)
At sun.misc.Launcher$AppClassLoader.loadClass (Launcher.java:308)
At java.lang.ClassLoader.loadClass (ClassLoader.java:358)
through data access, found that the htrace-core is related to the jar package, the solution is:


copy htrace-core-3.0.4.jar under $HADOOP_HOME/share/hadoop/common/lib to $HBASE_HOME/lib under


I check the $HBASE/lib directory, that has a htrace package: htrace-core-3.1.0-incubating.jar, I do not know what the reason, this looks like a bag loading failed, then prepared to note about

!

Latest