dfsbroker在hadoop上配置超级表时无法启动错误

vs91vp4v  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(498)

我只是试着在hadoop上安装hypertable遵循官方文档首先我在centos 6.5-32位节点上以persudo分发模式部署cdh4
然后按照hypertable office文档在hadoop上安装hypertable
当我跑的时候

cap start -f Capfile.cluster

get-dfsbroker未出现错误


* executing `start'

**transaction: start

  * executing `start_servers'
  * executing `start_hyperspace'
  * executing "/opt/hypertable/current/bin/start-hyperspace.sh --config=/opt/hypertable/0.9.7.16/conf/dev-hypertable.cfg"
    servers: ["master"]
    [master] executing command

**[out :: master] Started Hyperspace

    command finished in 6543ms
  * executing `start_master'
  * executing "/opt/hypertable/current/bin/start-dfsbroker.sh hadoop --config=/opt/hypertable/0.9.7.16/conf/dev-hypertable.cfg &&\\\n /opt/hypertable/current/bin/start-master.sh --config=/opt/hypertable/0.9.7.16/conf/dev-hypertable.cfg &&\\\n /opt/hypertable/current/bin/start-monitoring.sh"
    servers: ["master"]
    [master] executing command

**[out :: master] DFS broker: available file descriptors: 65536
**[out :: master] Waiting for DFS Broker (hadoop) (localhost:38030) to come up...
**[out :: master] Waiting for DFS Broker (hadoop) (localhost:38030) to come up...
**[out :: master] Waiting for DFS Broker (hadoop) (localhost:38030) to come up...
**[out :: master] Waiting for DFS Broker (hadoop) (localhost:38030) to come up...
**[out :: master] Waiting for DFS Broker (hadoop) (localhost:38030) to come up...
**[out :: master] Waiting for DFS Broker (hadoop) (localhost:38030) to come up...
**[out :: master] Waiting for DFS Broker (hadoop) (localhost:38030) to come up...
**[out :: master] Waiting for DFS Broker (hadoop) (localhost:38030) to come up...
**[out :: master] ERROR: DFS Broker (hadoop) did not come up

    command finished in 129114ms
failed: "sh -c '/opt/hypertable/current/bin/start-dfsbroker.sh hadoop --config=/opt/hypertable/0.9.7.16/conf/dev-hypertable.cfg &&\\\n /opt/hypertable/current/bin/start-master.sh --config=/opt/hypertable/0.9.7.16/conf/dev-hypertable.cfg &&\\\n /opt/hypertable/current/bin/start-monitoring.sh'" on master

我检查了dfsbroker.hadoop.log-in/opt/hypertable/0.9.7.16得到这个

/opt/hypertable/current/bin/jrun: line 113: exec: java: not found

但是我已经设置了javau home,我测试java是否正常运行

java --version

我尝试单独运行jrun,但没有提示exec:java:notfound
我在google之后也看到过类似的问题
但我已经用了所有我能找到的方法

/opt/hypertable/current/bin/set-hadoop-distro.sh cdh4

快去

Hypertable successfully configured for Hadoop cdh4

如果有人能给我一个关于这个问题的提示,我将不胜感激

w8ntj3qf

w8ntj3qf1#

启动群集之前,必须运行:

cap fhsize -f Capfile.cluster

然后可以检查所有目录是否已正确设置:

ls -laF /opt/hypertable/current/lib/java/*.jar

而且java版本也应该可以工作

/opt/hypertable/current/bin/jrun -version

更多信息请参见快速入门。

相关问题