安裝Hadoop一定要安裝ssh-keygen嗎?
本人親自實(shí)踐,發(fā)現(xiàn)如果沒有像視頻中執(zhí)行以下兩條重要命令,無法啟動:
ssh-keygen?-t?rsa cat?~/.ssh/id_rsa.pub?>>?~/.ssh/authorized_keys
一直報錯的內(nèi)容如下:
[root@lb-chen?sbin]#?./start-all.sh? Starting?namenodes?on?[lb-chen]? Last?login:?Sat?Dec?21?17:46:44?CST?2019?on?pts/0? lb-chen:?Permission?denied?(publickey,gssapi-keyex,gssapi-with-mic,password).? Starting?datanodes? Last?login:?Sat?Dec?21?17:52:06?CST?2019?on?pts/0? localhost:?Permission?denied?(publickey,gssapi-keyex,gssapi-with-mic,password).? Starting?secondary?namenodes?[lb-chen]? Last?login:?Sat?Dec?21?17:52:07?CST?2019?on?pts/0? lb-chen:?Permission?denied?(publickey,gssapi-keyex,gssapi-with-mic,password).? Starting?resourcemanager? Last?login:?Sat?Dec?21?17:52:08?CST?2019?on?pts/0? Starting?nodemanagers? Last?login:?Sat?Dec?21?17:52:11?CST?2019?on?pts/0? localhost:?Permission?denied?(publickey,gssapi-keyex,gssapi-with-mic,password).
請問這個ssh 是一定要的嗎,是不是可以不用安裝這個?
還請大神求助,老師求助!SOS
2019-12-23
執(zhí)行ssh-keygen是為了做免密碼登錄的,因?yàn)閔adoop在啟動的時候默認(rèn)會使用ssh 命令免密碼登錄到對應(yīng)的機(jī)器啟動集群的相關(guān)服務(wù),不管是單機(jī)還是集群都是這個流程