错误描述:

Java: ssh: Could not resolve hostname Java: Name or service not knownlibrary: ssh: Could not resolve hostname library: Name or service not knownwarning:: ssh: Could not resolve hostname warning:: Name or service not knownwhich: ssh: Could not resolve hostname which: Name or service not knownhave: ssh: Could not resolve hostname have: Name or service not knownmight: ssh: Could not resolve hostname might: Name or service not knownYou: ssh: Could not resolve hostname You: Name or service not knownloaded: ssh: Could not resolve hostname loaded: Name or service not knownServer: ssh: Could not resolve hostname Server: Name or service not knownHotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not knownhave: ssh: Could not resolve hostname have: Name or service not known64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not knownVM: ssh: Could not resolve hostname VM: Name or service not knowndisabled: ssh: Could not resolve hostname disabled: Name or service not knownVM: ssh: Could not resolve hostname VM: Name or service not knownstack: ssh: Could not resolve hostname stack: Name or service not knownThe: ssh: Could not resolve hostname The: Name or service not knownfix: ssh: Could not resolve hostname fix: Name or service not knowntry: ssh: Could not resolve hostname try: Name or service not knownguard.: ssh: Could not resolve hostname guard.: Name or service not knownto: ssh: Could not resolve hostname to: Name or service not known

解决: 在/etc/profile 中添加如下两条内容:

export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_INSTALL/lib"

这里$HADOOP_INSTALL 指的是hadoop 的安装路径

source /etc/profile 刷新配置
重新启动HDFS,问题消失

转载于:https://www.cnblogs.com/shiguangmanbu2016/p/5932878.html

错误:ssh:could not resolve ....相关推荐

  1. 错误提示:ssh: Could not resolve hostname devsrv: Name or service not known

    ssh: Could not resolve hostname devsrv: Name or service not known ubuntu下 scp时出错:ssh: Could not reso ...

  2. scp命令传输出现ssh: Could not resolve hostname错误

    ssh: Could not resolve hostname xxxxx: Temporary failure in name resolution 原因是docker导出的镜像需要离线导入,在命名 ...

  3. ssh: Could not resolve hostname gitcafe.com: nodename nor servname provided, or not known

    今天 git push 的时候报如下错误: ssh: Could not resolve hostname gitcafe.com: nodename nor servname provided, o ...

  4. ssh:could not resolve hostname XXX:Temporary failure in name resolution

    今天使用虚拟机提交github项目发现出现: ssh:could not resolve hostname XXX:Temporary failure in name resolution 先是pin ...

  5. Git提示:ssh: Could not resolve hostname github.com: No address associated with hostname

    今天本地Git Push 代码推送远程分支,提示如下错误信息: zzg@LAPTOP-8R0KHL88 MINGW64 /e/idea_workspace (master) $ git push ss ...

  6. 配置免密登录报错:ssh: Could not resolve hostname note1: Name or service not known

    这两天配置免密出现这个错误: [root@note4 .ssh]# ssh note1 ssh: Could not resolve hostname note1: Name or service n ...

  7. ssh: Could not resolve hostname e.coding.net: Name or service not known

    在向git上传代码,即git push 或从git上download代码 git pull 时,会有如下错误提示: ssh: Could not resolve hostname **: Name o ...

  8. 解决:使用ssh-copy-id命令时出现ERROR: ssh: Could not resolve hostname hadoop01:Name or service not known

    1.问题描述 搭建rocketmq集群时,使用ssh-copy-id命令拷贝密钥到其他机器,如hadoop01,hadoop02,出现如下错误信息 [root@hadoop03 .ssh]# ssh- ...

  9. hadoop启动报错:localhost: ssh: Could not resolve hostname localhost

    hadoop启动journalnode时报错:localhost: ssh: Could not resolve hostname localhost: Temporary failure in na ...

  10. 使用vscode连接阿里云服务器报错: ssh: Could not resolve hostname Name or service not known

    ssh: Could not resolve hostname Name or service not known vscode配置里面你把那个hostname不写试试连接 Host 公网ipPort ...

最新文章

  1. 隐藏表白图“我喜欢你”就像你看不见但它也依然存在
  2. ubuntu 安装google浏览器
  3. 三十四、R语言数据分析实战
  4. asp.net中将枚举绑定到下拉列表
  5. 集算器并行处理大文本文件的示例
  6. 净资产滚动率_净资产的结构
  7. java classnotfoundexception e_关于解释class文件时出现java.lang.ClassNotFoundException的问题...
  8. Word无法读取此文档,文档可能已损坏
  9. 显微镜自动聚焦原理是什么_激光共聚焦显微镜系统的原理和应用讲解
  10. Win10系统输入法(微软拼音)切换简体和繁体
  11. 如何设置背景图片的大小?
  12. 小程序后端云开发(一)
  13. openlayers 地图源
  14. Eclipse下jsp模板设置
  15. IOS 地图导航(其中包括苹果地图、百度地图、高德地图、谷歌地图)
  16. java书写开头,JAVA代码书写规范汇总详解
  17. 20154312 曾林 Exp3 免杀原理与实践
  18. Citrix XenDesktop7.6搭建
  19. 魔兽争霸3 for Mac 汉化版 即时战略游戏 支持M1
  20. css:a:visited限制

热门文章

  1. 通过telnet远程管理华为路由器
  2. maya动画导出处理
  3. 设计模式(四)【Strategy模式】
  4. DIV+CSS进行布局 HTML+CSS+JS大作业——汽车销售网站模板(7页) html网页设计期末大作业_网页设计平时作业模板下载
  5. 【电子学会】2020年12月图形化四级 -- 绘图程序优化
  6. 未来哪些职业会被chatGPT取代
  7. 微服务(项目原理和教程)
  8. JVM -- 垃圾回收器7种(四)
  9. linux中pppoe技术分析,Linux中PPPOE技术分析
  10. Fast and Accurate CNN Object Detector with Scale Dependent Pooling and Cascad Rejection Classifiers