I'm using CentOS to learn Hadoop, using start-all.sh to report the following error:
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 St Arting namenodes on [Java HotSpot (TM) Client VM warning:you has loaded library/home/hadoop/apps/hadoop-2.6.4/lib/native /libhadoop.so.1.0.0 which might has disabled stack guard.
The VM would try to fix the stack guard now.
It's highly recommended that's the library with ' execstack-c <libfile> ', or link it with '-Z noexecstack '. MINI01] sed:-e expression #1, character 6: unknown option for "s" You:ssh:Could not resolve hostname You:no address associated with hostname-c: unkn own cipher type ' CD ' you:ssh:Could not resolve hostname You:no address associated with hostname now.: Ssh:could not re Solve hostname Now: No address associated with hostname warning:: Ssh:could not resolve hostname warning:: Name or Servi Ce 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 Assoc Iated with hostname ' execstack:ssh:Could no resolve hostname ' execstack:name or service not known to:ssh:Could not R Esolve hostname To:no address associated with hostname it ' s:ssh:could not resolve hostname it ' s:name or service not kn Own <libfile> ',: ssh:could not resolve hostname <libfile> ',: Name or service not known link:ssh:Could not R Esolve 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 the 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 has Port 22:connection refused VM:ssh:connect to Hos T 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 Has port 22:connection refused Recommended:ssh:connect to host recommended Port 22:connection refused The:ssh:conne CT to host the port 22:connection refused disabled:ssh:connect to host disabled Port 22:connection refused LIBRARY:SS H: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:SS H:connect to host stack Port 22:connection refused with:ssh:connect to host with Port 22:connection refused Vm:ssh: Connect to host VM port22: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 Por T 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 W Ill 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 has loaded library/home/hadoop/apps/hadoop-2.6.4/l ib/native/libhadoop.so.1.0.0 which might has disabled stack guard.
The VM would try to fix the stack guard now.
It's highly recommended that's the library with ' execstack-c <libfile> ', or link it with '-Z noexecstack '. 0.0.0.0] Sed:-e Expression #1, character 6: unknown option for "s"-c:unknown cipher type ' CD ' It ' s:ssh:could not resolve hostname it ' s:name or service not known N Oexecstack '.: Ssh:could not resolve hostname noexecstack '.: Name or service not known now.: Ssh:could not resolve Hostna
Me 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. Is you sure want to continue connecting (yes/no)? You:ssh:Could not resolve hostname You:no address associated with hostname <libfile> ',: Ssh:could not resolve Ho Stname <libfile> ',: Name or service not known it:ssh:Could not resolve hostname It:no address associated with HOS Tname Warning:: Ssh:could not resolve hostname warning:: Name or service not known HotSpot (TM): Ssh:could not resolve Ho Stname HotSpot (TM): Name or service not known Java:ssh:Could not resolve hostname java:no address associated with hostname to:ssh:Could No resolve hostname to:no address associated with Ho Stname 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:co Nnect to host highly port 22:connection refused '-z:ssh:could not resolve hostname '-z:name or service not known Vm:s Sh:connect to host VMS Port 22:connection refused Have:ssh:connect to host has port 22:connection refused fix:ssh:c Onnect to host fix port 22:connection refused with:ssh:connect to host with Port 22:connection refused Might:ssh:con Nect to host might port 22:connection refused VM:ssh:connect to host VM Port 22:connection refused Fix:ssh:connect t o Host fix port 22:connection refused Will:ssh:connect to host would port 22:connection refused The:ssh:connect to Ho St The Port 22:connectiOn refused That:ssh:connect to host this port 22:connection refused The:ssh:connect to host the port 22:connection R efused Client:ssh:connect to host Client Port 22:connection refused The:ssh:connect to host the port 22:connection R efused Stack:ssh:connect to host stack Port 22:connection refused have:ssh:connect to host has port 22:connection R Efused 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 ports 22:connection refused Library:ssh:connect to host Library Port 22:connection refused Guard:ssh:connect to host guard ports 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 Ho St 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.
Workaround:
Modify/etc/profile
export hadoop_home= your own HADOOP directory
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 "