0

我有一个 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)
4

1 回答 1

2

在 Windows 上运行 IDE?

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

于 2013-02-13T00:24:28.090 回答