✎
编程开发网
首页
C语言
C++
面试
Linux
函数
Windows
数据库
下载
搜索
当前位置:
首页
->
AI编程基础
->
JAVA
hadoop通过FileSystem API读取和写入数据 (二)
2014-11-24 10:58:05
·
作者:
·
浏览:
1
标签:
hadoop
通过
FileSystem
API
读取
写入
数据
Copies from one stream to another.\n";
byte[] stringBuffer = new byte[1024];
stringBuffer = writeString.getBytes();
Path inputPath = new Path("hdfs://192.168.56.171:9000/testWrite");
OutputStream out = inputFileSystem.create(inputPath);
out.write(stringBuffer);
out.close();
}
}
首页
上一页
1
2
下一页
尾页
2
/2/2