nutch1.0 cygwin eclipse问题

阅读更多

执行时报:

crawl started in: crawled
rootUrlDir = url.txt
threads = 10
depth = 3
topN = 50
Injector: starting
Injector: crawlDb: crawled/crawldb
Injector: urlDir: url.txt
Injector: Converting injected urls to crawl db entries.
Exception in thread "main" java.io.IOException: Failed to get the current user's information.
    at org.apache.hadoop.mapred.JobClient.getUGI(JobClient.java:717)
    at org.apache.hadoop.mapred.JobClient.configureCommandLineOptions(JobClient.java:592)
    at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:788)
    at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1142)
    at org.apache.nutch.crawl.Injector.inject(Injector.java:175)
    at org.apache.nutch.crawl.Crawl.main(Crawl.java:112)
Caused by: javax.security.auth.login.LoginException: Login failed: Cannot run program "bash": CreateProcess error=2, ?????????
    at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:250)
    at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:275)
    at org.apache.hadoop.mapred.JobClient.getUGI(JobClient.java:715)
    ... 5 more

 

 

xp:环境变量设置了

path:E:\nutch\cygwin-files\cygwin-files\bin;

 

请问是什么原因造成的错?

你可能感兴趣的:(Eclipse,Hadoop,Java,Apache,Security)