hadoop启动时,报ssh: Could not resolve hostname xxx: Name or service not known

  1. 问题:hadoop启动时,报ssh: Could not resolve hostname xxx: Name or service not known
  2. 错误信息:
  3. [root@master hadoop-2.2.0]# sbin/start-dfs.sh
  4. 17/08/06 13:08:59 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  5. Starting namenodes on [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /data/cloud/hadoop/hadoop-2.2.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
  6. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
  7. master]
  8. sed: -e expression #1, char 6: unknown option to `s'
  9. library: ssh: Could not resolve hostname library: Name or service not known
  10. loaded: ssh: Could not resolve hostname loaded: Name or service not known
  11. VM: ssh: Could not resolve hostname VM: Name or service not known
  12. have: ssh: Could not resolve hostname have: Name or service not known
  13. Server: ssh: Could not resolve hostname Server: Name or service not known
  14. 64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not known
  15. have: ssh: Could not resolve hostname have: Name or service not known
  16. disabled: ssh: Could not resolve hostname disabled: Name or service not known
  17. VM: ssh: Could not resolve hostname VM: Name or service not known
  18. to: ssh: Could not resolve hostname to: No address associated with hostname
  19. Java: ssh: Could not resolve hostname Java: No address associated with hostname
  20. which: ssh: Could not resolve hostname which: Name or service not known
  21. will: ssh: Could not resolve hostname will: Name or service not known
  22. might: ssh: Could not resolve hostname might: Name or service not known
  23. stack: ssh: Could not resolve hostname stack: Name or service not known
  24. The: ssh: Could not resolve hostname The: Name or service not known
  25. stack: ssh: Could not resolve hostname stack: Name or service not known
  26. guard.: ssh: Could not resolve hostname guard.: Name or service not known
  27. recommended: ssh: Could not resolve hostname recommended: Name or service not known
  28. guard: ssh: Could not resolve hostname guard: Name or service not known
  29. try: ssh: Could not resolve hostname try: Name or service not known
  30. fix: ssh: Could not resolve hostname fix: Name or service not known
  31. -c: Unknown cipher type 'cd'
  32. fix: ssh: Could not resolve hostname fix: Name or service not known
  33. the: ssh: Could not resolve hostname the: Name or service not known
  34. the: ssh: Could not resolve hostname the: Name or service not known
  35. with: ssh: Could not resolve hostname with: Name or service not known
  36. it: ssh: Could not resolve hostname it: No address associated with hostname
  37. with: ssh: Could not resolve hostname with: Name or service not known
  38. or: ssh: Could not resolve hostname or: Name or service not known
  39. The authenticity of host 'master (192.168.1.110)' can't be established.
  40. RSA key fingerprint is db:8e:ce:15:18:ad:9d:16:0e:88:98:0d:da:06:e4:18.
  41. Are you sure you want to continue connecting (yes/no)? that: ssh: Could not resolve hostname that: Name or service not known
  42. highly: ssh: Could not resolve hostname highly: Name or service not known
  43. library: ssh: Could not resolve hostname library: Name or service not known
  44. now.: ssh: Could not resolve hostname now.: No address associated with hostname
  45. You: ssh: Could not resolve hostname You: No address associated with hostname
  46. you: ssh: Could not resolve hostname you: No address associated with hostname
  47. link: ssh: Could not resolve hostname link: No address associated with hostname
  48. HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Temporary failure in name resolution
  49. warning:: ssh: Could not resolve hostname warning:: Temporary failure in name resolution
  50. It's: ssh: Could not resolve hostname It's: Temporary failure in name resolution
  51. <libfile>',: ssh: Could not resolve hostname <libfile>',: Temporary failure in name resolution
  52. 'execstack: ssh: Could not resolve hostname 'execstack: Temporary failure in name resolution
  53. '-z: ssh: Could not resolve hostname '-z: Temporary failure in name resolution
  54. noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Temporary failure in name resolution
  55. 解决方法:
  56. 在/etc/profile文件中添加:
  57. export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
  58. export HADOOP_OPTS=-Djava.library.path=$HADOOP_HOME/lib
  59. 注意:是export HADOOP_OPTS=-Djava.library.path=$HADOOP_HOME/lib,而不是export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值