hadoop start-all.sh碰到的问题

我用的是centOS 学习hadoop,使用start-all.sh报如下错误:

This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
17/08/27 04:25:26 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [Java HotSpot(TM) Client VM warning: You have loaded library /home/hadoop/apps/hadoop-2.6.4/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
mini01]
sed:-e 表达式 #1,字符 6:“s”的未知选项
You: ssh: Could not resolve hostname You: No address associated with hostname
-c: Unknown cipher type 'cd'
you: ssh: Could not resolve hostname you: No address associated with hostname
now.: ssh: Could not resolve hostname now.: No address associated with hostname
warning:: ssh: Could not resolve hostname warning:: Name or service not known
HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known
'-z: ssh: Could not resolve hostname '-z: Name or service not known
noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known
Java: ssh: Could not resolve hostname Java: No address associated with hostname
'execstack: ssh: Could not resolve hostname 'execstack: Name or service not known
to: ssh: Could not resolve hostname to: No address associated with hostname
It's: ssh: Could not resolve hostname It's: Name or service not known
',: ssh: Could not resolve hostname ',: Name or service not known
link: ssh: Could not resolve hostname link: No address associated with hostname
mini01: namenode running as process 8505. Stop it first.
might: ssh: connect to host might port 22: Connection refused
or: ssh: connect to host or port 22: Connection refused
that: ssh: connect to host that port 22: Connection refused
it: ssh: Could not resolve hostname it: No address associated with hostname
with: ssh: connect to host with port 22: Connection refused
have: ssh: connect to host have port 22: Connection refused
VM: ssh: connect to host VM port 22: Connection refused
Client: ssh: connect to host Client port 22: Connection refused
try: ssh: connect to host try port 22: Connection refused
stack: ssh: connect to host stack port 22: Connection refused
have: ssh: connect to host have port 22: Connection refused
recommended: ssh: connect to host recommended port 22: Connection refused
the: ssh: connect to host the port 22: Connection refused
disabled: ssh: connect to host disabled port 22: Connection refused
library: ssh: connect to host library port 22: Connection refused
highly: ssh: connect to host highly port 22: Connection refused
fix: ssh: connect to host fix port 22: Connection refused
The: ssh: connect to host The port 22: Connection refused
stack: ssh: connect to host stack port 22: Connection refused
with: ssh: connect to host with port 22: Connection refused
VM: ssh: connect to host VM port 22: Connection refused
which: ssh: connect to host which port 22: Connection refused
the: ssh: connect to host the port 22: Connection refused
loaded: ssh: connect to host loaded port 22: Connection refused
guard: ssh: connect to host guard port 22: Connection refused
fix: ssh: connect to host fix port 22: Connection refused
guard.: ssh: connect to host guard. port 22: Connection refused
library: ssh: connect to host library port 22: Connection refused
will: ssh: connect to host will port 22: Connection refused
mini03: datanode running as process 2906. Stop it first.
mini02: datanode running as process 3072. Stop it first.
Starting secondary namenodes [Java HotSpot(TM) Client VM warning: You have loaded library /home/hadoop/apps/hadoop-2.6.4/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
0.0.0.0]
sed:-e 表达式 #1,字符 6:“s”的未知选项
-c: Unknown cipher type 'cd'
It's: ssh: Could not resolve hostname It's: Name or service not known
noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known
now.: ssh: Could not resolve hostname now.: No address associated with hostname
You: ssh: Could not resolve hostname You: No address associated with hostname
The authenticity of host '0.0.0.0 (0.0.0.0)' can't be established.
RSA key fingerprint is 35:c7:46:8e:7b:89:19:24:ae:10:c0:30:76:8c:1c:d2.
Are you sure you want to continue connecting (yes/no)? you: ssh: Could not resolve hostname you: No address associated with hostname
',: ssh: Could not resolve hostname ',: Name or service not known
it: ssh: Could not resolve hostname it: No address associated with hostname
warning:: ssh: Could not resolve hostname warning:: Name or service not known
HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known
Java: ssh: Could not resolve hostname Java: No address associated with hostname
to: ssh: Could not resolve hostname to: No address associated with hostname
link: ssh: Could not resolve hostname link: No address associated with hostname
'execstack: ssh: Could not resolve hostname 'execstack: Name or service not known
with: ssh: connect to host with port 22: Connection refused
highly: ssh: connect to host highly port 22: Connection refused
'-z: ssh: Could not resolve hostname '-z: Name or service not known
VM: ssh: connect to host VM port 22: Connection refused
have: ssh: connect to host have port 22: Connection refused
fix: ssh: connect to host fix port 22: Connection refused
with: ssh: connect to host with port 22: Connection refused
might: ssh: connect to host might port 22: Connection refused
VM: ssh: connect to host VM port 22: Connection refused
fix: ssh: connect to host fix port 22: Connection refused
will: ssh: connect to host will port 22: Connection refused
the: ssh: connect to host the port 22: Connection refused
that: ssh: connect to host that port 22: Connection refused
the: ssh: connect to host the port 22: Connection refused
Client: ssh: connect to host Client port 22: Connection refused
The: ssh: connect to host The port 22: Connection refused
stack: ssh: connect to host stack port 22: Connection refused
have: ssh: connect to host have port 22: Connection refused
recommended: ssh: connect to host recommended port 22: Connection refused
guard.: ssh: connect to host guard. port 22: Connection refused
loaded: ssh: connect to host loaded port 22: Connection refused
library: ssh: connect to host library port 22: Connection refused
guard: ssh: connect to host guard port 22: Connection refused
library: ssh: connect to host library port 22: Connection refused
try: ssh: connect to host try port 22: Connection refused
or: ssh: connect to host or port 22: Connection refused
disabled: ssh: connect to host disabled port 22: Connection refused
stack: ssh: connect to host stack port 22: Connection refused
which: ssh: connect to host which port 22: Connection refused
^C0.0.0.0: Host key verification failed.

解决方法:

修改/etc/profile
export HADOOP_HOME=你自己的hadoop目录
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_YARN_HOME=$HADOOP_HOME
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOOME/sbin:$HADOOP_HOME/lib
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"

你可能感兴趣的:(hadoop start-all.sh碰到的问题)