Home > other >  How to add custom in hadoop source interface implementation hadoop RPC
How to add custom in hadoop source interface implementation hadoop RPC

Time:10-01

Hadoop in defining a custom interface inheritance VersionProtocol to implement the Hadoop RPC should be how to create the client proxy, and the service side, now need to define an interface to realize the remote procedure call (RPC) in the Hadoop, use online example tried before, compiled in the Hadoop source code, runtime error, is now mainly do not know how to create the agent on the client, own the RPC in the HDFS are created various implementations in DFSClient VersionProtocol interface: ClientProtocol, DataNodeProtocol waiting, to directly use Hadoop RPC, implement the corresponding interface, and then the NameNode and a dedicated server thread, RPCserver is responsible for the monitoring and processing, and transfer the data type when invoke Hadoop RPC must implement own Writable interface in Hadoop, now I need to define a their own interface also implements the function, should be how to add code, a great god please help, thank you!

CodePudding user response:

  • Related