Why do we need Hadoop passwordless ssh?

后端 未结 2 1377
日久生厌
日久生厌 2021-02-13 03:21
  • AFAIK, passwordless ssh is needed so that the master node can start the daemon processes on each slave node. Apart from that, is there any use of having passwordless ss

2条回答
  •  没有蜡笔的小新
    2021-02-13 03:53

    You are correct. If ssh is not passwordless, you have to go on each individual machine and start all the processes there, manually. For your second question, all the communication in HDFS happens over TCP/IP and for the data movement HTTP is used. Mechanism goes like this :

    A client establishes a connection to a configurable TCP port on the NameNode machine. It talks the ClientProtocol with the NameNode. The DataNodes talk to the NameNode using the DataNode Protocol. A Remote Procedure Call (RPC) abstraction wraps both the Client Protocol and the DataNode Protocol.

    And for the third question, it's not necessary to have a passwordless ssh among the slave nodes.

提交回复
热议问题