close
使用 hive over hbase ,或者單純使用hbase時,

"WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files.
Logging initialized using configuration in jar:file:/usr/lib/hive/lib/hive-common-0.10.0.24.jar!/hive-log4j.properties
Hive history file=/tmp/webtest/hive_job_log_webtest_201306120215_407815782.txt
Total MapReduce jobs = 3
Launching Job 1 out of 3
Number of reduce tasks is set to 0 since there's no reduce operator "

可能會一直停著不動不啟動 MapReduce的Job
從 log 來看 可能是hbase 使用 zookeeper 的 設定問題

013-06-12 02:02:23,280 WARN zookeeper.ClientCnxn (ClientCnxn.java:run(1089)) - 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.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
2013-06-12 02:02:24,382 WARN zookeeper.ClientCnxn (ClientCnxn.java:run(1089)) - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect

只要簡單的在該用戶設上對應的zookeeper host

$ cat ~/.hiverc
set hbase.zookeeper.quorum=renode1,renode2,remaster;

13.5. Client
http://hbase.apache.org/book/trouble.client.html
13.4. Tools
http://hbase.apache.org/book/trouble.tools.html#trouble.tools.builtin.zkcli

其他問題可以使用 zkcli 去測試 zookeeper 是否正常

cf.
命令行运行Hbase: Session 0x0 for server null, unexpected error - fansy1990的专栏 - 博客频道 - CSDN.NET
http://blog.csdn.net/fansy1990/article/details/8032655



arrow
arrow
    文章標籤
    hive hbase
    全站熱搜

    peicheng 發表在 痞客邦 留言(0) 人氣()