zoukankan      html  css  js  c++  java
  • hbase 启动 Error: Could not find or load main class org.apache.hadoop.hbase.util.HBaseConfTool

     安装好hadoop,然后安装hbase启动时出现问题,下面是报错信息:

    ./hbase/bin/start-hbase.sh
    Error: Could not find or load main class org.apache.hadoop.hbase.util.HBaseConfTool
    Error: Could not find or load main class org.apache.hadoop.hbase.zookeeper.ZKServerTool
    starting master, logging to /usr/local/hbase/logs/hbase-root-master-localhost.out
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
    Error: Could not find or load main class org.apache.hadoop.hbase.master.HMaster
    starting regionserver, logging to /usr/local/hbase/logs/hbase-root-1-regionserver-localhost.out
    Error: Could not find or load main class org.apache.hadoop.hbase.regionserver.HRegionServer

    分析:启动时找不到类文件,搜了好多有的说是classpath环境变量问题,最后终于找到了问题所在,由于下的是src文件 即未编译的文件,不能直接用,必须先编译,重新下载bin文件 即二进制文件。

    然后把需要的配置配好重新启动

    start-hbase.sh 
    running master, logging to /usr/local/hadoop-2.6.5/hbase-1.4.9/logs/hbase--master-masternode.out
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
    slave1: running regionserver, logging to /usr/local/hadoop-2.6.5/hbase-1.4.9/logs/hbase-root-regionserver-slave1.out
    slave2: running regionserver, logging to /usr/local/hadoop-2.6.5/hbase-1.4.9/logs/hbase-root-regionserver-slave2.out

    总结:这么简单的问题也不会有人出现了,所以最后都没搜到有效的问题解决方法,记录一下引以为戒。

  • 相关阅读:
    Redis(二) 扩展
    Redis(一)基础
    Java垃圾回收机制 入门
    freeregex-0.01 使用文档
    上传文件到阿里云linux服务器
    jQuery代码解释(基本语法)
    JQuery中使用FormData异步提交数据和提交文件
    jQuery获取data-*属性值
    jquery 中 $.map 的使用方法
    mysql创建表时反引号的作用
  • 原文地址:https://www.cnblogs.com/yangchas/p/10478093.html
Copyright © 2011-2022 走看看