相关疑难解决方法(0)

hbase连接被拒绝了

我是HBaseHadoop的新手.我已经完全设置了HBase并且开始完美.现在,当我尝试使用Java客户端从p1连接到HBase(其中HBase设置在p2上)时,它会抛出一个奇怪的异常.

12/04/17 14:36:37 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=192.168.15.20:2181 sessionTimeout=180000 watcher=hconnection
12/04/17 14:36:38 INFO zookeeper.ClientCnxn: Opening socket connection to server /192.168.15.20:2181
12/04/17 14:36:38 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
12/04/17 14:36:39 INFO zookeeper.ClientCnxn: Opening socket connection to server hbase.local/192.168.15.20:2181
12/04/17 14:36:39 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection …
Run Code Online (Sandbox Code Playgroud)

java linux hadoop hbase java-ee

14
推荐指数
2
解决办法
3万
查看次数

让Master没有运行异常

我一直在努力让Hbase在我的机器上工作.我相信我的设置有问题,我无法修复它.我让主人没有运行错误,但Jsp清楚地表明它正在运行.启动Hadoop和Hbase之后.我做了JPS

yeshwanthvenkatesh@mymachineip /usr/local/Cellar/hbase/0.94.4/bin (master)$ jps
1609 Main
715 DataNode
985 TaskTracker
614 NameNode
886 JobTracker
1463 HRegionServer
1263 HQuorumPeer
814 SecondaryNameNode
1695
1349 HMaster
1842 Jps
Run Code Online (Sandbox Code Playgroud)

当我尝试在Hbase shell中调用命令时,我收到以下错误.

hbase(main):001:0> list
TABLE
2013-04-25 16:20:28.933 java[1609:1703] Unable to load realm info from SCDynamicStore

ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times

Here is some help for this command:
List all tables in hbase. Optional regular expression parameter could
be used to filter the output. Examples:

  hbase> list
  hbase> list 'abc.*'

hbase(main):002:0> scan 'ResultStore'
ROW                                                  COLUMN+CELL …
Run Code Online (Sandbox Code Playgroud)

hadoop hbase

6
推荐指数
1
解决办法
9641
查看次数

标签 统计

hadoop ×2

hbase ×2

java ×1

java-ee ×1

linux ×1