运行该文件的Hadoop错误会导致错误

时间:2013-02-12 13:40:08

标签: java hadoop mapreduce sequential

我有一个Hadoop java文件,用于在我的eclipse IDE中运行它,当我运行这个hadoop从输入文本文件生成序列文件时,我收到以下错误。

   Feb 12, 2013 6:33:02 PM org.apache.hadoop.fs.FileSystem$Cache$Key <init>
   WARNING: uri=file:///

   javax.security.auth.login.LoginException: Login failed: Cannot run program "whoami":        CreateProcess error=2, The system cannot find the file specified
at     
                    org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:250       )
       at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:275)
at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:257)
at org.apache.hadoop.security.UserGroupInformation.login(UserGroupInformation.java:67)

at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:1438)

at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1376)

at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:215)

at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:120)

at org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java:319)

at org.apache.hadoop.mapred.FileInputFormat.addInputPath(FileInputFormat.java:313)

at main.LineIndexer.main(LineIndexer.java:81)

1 个答案:

答案 0 :(得分:2)

在Windows上运行IDE?

尝试安装unxutils(在某处解压缩),并将usr / local / wbin文件夹放在windows $ PATH上,重新启动IDE(或添加IDE运行时路径的路径)并重试