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