8.5 下载文件

//文件下载
@Test
public void download() throws Exception{
    fs.copyToLocalFile(new Path("/java_test/bb.txt"), new Path("c:/hadoop_test/download_bb.txt"));

}

说明:

  • xxx.crccrc验证文件. HDFS为了保证文件准确性, 加入了crc验证.
Copyright © 尚硅谷大数据 2013-2019 all right reserved,powered by Gitbook
该文件最后修订时间: 2018-11-20 18:14:11

results matching ""

    No results matching ""