Hadoop RPC 源码领略

栏目: 编程工具 · 发布时间: 7年前

内容简介:In distributed computing, a当主机不可达时,通过远程调用可以使得终端操作目标机器成为可能底层的网络通信细节封装入 API,方便网络分布式系统的开发

In distributed computing, a remote procedure call ( RPC ) is when a computer program causes a procedure (subroutine) to execute in a different address space (commonly on another computer on a shared network), which is coded as if it were a normal (local) procedure call, without the programmer explicitly coding the details for the remote interaction. That is, the programmer writes essentially the same code whether the subroutine is local to the executing program, or remote. This is a form of client–server interaction (caller is client, executor is server), typically implemented via a request–response message-passing system.

为什么要有 RPC?

地域性

当主机不可达时,通过远程调用可以使得终端操作目标机器成为可能

含糖性

底层的网络通信细节封装入 API,方便网络分布式系统的开发

模块化

在 Hadoop 分布式系统中,上层的分布式子系统(MapReduce、YARN、HDFS …)能够共用这个网络通信模块

Hadoop 的 RPC 调用链

这里我们以 “从 HDFS 下载一个文件” 为例

启动 Hadoop 集群的 DFS、YARN

Hadoop RPC 源码领略

可以使用 Explorer 的 50070 端口,查看 NameNode

Hadoop RPC 源码领略


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。

暗趋势

暗趋势

王煜全 / 中信出版集团 / 2019-1 / 59元

《暗趋势》由得到“全球创新260讲”专栏主讲人王煜全,为你揭示藏在科技浪潮中的商业机会,教你获得把握趋势的能力,发现小趋势,抓住大机遇。 《暗趋势》聚焦于改变你生活和未来的产业,深度解读人工智能、混合现实、区块链、生物医疗等你必须关注的科技行业,并分析新科技给企业和个人带来的发展机遇,前瞻性提出企业和个人的思维与行动应对策略。 王煜全作为全球科技前哨侦察兵,以其每年5亿元的科技投资及2......一起来看看 《暗趋势》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

在线进制转换器
在线进制转换器

各进制数互转换器