欢迎投稿

今日深度:

hadoop小问题,

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"







www.htsjk.Com true http://www.htsjk.com/Hadoop/40936.html NewsArticle hadoop小问题, 1、Permission denied: user=Administrator, access=EXECUTE, inode="/tmp":hadoop:supergroup:drwx Run Configurations  中:Arguments --VM  arguments: -DHADOOP_USER_NAME=hadoop 也可以直接在hadoop的bin下 ./hadoo...
相关文章
    暂无相关文章
评论暂时关闭