我有一个hadoopjava文件在eclipseide中运行它,当我运行这个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条答案
按热度按时间pqwbnv8z1#
在windows上运行ide?
请尝试安装unxutils(将其解压缩到某个位置),并将usr/local/wbin文件夹放在windows$path上,重新启动ide(或将该路径添加到ide运行时路径),然后重试