hadoop小问题,
1、Permission denied: user=Administrator, access=EXECUTE, inode="/tmp":hadoop:supergroup:drwx
Run Configurations 中:Arguments -->VM arguments: -DHADOOP_USER_NAME=hadoop
也可以直接在hadoop的bin下 ./hadoop fs -chmod -R 777 /
还有网友回答的修改配置文件属性为false
2、main(String args[])中路径配置
/input /input
3、hadoop只支持UTF8,对中文的处理
String Line=new String(value.getBytes(),0,value.length,"GBK");
4、在output输出时,当文件存在时不方便调试
Path outPath = new Path("/D:/output");
FileSystem fs = FileSystem.get(conf);
if(fs.exists(outPath)){
fs.delete(outPath, true);
}
5时间同步
date -s "2017-03-01 00:00:00"
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。