码迷,mamicode.com
首页 > 系统相关 > 详细

eclipse hadoop ERROR [main] security.UserGroupInformation

时间:2015-07-27 00:21:44      阅读:335      评论:0      收藏:0      [点我收藏+]

标签:hadoop   eclipse   

2015-07-26 23:49:05,594 ERROR [main] security.UserGroupInformation (UserGroupInformation.java:doAs(1494)) - PriviledgedActionException as:cau (auth:SIMPLE) cause:org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: file:/user/guest/0Data
Exception in thread "main" org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: file:/user/guest/0Data
at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.listStatus(FileInputFormat.java:285)
at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.getSplits(FileInputFormat.java:340)
at org.apache.hadoop.mapreduce.JobSubmitter.writeNewSplits(JobSubmitter.java:491)
at org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:508)
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:392)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1268)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1265)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:1265)
at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1286)

at Test.DataSelection.main(DataSelection.java:136)

====================================================================================================================

将路由:

              Configuration conf = new Configuration(); 
      conf.set("mapred.job.tracker", "10.2.173.15:9001");
      String[] ioArgs = new String[] { "/user/guest/0Data", "/user/guest/0data" };

改写为:

              FileInputFormat.addInputPath(job,new Path("hdfs://10.2.173.15:9000/user/guest/0Data"));
      FileOutputFormat.setOutputPath(job, new Path("hdfs://10.2.173.15:9000/user/guest/0data"));

版权声明:本文为博主原创文章,未经博主允许不得转载。

eclipse hadoop ERROR [main] security.UserGroupInformation

标签:hadoop   eclipse   

原文地址:http://blog.csdn.net/yaoxiaochuang/article/details/47074377

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!