图理解:
详解HDFS写的过程:
1.Client客户端发出请求open到Distributed FileSystem分布式文件系统
2.Distributed FileSystem就会发送请求得到块的位置的信息给NN,
3.Distributed FileSystem得到块的位置信息(NN返回给Distributed FileSystem的其实是FileSystem对象,里面包括有块的位置信息)
4.然后利用outputstream流去DN实现写的操作。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31537584/viewspace-2155568/
,如需转载,请注明出处,否则将追究法律责任。