Likefr 2023-08-06 13:43 采纳率: 33.3%
浏览 29
已结题

windows 启动 hbase 遇到的问题 Failed construction RegionServer

windows 搭建hbase 遇到的问题 Failed construction RegionServer
java.lang.NoClassDefFoundError: org/apache/htrace/core/Tracer$Builder

hadoop 版本 3.3.5

hbase 版本 2.5.5
hbase 使用的是内置zookeeper

当我在cmd 运行 start-hbase.cmd

发生以下异常

img

2023-08-06 13:39:01,088 ERROR [main] regionserver.HRegionServer (HRegionServer.java:<init>(722)) - Failed construction RegionServer
java.lang.NoClassDefFoundError: org/apache/htrace/core/Tracer$Builder
        at org.apache.hadoop.fs.FsTracer.get(FsTracer.java:42)
        at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3256)
        at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:121)
        at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3310)
        at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3278)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:475)
        at org.apache.hadoop.hbase.fs.HFileSystem.<init>(HFileSystem.java:85)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.initializeFileSystem(HRegionServer.java:798)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:673)
        at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:462)
        at org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:322)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:124)
        at org.apache.hadoop.hbase.LocalHBaseCluster.addMaster(LocalHBaseCluster.java:222)
        at org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:169)
        at org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:112)
        at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:241)
        at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:147)

hadoop 正常运行

img

感觉可以排除不是hadoop的问题

以下是我hbase 部分配置

hbase-env.cmd

set JAVA_HOME=C:\PROGRA~1\Java\jdk-11
set HBASE_CLASSPATH=G:\hbase-2.5.5\conf
set HBASE_MANAGES_ZK=true

hbase-site.xml

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>



<configuration>

    <property>
        <name>hbase.rootdir</name>
        <value>hdfs://localhost:9000/hbase</value>
    </property>

    <property>
        <name>hbase.zookeeper.property.dataDir</name>
        <value>G:/hbase-2.5.5/zoo</value>
    </property>


    <property>
        <name>hbase.master.maxclockskew</name>
        <value>180000</value>
        <description>Time difference of regionserver from master</description>
    </property>


    <property>
        <name>hbase.unsafe.stream.capability.enforce</name>
        <value>false</value>
    </property>

    <property> <!-- 增加统计支持 -->
        <name>hbase.coprocessor.user.region.classes</name>
        <value>org.apache.hadoop.hbase.coprocessor.AggregateImplementation</value>
    </property>

</configuration>
  • 写回答

8条回答 默认 最新

  • 一位热心程序猿 2023-08-06 14:51
    关注

    把hadoop的hdfs-site.xml和core-site.xml 放到hbase/conf下

    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 8月6日
  • 赞助了问题酬金15元 8月6日
  • 修改了问题 8月6日
  • 创建了问题 8月6日

悬赏问题

  • ¥15 phython如何实现以下功能?查找同一用户名的消费金额合并—
  • ¥15 孟德尔随机化怎样画共定位分析图
  • ¥18 模拟电路问题解答有偿速度
  • ¥15 CST仿真别人的模型结果仿真结果S参数完全不对
  • ¥15 误删注册表文件致win10无法开启
  • ¥15 请问在阿里云服务器中怎么利用数据库制作网站
  • ¥60 ESP32怎么烧录自启动程序
  • ¥50 html2canvas超出滚动条不显示
  • ¥15 java业务性能问题求解(sql,业务设计相关)
  • ¥15 52810 尾椎c三个a 写蓝牙地址