我正在尝试安装Hadoop。我安装了几乎所有的东西,所有那些XML文档编辑和东西。我也安装了Java,我很确定我已经正确完成了。当我提供$hstart
命令时(我已经为其配置了启动hadoop的别名),我收到以下错误:
/usr/local/hadoop/bin/hdfs: line 309: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: No such file or directory
/usr/local/hadoop/bin/hdfs: line 309: exec: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: cannot execute: No such file or directory
Starting namenodes on []
localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-TejasBelvalkar-namenode-Tejass-iMac.local.out
localhost: /usr/local/hadoop/bin/hdfs: line 309: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: No such file or directory
localhost: /usr/local/hadoop/bin/hdfs: line 309: exec: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: cannot execute: No such file or directory
localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-TejasBelvalkar-datanode-Tejass-iMac.local.out
localhost: /usr/local/hadoop/bin/hdfs: line 309: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: No such file or directory
localhost: /usr/local/hadoop/bin/hdfs: line 309: exec: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: cannot execute: No such file or directory
/usr/local/hadoop/bin/hdfs: line 309: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: No such file or directory
/usr/local/hadoop/bin/hdfs: line 309: exec: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: cannot execute: No such file or directory
starting yarn daemons
starting resourcemanager, logging to /usr/local/hadoop/logs/yarn-TejasBelvalkar-resourcemanager-Tejass-iMac.local.out
/usr/local/hadoop/bin/yarn: line 335: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: No such file or directory
/usr/local/hadoop/bin/yarn: line 335: exec: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: cannot execute: No such file or directory
localhost: starting nodemanager, logging to /usr/local/hadoop/logs/yarn-TejasBelvalkar-nodemanager-Tejass-iMac.local.out
localhost: /usr/local/hadoop/bin/yarn: line 335: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: No such file or directory
localhost: /usr/local/hadoop/bin/yarn: line 335: exec: /usr/lib/jvm/java-7-openjdk-amd64/bin/java: cannot execute: No such file or directory
现在我看到它的方式,我想我需要设置我的jvm安装的路径。
答案 0 :(得分:0)
要在本地运行Hadoop,您必须能够SSH本地主机
例如:$ ssh localhost
如果拒绝连接,请通过
Preference > Sharing > Remote login (enable this option)
启用此远程登录后尝试