You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Andy Xue <an...@gmail.com> on 2012/04/10 03:37:23 UTC
Run Nutch Crawl in Eclipse
Hi all:
I'd like to run Nutch Crawl in Eclipse. I have followed the
"RunNutchInEclipse" tutorial (http://wiki.apache.org/nutch/RunNutchInEclipse).
However when I tried to run the crawler, the following exception occurred:
==============================================================================
solrUrl is not set, indexing will be skipped...
Exception in thread "main" java.io.IOException: Job failed!
at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1252)
at org.apache.nutch.crawl.Injector.inject(Injector.java:217)
at org.apache.nutch.crawl.Crawl.run(Crawl.java:127)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.nutch.crawl.Crawl.main(Crawl.java:55)
==============================================================================
The Eclipse Run Configurations are all set according to the tutorial.
==============================================================================
Main Class: org.apache.nutch.crawl.Crawl
Program Arguments: urls -dir crawl -depth 2 -topN 10
VM arguments: -Dhadoop.log.dir=logs -Dhadoop.log.file=hadoop.log
Working directory: Default
==============================================================================
And I have set the classpath, src path, ivy path, etc according to the
tutorial too.
I can build using Ant in Eclipse. Afterwards I can successfully manually
run the crawl script using
$NUTCH_HOME/runtime/local/bin/nutch crawl urls -dir crawl -depth 2 -topN 10
And it does do the crawl process correctly and give the correct result. But
when I try to run it in Eclipse, it always fail.
Does anyone have the similar problem and knows how it can be solved?
Appreciate your time and help.
Andy
Re: Run Nutch Crawl in Eclipse
Posted by Ferdy Galema <fe...@kalooga.com>.
Hi,
Please only post to the user list, instead of both user and dev.
The "Job failed" is a general exception that is always caused by a more
specific error. You need to inspect the logs in the Eclipse console for the
specific error that caused the job to fail. (NullPointerException,
ClassNotFoundException, something like that).
Ferdy
On Tue, Apr 10, 2012 at 3:37 AM, Andy Xue <an...@gmail.com> wrote:
> Hi all:
>
> I'd like to run Nutch Crawl in Eclipse. I have followed the
> "RunNutchInEclipse" tutorial (
> http://wiki.apache.org/nutch/RunNutchInEclipse).
> However when I tried to run the crawler, the following exception occurred:
>
>
> ==============================================================================
> solrUrl is not set, indexing will be skipped...
> Exception in thread "main" java.io.IOException: Job failed!
> at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1252)
> at org.apache.nutch.crawl.Injector.inject(Injector.java:217)
> at org.apache.nutch.crawl.Crawl.run(Crawl.java:127)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.nutch.crawl.Crawl.main(Crawl.java:55)
>
> ==============================================================================
>
>
> The Eclipse Run Configurations are all set according to the tutorial.
>
> ==============================================================================
>
> Main Class: org.apache.nutch.crawl.Crawl
> Program Arguments: urls -dir crawl -depth 2 -topN 10
> VM arguments: -Dhadoop.log.dir=logs -Dhadoop.log.file=hadoop.log
> Working directory: Default
>
>
> ==============================================================================
> And I have set the classpath, src path, ivy path, etc according to the
> tutorial too.
>
>
> I can build using Ant in Eclipse. Afterwards I can successfully manually
> run the crawl script using
>
> $NUTCH_HOME/runtime/local/bin/nutch crawl urls -dir crawl -depth 2 -topN 10
>
>
> And it does do the crawl process correctly and give the correct result. But
> when I try to run it in Eclipse, it always fail.
>
>
>
> Does anyone have the similar problem and knows how it can be solved?
> Appreciate your time and help.
>
>
> Andy
>
Re: Run Nutch Crawl in Eclipse
Posted by Mustafa Elkhiat <me...@gmail.com>.
Hi Feng,
thanks for your reply
and i do this action (changing value of property of plugin.folder)but the
problem still exist
On Sat, Mar 16, 2013 at 4:15 PM, feng lu <am...@gmail.com> wrote:
> Hi Mustafa
>
> Maybe it not found the plugin.folders in your application. you can set the
> absolute path to this property like this
>
> <property>
> <name>plugin.folders</name>
> <value>/home/workspace/Nutch16/runtime/local/plugins</value>
> <description>Directories where nutch plugins are located. Each
> element may be a relative or absolute path. If absolute, it is used
> as is. If relative, it is searched for on the classpath.</description>
> </property>
>
>
> On Sat, Mar 16, 2013 at 12:34 PM, Mustafa_elkhiat <melkhiat@gmail.com
> >wrote:
>
> > On 03/16/2013 02:55 AM, Lewis John Mcgibbney wrote:
> >
> >> Hi Mustafa,
> >> 1. Always tell us what version of the software you are using. It also
> >> helps
> >> to mention whether your are using a binary version or src.
> >> 2. Please read the responses from users@, you haven't answered which
> >> version of Nutch your using
> >> 3. As I explained, If you check out conf/log4j.properties you can alter
> >> specific tools, or the entire logging policy to obtain the coarseness
> you
> >> require. In this instance, I would either set the logging for Injector
> to
> >> DEBUG, or of course manually debug that particular job to see what is
> >> wrong.
> >>
> >> It makes it significantly more difficult to help when the information is
> >> low.
> >> Thanks
> >> Lewis
> >>
> >> On Fri, Mar 15, 2013 at 5:07 PM, Mustafa_elkhiat <me...@gmail.com>
> >> wrote:
> >>
> >> thank you Lewis for your reply
> >>> but i'm not clearly understand you .what should i do?
> >>>
> >>>
> >>>
> >> i use apache-nutch-1.6
> >
>
>
>
> --
> Don't Grow Old, Grow Up... :-)
>
Re: Run Nutch Crawl in Eclipse
Posted by feng lu <am...@gmail.com>.
Hi Mustafa
Maybe it not found the plugin.folders in your application. you can set the
absolute path to this property like this
<property>
<name>plugin.folders</name>
<value>/home/workspace/Nutch16/runtime/local/plugins</value>
<description>Directories where nutch plugins are located. Each
element may be a relative or absolute path. If absolute, it is used
as is. If relative, it is searched for on the classpath.</description>
</property>
On Sat, Mar 16, 2013 at 12:34 PM, Mustafa_elkhiat <me...@gmail.com>wrote:
> On 03/16/2013 02:55 AM, Lewis John Mcgibbney wrote:
>
>> Hi Mustafa,
>> 1. Always tell us what version of the software you are using. It also
>> helps
>> to mention whether your are using a binary version or src.
>> 2. Please read the responses from users@, you haven't answered which
>> version of Nutch your using
>> 3. As I explained, If you check out conf/log4j.properties you can alter
>> specific tools, or the entire logging policy to obtain the coarseness you
>> require. In this instance, I would either set the logging for Injector to
>> DEBUG, or of course manually debug that particular job to see what is
>> wrong.
>>
>> It makes it significantly more difficult to help when the information is
>> low.
>> Thanks
>> Lewis
>>
>> On Fri, Mar 15, 2013 at 5:07 PM, Mustafa_elkhiat <me...@gmail.com>
>> wrote:
>>
>> thank you Lewis for your reply
>>> but i'm not clearly understand you .what should i do?
>>>
>>>
>>>
>> i use apache-nutch-1.6
>
--
Don't Grow Old, Grow Up... :-)
Re: Run Nutch Crawl in Eclipse
Posted by Mustafa_elkhiat <me...@gmail.com>.
On 03/16/2013 02:55 AM, Lewis John Mcgibbney wrote:
> Hi Mustafa,
> 1. Always tell us what version of the software you are using. It also helps
> to mention whether your are using a binary version or src.
> 2. Please read the responses from users@, you haven't answered which
> version of Nutch your using
> 3. As I explained, If you check out conf/log4j.properties you can alter
> specific tools, or the entire logging policy to obtain the coarseness you
> require. In this instance, I would either set the logging for Injector to
> DEBUG, or of course manually debug that particular job to see what is wrong.
>
> It makes it significantly more difficult to help when the information is
> low.
> Thanks
> Lewis
>
> On Fri, Mar 15, 2013 at 5:07 PM, Mustafa_elkhiat <me...@gmail.com> wrote:
>
>> thank you Lewis for your reply
>> but i'm not clearly understand you .what should i do?
>>
>>
>
i use apache-nutch-1.6
Re: Run Nutch Crawl in Eclipse
Posted by Lewis John Mcgibbney <le...@gmail.com>.
Hi Mustafa,
1. Always tell us what version of the software you are using. It also helps
to mention whether your are using a binary version or src.
2. Please read the responses from users@, you haven't answered which
version of Nutch your using
3. As I explained, If you check out conf/log4j.properties you can alter
specific tools, or the entire logging policy to obtain the coarseness you
require. In this instance, I would either set the logging for Injector to
DEBUG, or of course manually debug that particular job to see what is wrong.
It makes it significantly more difficult to help when the information is
low.
Thanks
Lewis
On Fri, Mar 15, 2013 at 5:07 PM, Mustafa_elkhiat <me...@gmail.com> wrote:
> thank you Lewis for your reply
> but i'm not clearly understand you .what should i do?
>
>
--
*Lewis*
Re: Run Nutch Crawl in Eclipse
Posted by Mustafa_elkhiat <me...@gmail.com>.
On 03/16/2013 01:57 AM, Lewis John Mcgibbney wrote:
> Nutch provides you with a pretty fine grained (common) logging mechanism.
> If you check out conf/log4j.properties you can alter specific tools, or the
> entire logging policy to obtain the coarseness you require.
> In this instance, I would either set the logging for Injector to DEBUG, or
> of course manually debug that particular job to see what is wrong.
> You are in a development environment after all right?
> hth
>
> On Fri, Mar 15, 2013 at 4:49 PM, Mustafa_elkhiat <me...@gmail.com> wrote:
>
>> On 03/16/2013 01:43 AM, kiran chitturi wrote:
>>
>>> What error exactly are you getting ? Which version of software are you
>>> using ?
>>>
>>> Are you able to build the software and not crawl ? or Are you not able to
>>> build in Eclipse ?
>>>
>>>
>>> On Fri, Mar 15, 2013 at 7:23 PM, Mustafa_elkhiat <me...@gmail.com>
>>> wrote:
>>>
>>> On 03/16/2013 12:40 AM, kiran chitturi wrote:
>>>> Hi Mustafa,
>>>>> Did you look at this page [0] ?There is a section at the bottom that
>>>>> gives
>>>>> instructions on setting up the 'plugin.folders' property.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> [0] - http://wiki.apache.org/nutch/****RunNutchInEclipse<http://wiki.apache.org/nutch/**RunNutchInEclipse>
>>>>> <http://**wiki.apache.org/nutch/**RunNutchInEclipse<http://wiki.apache.org/nutch/RunNutchInEclipse>
>>>>>
>>>>> On Fri, Mar 15, 2013 at 5:55 PM, Mustafa_elkhiat <me...@gmail.com>
>>>>> wrote:
>>>>>
>>>>> Hi Andy
>>>>>
>>>>>> i face the same problem .Please help and tell me how i set
>>>>>> "plugin.folders" property correctly
>>>>>> Mustafa
>>>>>>
>>>>>>
>>>>>> thank you kiran
>>>> but problem not solved is there any way to solve this problem?
>>>>
>>>>
>>>>
>>> i can build successfully but not crawl throw eclipse and show this
>> exception
>>
>>
>> solrUrl is not set, indexing will be skipped...
>> crawl started in: crawl
>> rootUrlDir = urls
>> threads = 10
>> depth = 3
>> solrUrl=null
>> topN = 50
>> Injector: starting at 2013-03-16 01:17:19
>> Injector: crawlDb: crawl/crawldb
>> Injector: urlDir: urls
>> Injector: Converting injected urls to crawl db entries.
>> Exception in thread "main" java.io.IOException: Job failed!
>> at org.apache.hadoop.mapred.**JobClient.runJob(JobClient.**java:1327)
>> at org.apache.nutch.crawl.**Injector.inject(Injector.java:**281)
>> at org.apache.nutch.crawl.Crawl.**run(Crawl.java:132)
>> at org.apache.hadoop.util.**ToolRunner.run(ToolRunner.**java:65)
>> at org.apache.nutch.crawl.Crawl.**main(Crawl.java:55)
>>
>>
>>
>>
>
thank you Lewis for your reply
but i'm not clearly understand you .what should i do?
Re: Run Nutch Crawl in Eclipse
Posted by Lewis John Mcgibbney <le...@gmail.com>.
Nutch provides you with a pretty fine grained (common) logging mechanism.
If you check out conf/log4j.properties you can alter specific tools, or the
entire logging policy to obtain the coarseness you require.
In this instance, I would either set the logging for Injector to DEBUG, or
of course manually debug that particular job to see what is wrong.
You are in a development environment after all right?
hth
On Fri, Mar 15, 2013 at 4:49 PM, Mustafa_elkhiat <me...@gmail.com> wrote:
> On 03/16/2013 01:43 AM, kiran chitturi wrote:
>
>> What error exactly are you getting ? Which version of software are you
>> using ?
>>
>> Are you able to build the software and not crawl ? or Are you not able to
>> build in Eclipse ?
>>
>>
>> On Fri, Mar 15, 2013 at 7:23 PM, Mustafa_elkhiat <me...@gmail.com>
>> wrote:
>>
>> On 03/16/2013 12:40 AM, kiran chitturi wrote:
>>>
>>> Hi Mustafa,
>>>>
>>>> Did you look at this page [0] ?There is a section at the bottom that
>>>> gives
>>>> instructions on setting up the 'plugin.folders' property.
>>>>
>>>>
>>>>
>>>>
>>>> [0] - http://wiki.apache.org/nutch/****RunNutchInEclipse<http://wiki.apache.org/nutch/**RunNutchInEclipse>
>>>> <http://**wiki.apache.org/nutch/**RunNutchInEclipse<http://wiki.apache.org/nutch/RunNutchInEclipse>
>>>> >
>>>>
>>>>
>>>> On Fri, Mar 15, 2013 at 5:55 PM, Mustafa_elkhiat <me...@gmail.com>
>>>> wrote:
>>>>
>>>> Hi Andy
>>>>
>>>>> i face the same problem .Please help and tell me how i set
>>>>> "plugin.folders" property correctly
>>>>> Mustafa
>>>>>
>>>>>
>>>>> thank you kiran
>>>>
>>> but problem not solved is there any way to solve this problem?
>>>
>>>
>>>
>> i can build successfully but not crawl throw eclipse and show this
> exception
>
>
> solrUrl is not set, indexing will be skipped...
> crawl started in: crawl
> rootUrlDir = urls
> threads = 10
> depth = 3
> solrUrl=null
> topN = 50
> Injector: starting at 2013-03-16 01:17:19
> Injector: crawlDb: crawl/crawldb
> Injector: urlDir: urls
> Injector: Converting injected urls to crawl db entries.
> Exception in thread "main" java.io.IOException: Job failed!
> at org.apache.hadoop.mapred.**JobClient.runJob(JobClient.**java:1327)
> at org.apache.nutch.crawl.**Injector.inject(Injector.java:**281)
> at org.apache.nutch.crawl.Crawl.**run(Crawl.java:132)
> at org.apache.hadoop.util.**ToolRunner.run(ToolRunner.**java:65)
> at org.apache.nutch.crawl.Crawl.**main(Crawl.java:55)
>
>
>
>
--
*Lewis*
Re: Run Nutch Crawl in Eclipse
Posted by Mustafa_elkhiat <me...@gmail.com>.
On 03/16/2013 01:43 AM, kiran chitturi wrote:
> What error exactly are you getting ? Which version of software are you
> using ?
>
> Are you able to build the software and not crawl ? or Are you not able to
> build in Eclipse ?
>
>
> On Fri, Mar 15, 2013 at 7:23 PM, Mustafa_elkhiat <me...@gmail.com> wrote:
>
>> On 03/16/2013 12:40 AM, kiran chitturi wrote:
>>
>>> Hi Mustafa,
>>>
>>> Did you look at this page [0] ?There is a section at the bottom that gives
>>> instructions on setting up the 'plugin.folders' property.
>>>
>>>
>>>
>>>
>>> [0] - http://wiki.apache.org/nutch/**RunNutchInEclipse<http://wiki.apache.org/nutch/RunNutchInEclipse>
>>>
>>>
>>> On Fri, Mar 15, 2013 at 5:55 PM, Mustafa_elkhiat <me...@gmail.com>
>>> wrote:
>>>
>>> Hi Andy
>>>> i face the same problem .Please help and tell me how i set
>>>> "plugin.folders" property correctly
>>>> Mustafa
>>>>
>>>>
>>> thank you kiran
>> but problem not solved is there any way to solve this problem?
>>
>>
>
i can build successfully but not crawl throw eclipse and show this exception
solrUrl is not set, indexing will be skipped...
crawl started in: crawl
rootUrlDir = urls
threads = 10
depth = 3
solrUrl=null
topN = 50
Injector: starting at 2013-03-16 01:17:19
Injector: crawlDb: crawl/crawldb
Injector: urlDir: urls
Injector: Converting injected urls to crawl db entries.
Exception in thread "main" java.io.IOException: Job failed!
at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1327)
at org.apache.nutch.crawl.Injector.inject(Injector.java:281)
at org.apache.nutch.crawl.Crawl.run(Crawl.java:132)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.nutch.crawl.Crawl.main(Crawl.java:55)
Re: Run Nutch Crawl in Eclipse
Posted by kiran chitturi <ch...@gmail.com>.
What error exactly are you getting ? Which version of software are you
using ?
Are you able to build the software and not crawl ? or Are you not able to
build in Eclipse ?
On Fri, Mar 15, 2013 at 7:23 PM, Mustafa_elkhiat <me...@gmail.com> wrote:
> On 03/16/2013 12:40 AM, kiran chitturi wrote:
>
>> Hi Mustafa,
>>
>> Did you look at this page [0] ?There is a section at the bottom that gives
>> instructions on setting up the 'plugin.folders' property.
>>
>>
>>
>>
>> [0] - http://wiki.apache.org/nutch/**RunNutchInEclipse<http://wiki.apache.org/nutch/RunNutchInEclipse>
>>
>>
>> On Fri, Mar 15, 2013 at 5:55 PM, Mustafa_elkhiat <me...@gmail.com>
>> wrote:
>>
>> Hi Andy
>>> i face the same problem .Please help and tell me how i set
>>> "plugin.folders" property correctly
>>> Mustafa
>>>
>>>
>>
>> thank you kiran
> but problem not solved is there any way to solve this problem?
>
>
--
Kiran Chitturi
<http://www.linkedin.com/in/kiranchitturi>
Re: Run Nutch Crawl in Eclipse
Posted by Mustafa_elkhiat <me...@gmail.com>.
On 03/16/2013 12:40 AM, kiran chitturi wrote:
> Hi Mustafa,
>
> Did you look at this page [0] ?There is a section at the bottom that gives
> instructions on setting up the 'plugin.folders' property.
>
>
>
>
> [0] - http://wiki.apache.org/nutch/RunNutchInEclipse
>
>
> On Fri, Mar 15, 2013 at 5:55 PM, Mustafa_elkhiat <me...@gmail.com> wrote:
>
>> Hi Andy
>> i face the same problem .Please help and tell me how i set
>> "plugin.folders" property correctly
>> Mustafa
>>
>
>
thank you kiran
but problem not solved is there any way to solve this problem?
Re: Run Nutch Crawl in Eclipse
Posted by kiran chitturi <ch...@gmail.com>.
Hi Mustafa,
Did you look at this page [0] ?There is a section at the bottom that gives
instructions on setting up the 'plugin.folders' property.
[0] - http://wiki.apache.org/nutch/RunNutchInEclipse
On Fri, Mar 15, 2013 at 5:55 PM, Mustafa_elkhiat <me...@gmail.com> wrote:
> Hi Andy
> i face the same problem .Please help and tell me how i set
> "plugin.folders" property correctly
> Mustafa
>
--
Kiran Chitturi
<http://www.linkedin.com/in/kiranchitturi>
Re: Run Nutch Crawl in Eclipse
Posted by Mustafa_elkhiat <me...@gmail.com>.
Hi Andy
i face the same problem .Please help and tell me how i set
"plugin.folders" property correctly
Mustafa
Re: Run Nutch Crawl in Eclipse
Posted by Andy Xue <an...@gmail.com>.
Hi all:
Just FYI that I have solved the problem.
I checked the hadoop.log file and found that the "plugin.folder" property
was set incorrectly.
Thank you for your help.
Andy
On 11 April 2012 16:41, Andy Xue <an...@gmail.com> wrote:
> Hi Lewis:
>
> Thank you for the help. This is the (entire) output after I set the log4j
> property to debug.
> ==============================================================
> crawl started in: crawl
> rootUrlDir = urls
> threads = 10
> depth = 2
> solrUrl=http://localhost:8983/solr/
> topN = 10
> Injector: starting at 2012-04-11 16:37:20
> Injector: crawlDb: crawl/crawldb
> Injector: urlDir: urls
> Injector: Converting injected urls to crawl db entries.
>
> Exception in thread "main" java.io.IOException: Job failed!
> at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1252)
> at org.apache.nutch.crawl.Injector.inject(Injector.java:217)
> at org.apache.nutch.crawl.Crawl.run(Crawl.java:127)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.nutch.crawl.Crawl.main(Crawl.java:55)
> ==============================================================
>
> And btw, The "urls" directory is correct and it does contain a txt file
> of a list of urls.
>
> Regards
> Andy
>
>
>
> On 10 April 2012 22:08, Lewis John Mcgibbney <le...@gmail.com>wrote:
>
>> There is no more log information before the solrUrl stuff, no?
>>
>> try setting log4j.properties to debug in conf/ rebuild the project and see
>> whats going on.
>>
>> On Tue, Apr 10, 2012 at 1:03 PM, Andy Xue <an...@gmail.com> wrote:
>>
>> > Lewis:
>> > Thanks for the reply.
>> > However as far as I know, I don't have to set solrUrl unless I want to
>> > index using solr.
>> >
>> > Correct. My fault. I just assumed that this was required.
>>
>> Lewis
>>
>
>
Re: Run Nutch Crawl in Eclipse
Posted by Andy Xue <an...@gmail.com>.
Hi Lewis:
Thank you for the help. This is the (entire) output after I set the log4j
property to debug.
==============================================================
crawl started in: crawl
rootUrlDir = urls
threads = 10
depth = 2
solrUrl=http://localhost:8983/solr/
topN = 10
Injector: starting at 2012-04-11 16:37:20
Injector: crawlDb: crawl/crawldb
Injector: urlDir: urls
Injector: Converting injected urls to crawl db entries.
Exception in thread "main" java.io.IOException: Job failed!
at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1252)
at org.apache.nutch.crawl.Injector.inject(Injector.java:217)
at org.apache.nutch.crawl.Crawl.run(Crawl.java:127)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.nutch.crawl.Crawl.main(Crawl.java:55)
==============================================================
And btw, The "urls" directory is correct and it does contain a txt file of
a list of urls.
Regards
Andy
On 10 April 2012 22:08, Lewis John Mcgibbney <le...@gmail.com>wrote:
> There is no more log information before the solrUrl stuff, no?
>
> try setting log4j.properties to debug in conf/ rebuild the project and see
> whats going on.
>
> On Tue, Apr 10, 2012 at 1:03 PM, Andy Xue <an...@gmail.com> wrote:
>
> > Lewis:
> > Thanks for the reply.
> > However as far as I know, I don't have to set solrUrl unless I want to
> > index using solr.
> >
> > Correct. My fault. I just assumed that this was required.
>
> Lewis
>
Re: Run Nutch Crawl in Eclipse
Posted by Lewis John Mcgibbney <le...@gmail.com>.
There is no more log information before the solrUrl stuff, no?
try setting log4j.properties to debug in conf/ rebuild the project and see
whats going on.
On Tue, Apr 10, 2012 at 1:03 PM, Andy Xue <an...@gmail.com> wrote:
> Lewis:
> Thanks for the reply.
> However as far as I know, I don't have to set solrUrl unless I want to
> index using solr.
>
> Correct. My fault. I just assumed that this was required.
Lewis
Re: Run Nutch Crawl in Eclipse
Posted by Andy Xue <an...@gmail.com>.
Ferdy:
Thanks for the heads up, and sorry for spamming the dev channel.
Lewis:
Thanks for the reply.
However as far as I know, I don't have to set solrUrl unless I want to
index using solr.
The thing here is: Using the same configuration, I can run manually using
the crawl script at" $NUTCH_HOME/runtime/local/bin/nutch", but it doesn't
work if I try to run the Crawl class inside Eclipse. Do you reckon that the
exception is related to solrUrl?
==============================================================================
solrUrl is not set, indexing will be skipped...
Exception in thread "main" java.io.IOException: Job failed!
at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1252)
at org.apache.nutch.crawl.Injector.inject(Injector.java:217)
at org.apache.nutch.crawl.Crawl.run(Crawl.java:127)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.nutch.crawl.Crawl.main(Crawl.java:55)
==============================================================================
None of you had the problem before? Did you all follow the
"RunNutchInEclipse" tutorial and it just worked?
Appreciate it.
Andy
On 10 April 2012 20:05, Lewis John Mcgibbney <le...@gmail.com>wrote:
> Hi Andy,
>
> On Tue, Apr 10, 2012 at 2:37 AM, Andy Xue <an...@gmail.com> wrote:
>
> >
> > solrUrl is not set, indexing will be skipped...
> >
>
> If you wish Nutch to do end to end crawling to indexing respectively you
> need to tell it so. In crawl configuration set the -solrUrl parameter to
> point to your solr server.
>
> Lewis
>
Re: Run Nutch Crawl in Eclipse
Posted by Lewis John Mcgibbney <le...@gmail.com>.
Hi Andy,
On Tue, Apr 10, 2012 at 2:37 AM, Andy Xue <an...@gmail.com> wrote:
>
> solrUrl is not set, indexing will be skipped...
>
If you wish Nutch to do end to end crawling to indexing respectively you
need to tell it so. In crawl configuration set the -solrUrl parameter to
point to your solr server.
Lewis