- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我已经启动了 hbase,所有守护进程都在运行。
$ jps
8482 HQuorumPeer
25105 RemoteMavenServer
9133 SecondaryNameNode
11883 HRegionServer
13793 Jps
8545 NameNode
8572 HMaster
11519 Main
25029 Main
8851 DataNode
9435 RunJar
现在让我们尝试列出表格:
hbase(main):004:0* list
TABLE
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:
主日志的尾部:
2013-05-17 22:48:35,609 INFO org.apache.hadoop.hbase.master.ServerManager: Registering server=localhost,60020,1368856115352
Zookeeper 日志尾部:
$ tail *zoo*.log
2013-05-18 00:14:27,651 INFO org.apache.zookeeper.server.NIOServerCnxnFactory: Accepted socket connection from /127.0.0.1:49826
2013-05-18 00:14:27,652 INFO org.apache.zookeeper.server.ZooKeeperServer: Client attempting to establish new session at /127.0.0.1:49826
2013-05-18 00:14:27,666 INFO org.apache.zookeeper.server.ZooKeeperServer: Established session 0x13eb59ceb22001e with negotiated timeout 180000 for client /127.0.0.1:49826
区域服务器日志尾部:
2013-05-18 00:08:35,416 DEBUG org.apache.hadoop.hbase.io.hfile.LruBlockCache: LRU Stats: total=2.03 MB, free=244.85 MB, max=246.88 MB, blocks=0, accesses=0, hits=0, hitRatio=0cachingAccesses=0, cachingHits=0, cachingHitsRatio=0evictions=0, evicted=0, evictedPerRun=NaN
2013-05-18 00:13:35,416 DEBUG org.apache.hadoop.hbase.io.hfile.LruBlockCache: LRU Stats: total=2.03 MB, free=244.85 MB, max=246.88 MB, blocks=0, accesses=0, hits=0, hitRatio=0cachingAccesses=0, cachingHits=0, cachingHitsRatio=0evictions=0, evicted=0, evictedPerRun=NaN
2013-05-18 00:18:35,416 DEBUG org.apache.hadoop.hbase.io.hfile.LruBlockCache: LRU Stats: total=2.03 MB, free=244.85 MB, max=246.88 MB, blocks=0, accesses=0, hits=0, hitRatio=0cachingAccesses=0, cachingHits=0, cachingHitsRatio=0evictions=0, evicted=0, evictedPerRun=NaN
更多详细信息(回应下面的@roman)。安全模式已经关闭。
fsck 给出:
hadoop fsck /
.Status: HEALTHY
Total size: 321466989 B
Total dirs: 412
Total files: 446
Total blocks (validated): 355 (avg. block size 905540 B)
Minimally replicated blocks: 355 (100.0 %)
Over-replicated blocks: 0 (0.0 %)
Under-replicated blocks: 334 (94.08451 %)
Mis-replicated blocks: 0 (0.0 %)
Default replication factor: 3
Average block replication: 1.0
Corrupt blocks: 0
Missing replicas: 1109 (312.39438 %)
Number of data-nodes: 1
Number of racks: 1
FSCK ended at Sun May 19 13:09:14 PDT 2013 in 147 milliseconds
但是,正如您怀疑的那样,hbase gui 未在 60030 上运行。我没有在 hbase 日志中看到错误来解释原因。
更多信息@roman:hbase hbck 刚刚因 MasterNotRunningException 超时
stephenb@gondolin:/shared$ hbase hbck
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.4.3-1240972, built on 02/06/2012 10:48 GMT
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:host.name=gondolin
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:java.version=1.6.0_37
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Sun Microsystems Inc.
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:java.home=/shared/jdk1.6.0_37/jre
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:java.library.path=/shared/hadoop-1.0.3/libexec/../lib/native/Linux-amd64-64:/shared/hbase/lib/native/Linux-amd64-64
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:os.arch=amd64
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:os.version=3.2.0-39-generic
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:user.name=stephenb
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:user.home=/home/stephenb
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Client environment:user.dir=/shared
13/05/19 13:16:16 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
13/05/19 13:16:16 INFO zookeeper.ClientCnxn: Opening socket connection to server /127.0.0.1:2181
13/05/19 13:16:16 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 24642@gondolin
13/05/19 13:16:16 WARN client.ZooKeeperSaslClient: SecurityException: java.lang.SecurityException: Unable to locate a login configuration occurred when trying to find JAAS configuration.
13/05/19 13:16:16 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration.
13/05/19 13:16:16 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session
13/05/19 13:16:16 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x13eb59ceb22002f, negotiated timeout = 180000
13/05/19 13:17:27 INFO client.HConnectionManager$HConnectionImplementation: Closed zookeeper sessionid=0x13eb59ceb22002f
13/05/19 13:17:27 INFO zookeeper.ZooKeeper: Session: 0x13eb59ceb22002f closed
13/05/19 13:17:27 INFO zookeeper.ClientCnxn: EventThread shut down
13/05/19 13:17:27 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
13/05/19 13:17:27 INFO zookeeper.ClientCnxn: Opening socket connection to server /127.0.0.1:2181
13/05/19 13:17:27 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 24642@gondolin
13/05/19 13:17:27 WARN client.ZooKeeperSaslClient: SecurityException: java.lang.SecurityException: Unable to locate a login configuration occurred when trying to find JAAS configuration.
13/05/19 13:17:27 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration.
13/05/19 13:17:27 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session
13/05/19 13:17:27 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x13eb59ceb220030, negotiated timeout = 180000
13/05/19 13:18:39 INFO client.HConnectionManager$HConnectionImplementation: Closed zookeeper sessionid=0x13eb59ceb220030
13/05/19 13:18:39 INFO zookeeper.ZooKeeper: Session: 0x13eb59ceb220030 closed
13/05/19 13:18:39 INFO zookeeper.ClientCnxn: EventThread shut down
13/05/19 13:18:39 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
13/05/19 13:18:39 INFO zookeeper.ClientCnxn: Opening socket connection to server /127.0.0.1:2181
13/05/19 13:18:39 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 24642@gondolin
13/05/19 13:18:39 WARN client.ZooKeeperSaslClient: SecurityException: java.lang.SecurityException: Unable to locate a login configuration occurred when trying to find JAAS configuration.
13/05/19 13:18:39 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration.
13/05/19 13:18:39 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session
13/05/19 13:18:39 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x13eb59ceb220031, negotiated timeout = 180000
13/05/19 13:18:51 DEBUG client.HConnectionManager$HConnectionImplementation: The connection to null was closed by the finalize method.
13/05/19 13:18:51 DEBUG client.HConnectionManager$HConnectionImplementation:
13/05/19 13:29:18 INFO client.HConnectionManager$HConnectionImplementation: Closed zookeeper sessionid=0x13eb59ceb220039
13/05/19 13:29:18 INFO zookeeper.ZooKeeper: Session: 0x13eb59ceb220039 closed
13/05/19 13:29:18 INFO zookeeper.ClientCnxn: EventThread shut down
Exception in thread "main" org.apache.hadoop.hbase.MasterNotRunningException: Retried 10 times
at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:130)
at org.apache.hadoop.hbase.util.HBaseFsck.connect(HBaseFsck.java:264)
at org.apache.hadoop.hbase.util.HBaseFsck.exec(HBaseFsck.java:3331)
at org.apache.hadoop.hbase.util.HBaseFsck.main(HBaseFsck.java:3192)
最佳答案
而且 HBase Web UI 没有运行,是吗?在单节点伪分布式集群完全崩溃后,我遇到了类似的事情。 HDFS 无法退出安全模式。
hadoop dfsadmin -safemode get
检查 HDFS 是否处于安全模式。hadoop dfsadmin -safemode leave
。hadoop fsck/-move
。hbase hbck
检查。您可能需要的其他提示:
netstat -n -a
检查区域服务器绑定(bind)的位置(检查端口在你的配置中)。碰巧绑定(bind)错了界面。也请搜索论坛 - Hadoop 有问题绑定(bind)和 IPv6 ( check this for example )。hadoop dfsadmin 检查 hadoop 是否真的退出了安全模式
-安全模式获取
。 HBase 在完成之前不会完全启动。关于java - Hbase MasterNotRunningException 尽管 Hmaster、regionserver 和 Zookeeper 已启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16621785/
我看过很多类似的问题并尝试解决但尚未成功。我有一个 hadoop 2.6.0 集群(一个名称节点位于 x.x.x.55,3 个数据节点位于 x.x.x.54、56、57)。然后我在集群上安装了 hba
在 hadoop 2.2.0 的 hbase-0.96.0 中启动 ./start-hbase.sh 后,Hmaster 中止。 尝试使用 hbase-0.94.16 和 hbase-0.98 但结果
我正在尝试以完全分布式模式设置 HBase:由 1 个主服务器和 2 个区域服务器组成。我在 hbase-env.sh 中设置了 HBASE_MANAGES_ZK = true。 hadoop集群在集
我在 HBase 中遇到了一些问题。当我尝试启动 hadoop 时,它启动时没有任何问题。但 HBase 不工作。DataNode、HRegionServer、secondaryNameNode 等都
我无法在分布式模式下设置 hbase。当我在一台机器上设置它时它工作正常(独立模式)。我的 Zookeeper、hmaster 和区域服务器正常启动。 但是当我去 hbase shell 并寻找状态时
我在两个 ubuntu 虚拟机上安装了一个 hadoop 多节点集群。 在下一步中,我尝试在此虚拟集群上安装 HBase。但是当我使用 start-hbase.sh 运行 HBase 时, HMast
我遇到了严重的 Hbase 崩溃问题。我将 HBase 0.94.7 与一个主服务器和两个区域服务器一起使用。 HBase master 经常崩溃,我什至无法重新启动它。我有如下主日志: DEBUG
我正在使用 HBase。我已经安装并运行了分布式环境。但是在HMaster的接口(interface)页面中显示了警告: “您当前正在运行 HMaster,但未启用 HDFS 追加支持。这可能会导致数
我已经启动了 hbase,所有守护进程都在运行。 $ jps 8482 HQuorumPeer 25105 RemoteMavenServer 9133 SecondaryNameNode 1188
我安装了 hadoop 2.7.1 并且运行成功。我尝试通过引用此链接安装 hbase 1.1.2: https://archanaschangale.wordpress.com/2013/08/31
我正在尝试在我的本地 MAC 机器上设置 hbase。我通过 brew 安装了 hadoop 和 hbase。 hadoop 和 hbase 的版本分别是 2.7.1 和 1.1.2。我正在尝试以伪分
Hbase zookeeper 启动,regionserver 在多节点集群上启动,但 hmaster 未启动并生成以下日志文件。 hbase-site.xml 快照
当我启动-hbase.sh HMaster 和 HregionServer 正在启动,但一段时间后不可见。 通过查看日志,我发现了这一点。 HMaster: java.lang.RuntimeExce
我关注了这个:http://hbase.apache.org/cygwin.html .每一步都ok直到HBase启动。这可能是 Windows 和 Cygwin 之间的路径问题,但我迷路了.....
我是一名优秀的程序员,十分优秀!