首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网络技术 > 网络基础 >

Nutch运行后的有关问题

2012-03-23 
Nutch运行后的问题配置好,没有错误后运行出现crawl started in: crawlrootUrlDir urlsthreads 10depth

Nutch运行后的问题
配置好,没有错误后运行
出现

crawl started in: crawl
rootUrlDir = urls
threads = 10
depth = 3
topN = 50
Injector: starting
Injector: crawlDb: crawl/crawldb
Injector: urlDir: urls
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:160)
at org.apache.nutch.crawl.Crawl.main(Crawl.java:113)
Caused by: javax.security.auth.login.LoginException: Login failed: Cannot run program "whoami": 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


请问这是怎么回事?
谢谢了啊~


[解决办法]
修改下conf文件夹下的nutch-site.xml文件:

XML code
    <property>      <name>http.agent.name</name>      <value>HD nutch agent</value>      <description></description>    </property>        <property>      <name>http.agent.description</name>      <value>hpjianhua</value>    <description></description>    </property>        <property>      <name>http.agent.url</name>      <value>http://www.163.com</value>      <description></description>    </property>        <property>      <name>http.agent.email</name>      <value>hpjianhua@163.com</value>      <description></description>    </property> 

热点排行