Is this from a crawl command or from the bin script... or something else? Your input arguments are not complete.
the "-batch X" switch will not work for anything, as such a parameter simply does not exist. Are you aware of how you ended up with the batchId being null? What version of 2.x are you using? Lewis On Tue, Jan 8, 2013 at 6:56 PM, linjianfeng <[email protected]> wrote: > On 12/14/2012 07:49 PM, 高睿 wrote: > > Hi, > > > > When I specify solr in command line, There will be an exception thrown. > > Command line: urls -solr http://localhost:8080/solr/ -depth 1 -topN 3 > > I tried to add '-batch 3' parameter into command line, but it doesn't > help. I looked into the code, and found the parameter is ignored somewhere. > > So, how do I fix this? Thanks. > > > > Skipping http://www.iguuu.com/thread-944-1-1.html; different batch id > (null) > > Skipping http://www.iguuu.com/thread-987-1-1.html; different batch id > (null) > > Exception in thread "main" java.lang.NullPointerException > > at java.util.Hashtable.put(Unknown Source) > > at java.util.Properties.setProperty(Unknown Source) > > at org.apache.hadoop.conf.Configuration.set(Configuration.java:438) > > at > org.apache.nutch.indexer.IndexerJob.createIndexJob(IndexerJob.java:128) > > at > org.apache.nutch.indexer.solr.SolrIndexerJob.run(SolrIndexerJob.java:44) > > at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:68) > > at org.apache.nutch.crawl.Crawler.run(Crawler.java:192) > > at org.apache.nutch.crawl.Crawler.run(Crawler.java:250) > > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > > at org.apache.nutch.crawl.Crawler.main(Crawler.java:257) > > > > Regards, > > Rui > > > 你指的是 diffirent batch id 这个错误吗? -- *Lewis*

