1. 程式人生 > >【流水】啟動hdfs的報錯ssh: connect to host master port 22: Connection timed out

【流水】啟動hdfs的報錯ssh: connect to host master port 22: Connection timed out

報錯如下:

[[email protected] sbin]$ ./start-dfs.sh

18/01/24 22:46:38 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [hadoop000]
hadoop000: ssh: connect to host hadoop000 port 22: Connection timed out
hadoop000: ssh: connect to host hadoop000 port 22: Connection timed out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: secondarynamenode running as process 3195. Stop it first.

18/01/24 22:48:48 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

解決過程:

 1、ifconfig看了下ip地址

2、在cmd上ping了下,發現並無問題

3、使用sudo service iptables status命令檢視防火牆狀態,也沒有問題

[[email protected] ~]$ sudo service iptables status
iptables: Firewall is not running.

我們使用sudo chkconfig iptables off來永久關閉防火牆,如果使用sudo service iptables stop將臨時關閉防火牆,會在下一次關機重啟後重置,建議使用第一種

4、最後看了下 sudo vi /etc/hosts

終於找到問題,原來是ip配錯了

相關推薦

流水啟動hdfsssh: connect to host master port 22: Connection timed out

報錯如下: [[email protected] sbin]$ ./start-dfs.sh 18/01/24 22:46:38 WARN util.NativeCodeLoader: Unable to load native-hadoop library fo

關於ssh: connect to host master port 22: Connection timed out問題的總結

最近在cnetos6.5系統上重新配置了hadoop-2.2.0,在配置叢集的ssh無祕鑰登入時,經常能碰到ssh: connect to host master port 22: Connection timed out的問題。現在對該問題做一下可能出現的問題的總結和解決

Git配置非22端口,解決:ssh: connect to host xxx port 22: Connection timed out fatal: The remote end hung up unexpectedly

name 訪問 基於 .net article 自定義 一個 實現 背景 背景:私自搭建了Git服務器,而Git本身就是SSH進行連接的,而Git命令上默認只能通過22端口實現。 解決方法: 第一種: 在系統的用戶目錄下的文件夾:.ssh 如果該路徑下沒有confi

<Linux> Ubuntu error: ssh: connect to host master port 22: No route to host lost connection

ror host input ssh端口 linu 就會 accept ssh ubuntu iptables當找到匹配的規則時,就會執行相應的動作,而不會向下繼續匹配。因為ssh端口開放的規則在all規則之後,所以永遠都不會匹配到,也就是ssh永遠被禁止。 root下執行

ssh:connect to host localhost port 22: Connection refused

1.先徹底刪除ssh內容 sudo apt-get remove --purge openssh-server 2.重新安裝openssh-server sudo apt-get install openssh-server  (openssh-client可以不裝) 3.

ssh: connect to host localhost port 22: Connection refused

在ROS下執行ssh 指令時可能會碰到這樣的錯誤提示 ssh: connect to host localhost port 22: Connectionrefused 錯誤原因可能有三個: 1.sshd 未安裝 2.sshd未啟動 3.防火清 解決辦法: 1.確定安裝s

ssh: connect to host localhost port 22: Connection refused : 通過系統日誌排查問題

1. 配置好了ssh免登入,但登入的時候卻報拒絕連線 [[email protected] Desktop]$ ssh localhost ssh: connect to host localhost port 22: Connection refused 2.

git上傳程式碼ssh: connect to host github.com port 22: Connection timed out解決辦法

當在遠端庫上設定了SSH 之後還是報錯連線超時,問題如下 $ git push origin master ssh: connect to host github.com port 22: Connection timed out fatal: Could not read

sshconnect to host localhost port 22: Connection refused解決方法

安裝hadoop的時候,需要配置ssh無密登入 執行ssh localhsot的時候會報錯: linux系統(centos6.4) ssh:connect to host localhost po

在ubuntu中配置SSH(解決connect to host localhost port 22: Connection refused問題)

update: 下面這篇文章距離現在比較久了,不一定適合大家機器現在的情況了,如果不能成功解決問題請見諒。 ———————————————————————————————————————————————————— 簡單地說 配置hadoop時必須的一步就是保證ssh是聯通

Ubuntu下使用ssh遠端登入時出現錯誤提示connect to host localhost port 22:Connection refused

1、Ubuntu下測試ssh時使用ssh localhost 命令,出現錯誤提示connect to host localhost port 22:Connection refused 造成這個錯誤的原因可能是ssh-server未安裝或者未啟動。ubuntu

使用wifi ssh: connect to host hadoop000 port 22: No route to host

自動分配 pin route port 是否 size 問題 nec 配置 使用的wifi,在wifi下IP會自動分配。 先嘗試能否ping通,如果都無法ping通那先把IP配置那些先搞定ping通之後遇到此問題再來嘗試解決。 查看 /etc/hosts 中配置的 I

git clone(fatal: Authentication failed for 'http://XXX.git/'&&ssh:connect to host XXX port 22:超時)

問題描述: 第一天正式實習,專案組的人給我開放了遠端庫的許可權,然後就git clone(採用http的方式),成功。然後因為修改了一些內容,所以刪掉再次克隆,結果就出現了下面的錯誤。

idea 啟動專案:Exception in thread "main" io.sited.StandardException: Timed out after 30000 ms ....

Exception in thread "main" io.sited.StandardException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPr

AndroidTensorFlow出現Connect to storage.googleapis.com:443 ......Connection timed out: connect解決辦法

TensorFlow執行的時候會報以下異常: Error:Execution failed for task ‘:downloadFile’. org.apache.http.conn.HttpHostConnectException: Connect

github連接報"ssh: connect to host github.com port 22: Connection timed out"錯誤

body csdn span -s file ckey keyword user class 1. 異常在連接github時,執行”ssh -T [email protected]

解決ssh-connect-to-host-github-com-port-22-connection-timed-out

PC:~$ ssh [email protected] ssh: connect to host github.com port 22: Connection timed out 解決辦法:(linux下) ~$ cd ~ ~$ cd .ssh

tensorFlowtf.reshape()信息 - TypeError: Expected binary or unicode string

bject port cas inpu dimen div nts sof expec 今天在使用tensoflow跑cifar10的CNN分類時候,download一個源碼,但是報錯 TypeError: Failed to convert object of type

mybatismybatis訪問:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

配置 esp 文件中 map XML 需要 r.java文件 指定 space mybatis訪問報錯:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 需要檢

SparkSpark執行Task not serializable

文章目錄 異常資訊 出現場景 解決方案 分析 異常資訊 org.apache.spark.SparkException: Task not serializable Caused by: java.io.NotSerial