bigtop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Marc Spaggiari <jean-m...@spaggiari.org>
Subject Start HBase build from BigTop
Date Wed, 20 Aug 2014 19:31:03 GMT
Hi,

I have no issues to build and start HBase from HBase code.

But when I try from BigTop, at stratup I get a class not found error:
[root@hbr101 ~]# /etc/init.d/hbase-master start
starting master, logging to /var/log/hbase/hbase-hbase-master-hbr101.out
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/hadoop/http/HttpServer
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
Failed to start HBase master daemon. Return value: 1       [FAILED]

If I export the Hadoop and HBase classpath, I'm able to pass this, but the
I face another ClassNotFound exception on the HBase side.

export HBASE_CLASSPATH=`hbase classpath`:`hadoop classpath`
[root@10-0-1-208 output]# /etc/init.d/hbase-master start
starting master, logging to /var/log/hbase/hbase-hbase-master-10-0-1-208.out
Started HBase master daemon (hbase-master):                [  OK  ]

2014-08-20 19:29:37,788 INFO  [main] impl.MetricsSystemImpl: HBase metrics
system started
2014-08-20 19:29:37,841 ERROR [main] master.HMasterCommandLine: Master
exiting
java.lang.RuntimeException: Failed construction of Master: class
org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMastercom.yammer.metrics.stats.Sample
    at
org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:140)
    at
org.apache.hadoop.hbase.LocalHBaseCluster.addMaster(LocalHBaseCluster.java:202)
    at
org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:152)
    at
org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:179)
    at
org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:135)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
    at
org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
    at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2794)
Caused by: java.lang.NoClassDefFoundError: com/yammer/metrics/stats/Sample
    at
org.apache.hadoop.metrics2.lib.DynamicMetricsRegistry.newHistogram(DynamicMetricsRegistry.java:271)
    at
org.apache.hadoop.hbase.ipc.MetricsHBaseServerSourceImpl.<init>(MetricsHBaseServerSourceImpl.java:65)
    at
org.apache.hadoop.hbase.ipc.MetricsHBaseServerSourceFactoryImpl.getSource(MetricsHBaseServerSourceFactoryImpl.java:48)
    at
org.apache.hadoop.hbase.ipc.MetricsHBaseServerSourceFactoryImpl.create(MetricsHBaseServerSourceFactoryImpl.java:38)
    at
org.apache.hadoop.hbase.ipc.MetricsHBaseServer.<init>(MetricsHBaseServer.java:30)
    at org.apache.hadoop.hbase.ipc.RpcServer.<init>(RpcServer.java:1878)
    at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:438)
    at
org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:258)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at
org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:137)
    ... 7 more


I'm wondering, has anyone try to build HBase 0.98.4+ with BigTop trunk and
has been able to start it? I checked and class is on the metric jar, and
the jar in there on the CP. so I'm wondering where this is coming from and
still investigating. If I found anything, I will open a JIRA and provide
the details...

Thanks,

JM

Mime
View raw message