Why do we need Hadoop passwordless ssh?

后端 未结 2 1322
日久生厌
日久生厌 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.

    0 讨论(0)
  • 2021-02-13 03:59

    Answer to the first question:

    The Hadoop core uses Shell (SSH) to launch the server processes on the slave nodes. It requires password-less SSH connection between the master and all the slaves and the secondary machines.

    We need a password-less SSH in a Fully-Distributed environment because when the cluster is LIVE and running in Fully Distributed environment, the communication is too frequent. The job tracker should be able to send a task to task tracker quickly.

    0 讨论(0)
提交回复
热议问题