专栏首页闵开慧Hmaster无法启动

Hmaster无法启动

启动hbase时问题列表:

1 查看hbase-hadoop-master-ubuntu118.log,发现其中的错误为

2012-09-02 22:59:58,099 INFO org.apache.hadoop.hbase.ipc.HBaseRpcMetrics: Initializing RPC Metrics with hostName=HMaster, port=60000

2012-09-02 22:59:58,217 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start master

java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster

at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1065)

at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:142)

at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:102)

at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)

at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)

at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1079)

Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.Configuration

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.<init>(DefaultMetricsSystem.java:37)

at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.<clinit>(DefaultMetricsSystem.java:34)

at org.apache.hadoop.security.UgiInstrumentation.create(UgiInstrumentation.java:51)

at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:219)

at org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:187)

at org.apache.hadoop.security.UserGroupInformation.isSecurityEnabled(UserGroupInformation.java:239)

at org.apache.hadoop.security.KerberosName.<clinit>(KerberosName.java:83)

at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:212)

at org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:187)

at org.apache.hadoop.security.UserGroupInformation.isSecurityEnabled(UserGroupInformation.java:239)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.hadoop.hbase.util.Methods.call(Methods.java:37)

at org.apache.hadoop.hbase.security.User.call(User.java:457)

at org.apache.hadoop.hbase.security.User.callStatic(User.java:447)

at org.apache.hadoop.hbase.security.User.access$200(User.java:49)

at org.apache.hadoop.hbase.security.User$SecureHadoopUser.isSecurityEnabled(User.java:435)

at org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:406)

at org.apache.hadoop.hbase.security.User.login(User.java:146)

at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:202)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1060)

... 5 more

2 终端启动hbase时显示如下错误:

192.168.0.186: Exception in thread "main" java.lang.RuntimeException: Failed construction of Regionserver: class org.apache.hadoop.hbase.regionserver.HRegionServer

192.168.0.186:  at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2775)

192.168.0.186:  at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:60)

192.168.0.186:  at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:75)

192.168.0.186:  at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)

192.168.0.186:  at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)

192.168.0.186:  at org.apache.hadoop.hbase.regionserver.HRegionServer.main(HRegionServer.java:2799)

192.168.0.186: Caused by: java.lang.reflect.InvocationTargetException

192.168.0.186:  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

192.168.0.186:  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

192.168.0.182: Exception in thread "main" java.lang.RuntimeException: Failed construction of Regionserver: class org.apache.hadoop.hbase.regionserver.HRegionServer

192.168.0.182:  at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2775)

192.168.0.182:  at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:60)

192.168.0.182:  at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:75)

192.168.0.182:  at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)

192.168.0.182:  at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)

192.168.0.182:  at org.apache.hadoop.hbase.regionserver.HRegionServer.main(HRegionServer.java:2799)

192.168.0.182: Caused by: java.lang.reflect.InvocationTargetException

192.168.0.182:  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

192.168.0.182:  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

3 在终端输入jps后发现没有启动Hmaster进程。

以上三个问题其实问题就只有一个,就是要将hadoop中lib下的hadoop-core-1.0.2.jar和commons-configuration-1.6.jar包移动到hbase-0.90.5中的lib下面,具体操作如下:

   hadoop@ubuntu186:~/hadoop-1.0.2$ cp hadoop-core-1.0.2.jar /home/hadoop/hbase-0.90.5/lib/  
   hadoop@ubuntu186:~/hadoop-1.0.2/lib$ cp commons-configuration-1.6.jar /home/hadoop/hbase-0.90.5/lib/   

(以上操作在每个机器上都要执行)

同时需要注意:在每个机器上调整时间使相互之间时间一致,具体操作如下:

   cp /usr/share/zoneinfo/Asia/Chongqing /etc/localtime  
   hwclock -w  
   date  

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • Windows中Eclipse中Hadoop2.6.0配置

    Windows10(64位)中Eclipse Luna Service Release 2 (4.4.2 64位)中Hadoop2.6.0配置 1 系统配置  ...

    闵开慧
  • 运行wordcount时显示Could not obtain block

    该文章接上面hadoop运行wordcount时卡住不动,接着下面 hadoop@ubuntu118:~/hadoop-1.0.2$ bi...

    闵开慧
  • ERROR: org.apache.hadoop.hbase.MasterNotRunnin...

     ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times 这是为什么...

    闵开慧
  • Sqoop导入数据时异常java.net.ConnectException: Connection refused

    java.net.ConnectException: Call From node4/192.168.179.143 to node4:8032 failed ...

    时间静止不是简史
  • hadoop2.6分布式部署时 livenodes等于1的原因

    1.问题描述 在进行hadoop2.x版本的hdfs分布式部署时,遇到了一个奇怪的问题: 使用start-dfs.sh命令启动dfs之后,所有的datanode...

    老白
  • Amabri hive权限设置

    DataScience
  • 0524-6.1-如何使用Cloudera Manager启用HDFS的HA

    在HDFS集群中NameNode存在单点故障(SPOF),对于只有一个NameNode的集群,如果NameNode机器出现意外,将导致整个集群无法使用。为了解决...

    Fayson
  • java客户端无法上传文件到hdfs

    学些hadoop。遇到这个问题,查找网上好多资料,一般都是说namenode和datanode不同步导致的,或者防火墙没开50010端口,或者nameNode和...

    frontoldman
  • HBase案例 | 20000个分区导致HBase集群宕机事故处理

    这是几个月前遇到的一次HBase集群宕机事件,今天重新整理下事故分析报告。概况的说是业务方的一个10节点HBase集群支撑百TB级别的数据量,集群region数...

    大数据技术架构
  • 用java程序把本地的一个文件拷贝到hdfs上并显示进度

    把程序打成jar包放到Linux上 转到目录下执行命令 hadoop jar mapreducer.jar /home/c...

    用户5166556

扫码关注云+社区

领取腾讯云代金券