You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Fadzi Ushewokunze <fa...@butterflycluster.net> on 2010/01/30 01:21:53 UTC

Solr + nutch + distributed search

hi all,

i am in the process of integrating nutch and solr;

I am trying to call the solr server from the NutchBean and getting an
exception which seems to show that nutchBean is trying to read the local
index not solr server.

not sure whats missing in my config for me to be able to get my search
results from solr server?

the only thing i did was to drop a solr-servers.txt inside the crawl
folder.

here is the exception:

11:06:02,585 ERROR [NutchBean] Exception occured while executing search:
java.lang.RuntimeException: java.util.concurrent.ExecutionException:
java.lang.NullPointerException
java.lang.RuntimeException: java.util.concurrent.ExecutionException:
java.lang.NullPointerException
	at
org.apache.nutch.searcher.FetchedSegments.getSummary(FetchedSegments.java:285)
	at org.apache.nutch.searcher.NutchBean.getSummary(NutchBean.java:325)
	at org.apache.nutch.searcher.NutchBean.main(NutchBean.java:383)
Caused by: java.util.concurrent.ExecutionException:
java.lang.NullPointerException
	at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
	at java.util.concurrent.FutureTask.get(FutureTask.java:83)
	at
org.apache.nutch.searcher.FetchedSegments.getSummary(FetchedSegments.java:280)
	... 2 more
Caused by: java.lang.NullPointerException
	at
org.apache.nutch.searcher.FetchedSegments.getSummary(FetchedSegments.java:248)
	at org.apache.nutch.searcher.FetchedSegments
$SummaryTask.call(FetchedSegments.java:63)
	at org.apache.nutch.searcher.FetchedSegments
$SummaryTask.call(FetchedSegments.java:1)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)



Re: Solr + nutch + distributed search

Posted by Fadzi Ushewokunze <fa...@butterflycluster.net>.
ignore this message below; operator error....

On Sat, 2010-01-30 at 11:21 +1100, Fadzi Ushewokunze wrote:
> hi all,
> 
> i am in the process of integrating nutch and solr;
> 
> I am trying to call the solr server from the NutchBean and getting an
> exception which seems to show that nutchBean is trying to read the local
> index not solr server.
> 
> not sure whats missing in my config for me to be able to get my search
> results from solr server?
> 
> the only thing i did was to drop a solr-servers.txt inside the crawl
> folder.
> 
> here is the exception:
> 
> 11:06:02,585 ERROR [NutchBean] Exception occured while executing search:
> java.lang.RuntimeException: java.util.concurrent.ExecutionException:
> java.lang.NullPointerException
> java.lang.RuntimeException: java.util.concurrent.ExecutionException:
> java.lang.NullPointerException
> 	at
> org.apache.nutch.searcher.FetchedSegments.getSummary(FetchedSegments.java:285)
> 	at org.apache.nutch.searcher.NutchBean.getSummary(NutchBean.java:325)
> 	at org.apache.nutch.searcher.NutchBean.main(NutchBean.java:383)
> Caused by: java.util.concurrent.ExecutionException:
> java.lang.NullPointerException
> 	at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
> 	at java.util.concurrent.FutureTask.get(FutureTask.java:83)
> 	at
> org.apache.nutch.searcher.FetchedSegments.getSummary(FetchedSegments.java:280)
> 	... 2 more
> Caused by: java.lang.NullPointerException
> 	at
> org.apache.nutch.searcher.FetchedSegments.getSummary(FetchedSegments.java:248)
> 	at org.apache.nutch.searcher.FetchedSegments
> $SummaryTask.call(FetchedSegments.java:63)
> 	at org.apache.nutch.searcher.FetchedSegments
> $SummaryTask.call(FetchedSegments.java:1)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at java.util.concurrent.ThreadPoolExecutor
> $Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor
> $Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)
> 
>