手动C语言
解决了Hmaster的问题进入shell指令
create建表
又出现错误
org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet
万能的度娘:
hdfs dfsadmin -safemode get
//如果返回Safe mode is OFF 就说明没问题
//如果返回Safe mode is ON 就说明集群正处于安全模式(强制退出即可)
hdfs dfsadmin -safemode leave
解决之后list一下
org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2452)
at org.apache.hadoop.hbase.master.MasterRpcServices.getTableNames(MasterRpcServices.java:915)
at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:58517)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2339)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:123)
at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:188)
at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:168)
啧,C语言,优美的中国话
看日志中
Unable to read additional data from client, it probably closed the socket: address = /地址, session = 0x10000035d010002
从百度上查了一个方法
更改连接时间
然后到zookeeper的conf里面更改了一下zoo.cfg文件的时间变到了4000
又出了新的报错
Can't get master address from ZooKeeper; znode data == null
唉
断电了
明天整,有没有友友能帮帮我
救命
——————————————————————————————————————————————
补充:最后那个问题可能是因为zookeeper的缓存问题
进入zookeeper目录下zkdata那个目录
rm -rf zookeeper_server.pid
重新启动zookeeper
一切步骤照旧,能行了
感动.jpg