java - Connection Refused Error Hadoop Mac -
i trying install hadoop. installed everything, xml document editing , stuff. i've installed java , i'm pretty sure i've done correctly. when give $hstart
command (i've configured alias starting hadoop) following error:
/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 /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 /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 /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 /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
now way see it, think need set path jvm installation.
it mentions that
/usr/lib/jvm/java-7-openjdk-amd64/bin/java: cannot execute: no such file or directory
which implies there problem java_home
. (check directory exists. if does, check java_home
variable.)
note: java_home
should not include /bin
directory, %java_home%/bin
should present on path.
Comments
Post a Comment