Reply
Highlighted
New Contributor
Posts: 3
Registered: ‎08-22-2018

Error during installation fully-distributed hbase system - java.lang.NoClassDefFoundError: org/apach

When I try to run Hbase in fully-distributed mode with configuration shown below I get error shown at the bottom. I found information here that:

 

> 1. The HMaster refuse to start due to the error below:
> 
> Java.lang.RuntimeException: Failed construction of Master: class
> org.apache.hadoop.hbase.master.HMaster Caused by:
> java.lang.ClassNotFoundException: org.apache.htrace.SamplerBuilder
> This is because in hbase 2.0, we have 2 different version of
> htrace-core.x.x.x.incubating.jar
> 
> cd /usr/local/hbase/lib/client-facing-thirdparty/:
> htrace-core-3.1.0-incubating.jar htrace-core-4.2.0-incubating.jar
> 
> Currently, only version 3.1.0 has the required class SamplerBuilder.
> We need to remove version 4.2.0: mv htrace-core-4.2.0-incubating.jar
> htrace-core-4.2.0-incubating.jar.bak

so I remove file `htrace-core4-4.2.0-incubating.jar` and I left only `htrace-core-4.2.0-incubating.jar` on two servers but it didn't change anything. Any ideas how to solve this problem? 

    <configuration>
    
    <property>
      <name>hbase.unsafe.stream.capability.enforce</name>
      <value>false</value>
    </property>
    
    <property>
    <name>hbase.rootdir</name>
    <value>hdfs://localhost:9000/user/myuser/hbase</value>
    </property>
    
    <property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
    </property>
    
    <property>
    <name>hbase.zookeeper.quorum</name>
    <value>first_address,second_address</value>
    </property>
    
    <property> 
    <name>hbase.master</name> 
    <value>first_address:60010</value> 
    </property>
    
    <property>
    <name>hbase.zookeeper.property.clientPort</name>
    <value>2181</value>
    </property>
    
    <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>hdfs://localhost:9000/user/myuser/zookeeper</value>
    </property>
    </configuration>

**ERROR**

    2018-08-24 11:14:29,322 ERROR [main] regionserver.HRegionServer: Failed construction RegionServer
    java.lang.NoClassDefFoundError: org/apache/htrace/SamplerBuilder
    	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:635)
    	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:619)
    	at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)
    	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2669)
    	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:94)
    	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2703)
    	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2685)
    	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:373)
    	at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
    	at org.apache.hadoop.hbase.util.CommonFSUtils.getRootDir(CommonFSUtils.java:358)
    	at org.apache.hadoop.hbase.util.CommonFSUtils.isValidWALRootDir(CommonFSUtils.java:407)
    	at org.apache.hadoop.hbase.util.CommonFSUtils.getWALRootDir(CommonFSUtils.java:383)
    	at org.apache.hadoop.hbase.regionserver.HRegionServer.initializeFileSystem(HRegionServer.java:691)
    	at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:600)
    	at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:484)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    	at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:2965)
    	at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:236)
    	at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:140)
    	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
    	at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:149)
    	at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2983)
    Caused by: java.lang.ClassNotFoundException: org.apache.htrace.SamplerBuilder
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	... 25 more
    2018-08-24 11:14:29,326 ERROR [main] master.HMasterCommandLine: Master exiting
    java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster. 
    	at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:2972)
    	at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:236)
    	at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:140)
    	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
    	at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:149)
    	at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2983)
    Caused by: java.lang.NoClassDefFoundError: org/apache/htrace/SamplerBuilder
    	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:635)
    	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:619)
    	at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)
    	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2669)
    	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:94)
    	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2703)
    	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2685)
    	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:373)
    	at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
    	at org.apache.hadoop.hbase.util.CommonFSUtils.getRootDir(CommonFSUtils.java:358)
    	at org.apache.hadoop.hbase.util.CommonFSUtils.isValidWALRootDir(CommonFSUtils.java:407)
    	at org.apache.hadoop.hbase.util.CommonFSUtils.getWALRootDir(CommonFSUtils.java:383)
    	at org.apache.hadoop.hbase.regionserver.HRegionServer.initializeFileSystem(HRegionServer.java:691)
    	at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:600)
    	at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:484)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    	at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:2965)
    	... 5 more
    Caused by: java.lang.ClassNotFoundException: org.apache.htrace.SamplerBuilder
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	... 25 more

 

 

Announcements