hadoop - 区域服务器死亡的原因

标签 hadoop hive hbase heap-memory apache-zookeeper

我有一个在亚马逊 Ec2 上运行的 3 节点 hbase 集群。哪个工作得很好。现在,我尝试使用两个单独的插入查询将数据从 EMR 插入到 EC2。所以首先插入查询工作得很好并插入数据,然后我所有的区域服务器都死了。那么,您能否建议我调试此问题的一般准则以及为什么区域服务器通常会死机? 此外,即使我在一段时间后再次明确地启动区域服务器,它们也会死掉。

更新问题:

早些时候我认为这可能是一个问题,因为 HBASE_HEAPSIZE 默认设置为 1GB。但我也将其增加到 5.5 Gb,但区域服务器仍处于死机状态。 以下是我在每个区域服务器死后获得的日志。

2013-10-07 18:16:27,949 WARN org.apache.zookeeper.ClientCnxn: Session 0x141916dfbe50000 for server null, unexpected error, closing socket connection and attempting rec$
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:597)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035)
2013-10-07 18:16:27,990 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/10.179.42.93:50020. Already tried 1 time(s).
2013-10-07 18:16:28,049 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server master/10.179.42.93:2181
2013-10-07 18:16:28,049 INFO org.apache.zookeeper.client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client'$
2013-10-07 18:16:28,049 WARN org.apache.zookeeper.ClientCnxn: Session 0x141916dfbe50001 for server null, unexpected error, closing socket connection and attempting rec$
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:597)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035)
2013-10-07 18:16:28,177 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave/10.178.5.52:2181
2013-10-07 18:16:28,177 INFO org.apache.zookeeper.client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client'$
2013-10-07 18:16:28,178 WARN org.apache.zookeeper.ClientCnxn: Session 0x141916dfbe50001 for server null, unexpected error, closing socket connection and attempting rec$
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:597)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035)

最佳答案

您可以检查 RegionServer 的日志。以下是有关日志位置的更多信息。

如果你每次都必须明确地打开区域服务器,那么它就是有问题的情况。

最好的方法是使用 HBASE 启动一个新的 EMR 实例。

关于hadoop - 区域服务器死亡的原因,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19486989/

相关文章:

hadoop - 通过 pig 脚本传递参数时出错

hive 不会更改 Parquet 架构

string - 使用 Hortonworks hadoop hive 聚合字符串

scala - 使用 spark 从 hbase 读取特定列数据

java - 为什么会收到此异常java.lang.NoClassDefFoundError?

hadoop - 解压时如何读取压缩文件?

hadoop - sqoop-导出分区的Hive表

hadoop - Hadoop排序示例失败,出现 'not a SequenceFile'。如何设置SequenceFile

apache-spark - 在 Zeppelin 0.71 上运行的 Dataproc Spark 看不到在 Zeppelin 0.62 中创建的 Hive 表

scala - 如何使用spark连接Hbase