文件上传的时候,使用下面的命令即可
hadoop fs -D fs.local.block.size=134217728 -put local_name remote_location
参考
http://stackoverflow.com/questions/2669800/changing-the-block-size-of-a-dfs-file-in-hadoop
经过验证,上述命令在0.21版本上不行,需要改为
hadoop dfs -D dfs.blocksize=134217728 -copyFromLocal local_name remote_location