This commit is contained in:
luoxiang 2019-05-01 12:46:02 +08:00
parent 5175fcce74
commit 55be9cfe4e
2 changed files with 372 additions and 369 deletions

View File

@ -54,7 +54,7 @@
3. [集群资源管理器——YARN](https://github.com/heibaiying/BigData-Notes/blob/master/notes/Hadoop-YARN.md)
4. [Hadoop单机伪集群环境搭建](https://github.com/heibaiying/BigData-Notes/blob/master/notes/installation/hadoop%E5%8D%95%E6%9C%BA%E7%89%88%E6%9C%AC%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA.md)
5. [HDFS常用Shell命令](https://github.com/heibaiying/BigData-Notes/blob/master/notes/HDFS常用Shell命令.md)
6. HDFS Java API详解
6. [HDFS Java API的使用](https://github.com/heibaiying/BigData-Notes/blob/master/notes/HDFS-Java-API.md)
## 二、Hive

View File

@ -1,4 +1,5 @@
# HDFS Java API
<nav>
<a href="#一-简介">一、 简介</a><br/>
<a href="#二API的使用">二、API的使用</a><br/>
@ -382,6 +383,8 @@ public void getFileBlockLocations() throws Exception {
这里我上传的文件比较小只有57M(小于128M)且程序中设置了副本系数为1所有只有一个块信息如果文件很大则这里会输出文件所有块的信息。
<br/>
<br/>
**以上所有测试用例源码可以从本仓库进行下载**[HDFS Java API](https://github.com/heibaiying/BigData-Notes/tree/master/code/Hadoop/hdfs-java-api)