You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by carmmello <ca...@globo.com> on 2005/12/26 19:19:15 UTC

How to run Nutch?

I have downloaded and installed the nutch-2005-12-18.tar.gz and tried to
run it using the crawl method, with no success and I reported this in
previous posts.  Now I have tried the "SimpleMapReduceTutorial" in the
Nutch wiki,but ended with the same errors messages as before:

java.io.IOException: No input directories specified in: NutchConf:
nutch-default.xml , mapred-
default.xml , /tmp/nutch/mapred/local/localRunner/job_tccxir.xml ,
nutch-site.xml
        at org.apache.nutch.mapred.InputFormatBase.listFiles
(InputFormatBase.java:85)
        at org.apache.nutch.mapred.InputFormatBase.getSplits
(InputFormatBase.java:95)
        at org.apache.nutch.mapred.LocalJobRunner$Job.run
(LocalJobRunner.java:63)
051226 132320  map 0%
Exception in thread "main" java.io.IOException: Job failed!
        at org.apache.nutch.mapred.JobClient.runJob(JobClient.java:308)
        at org.apache.nutch.crawl.Injector.inject(Injector.java:102)
        at org.apache.nutch.crawl.Crawl.main(Crawl.java:101)
[root@localhost nutch-nightly]#

I am running linux as root and have checked that the directories
specified in the nutch.conf, do exist.

As a further experience I tried the bin/nutch commands list (bin/nutch)
and I got listed the "admin -> database administration, including
creation", but when I tried to run this command (with the db folder
already created, or without any parameters) I got the same message
error: 

"Exception in thread "main" java.lang.NoClassDefFoundError: admin"

So, it seems that this very basic Nutch command, although listed,  is
not functional in the most recent nutch-nightly release and, for the
experiments that I have already done, it appears that the new version
can not be run as the previous versions.
 

I have, since Nutch 0.3, tried to keep pace in using the Nutch releases,
but, at least for now I, really, don't know what to do, so, any help
will be  welcomed. 

Thanks 







Re: How to run Nutch?

Posted by Stefan Groschupf <sg...@media-style.com>.
> You could improve your tutorial by adding or modifying the  
> following places.

Thanks for the suggestions, I will add this to my  documentation  
project.

Re: How to run Nutch?

Posted by Nutch Newbie <nu...@gmail.com>.
Stefan:

Your docs are good as it is. But only if you want to be the best then
you gotta :-).....do....

You could improve your tutorial by adding or modifying the following places.

1. You mention vaguely about having same user/pass for all the 3
machine. I think it would be good idea to put some emphasis on this.
If  you just follow your answer to the mailing list you will find how
important this is. I suggest you add things where it is clear that the
userid for all the boxes are Nutch and they can SSH or login between
the machine.

2. Your Jira issue

http://issues.apache.org/jira/browse/NUTCH-102

about webapps folder being under the / for jobtracker to run. Should
be mentioned in the docs. Well its actually a bug but if the bug is
not fixed then mentioned in the docs. Its not really your docs fault
but sorry the bug is not fixed so ...

3. Its important to mention how to write .slaves.sh same goes for
search-servers.txt file as well as nutch-site.xml <search.dir>
parameter. It is important to clarify that a. what ndfs directory it
should point too.. if fs.datanode is not "local" then explain why and
how ndfs by default assume /user/nutch??? Do you know why NDFS assume
a directory structure /user/nutch or /user/xxx etc..

4. You move around between NDFS and local file system it will be
better if you could just focus on local or NDFS.

5. When it comes to invertlinks I never had to mentioned the segment
name.. when I do it shoots out error msg.

6. To make the tutorial complete it is important to hook-up tomcat
related issue, (i.e touch web.xml moving the .war file etc..) so that
the user can see the end result after search. Offcourse you have
chopped up the tutorial into various section but 0.7 is completely
different then 0.8. So you need to have either a 0.8 tutorial or 0.7
tutorial. Don't mix this up.

7. It would also be good to mention things like -du and -ls bugs that
NDFS has in your tutorial.

Stefan don't get me wrong! As I mentioned your tutorial is the best
out there so above are my way of looking at things.....


On 12/27/05, Stefan Groschupf <sg...@media-style.com> wrote:
> > It worked for me. However there are some glitches to the tutorial but
> > its the best docs out there as far as I know.
> In case you have any criticism or improvement suggestion I would be
> very thankful any time.
>
> > Some places in the
> > Media-Style docs it says that you will need add the segment folder
> > name but actually you don't need to. - Well trial an error off you go.
>
> I will double check the tutorial and try to make things more clear,
> just let me know where exactly thing is a problem.
>
> Thanks for the comment.
> Stefan
>

Re: How to run Nutch?

Posted by Stefan Groschupf <sg...@media-style.com>.
> It worked for me. However there are some glitches to the tutorial but
> its the best docs out there as far as I know.
In case you have any criticism or improvement suggestion I would be  
very thankful any time.

> Some places in the
> Media-Style docs it says that you will need add the segment folder
> name but actually you don't need to. - Well trial an error off you go.

I will double check the tutorial and try to make things more clear,  
just let me know where exactly thing is a problem.

Thanks for the comment.
Stefan 

Re: How to run Nutch?

Posted by Nutch Newbie <nu...@gmail.com>.
Hi:

The command - bin/nutch admin is not supported on 0.8 version.
I don't recommend you run the crawl command as it is designed for "one run".

But I suggest you follow the tutorial below:

http://wiki.media-style.com/display/nutchDocu/setup+a+map+reduce+multi+box+system

It worked for me. However there are some glitches to the tutorial but
its the best docs out there as far as I know. Some places in the
Media-Style docs it says that you will need add the segment folder
name but actually you don't need to. - Well trial an error off you go.

Also you might want to look at the following. Not sure if the
following will be any help but ..

http://issues.apache.org/jira/browse/NUTCH-102

The above is only applicable if you try to run job tracker and it fails.

Hope this helps.

On 12/26/05, carmmello <ca...@globo.com> wrote:
> I have downloaded and installed the nutch-2005-12-18.tar.gz and tried to
> run it using the crawl method, with no success and I reported this in
> previous posts.  Now I have tried the "SimpleMapReduceTutorial" in the
> Nutch wiki,but ended with the same errors messages as before:
>
> java.io.IOException: No input directories specified in: NutchConf:
> nutch-default.xml , mapred-
> default.xml , /tmp/nutch/mapred/local/localRunner/job_tccxir.xml ,
> nutch-site.xml
>        at org.apache.nutch.mapred.InputFormatBase.listFiles
> (InputFormatBase.java:85)
>        at org.apache.nutch.mapred.InputFormatBase.getSplits
> (InputFormatBase.java:95)
>        at org.apache.nutch.mapred.LocalJobRunner$Job.run
> (LocalJobRunner.java:63)
> 051226 132320  map 0%
> Exception in thread "main" java.io.IOException: Job failed!
>        at org.apache.nutch.mapred.JobClient.runJob(JobClient.java:308)
>        at org.apache.nutch.crawl.Injector.inject(Injector.java:102)
>        at org.apache.nutch.crawl.Crawl.main(Crawl.java:101)
> [root@localhost nutch-nightly]#
>
> I am running linux as root and have checked that the directories
> specified in the nutch.conf, do exist.
>
> As a further experience I tried the bin/nutch commands list (bin/nutch)
> and I got listed the "admin -> database administration, including
> creation", but when I tried to run this command (with the db folder
> already created, or without any parameters) I got the same message
> error:
>
> "Exception in thread "main" java.lang.NoClassDefFoundError: admin"
>
> So, it seems that this very basic Nutch command, although listed,  is
> not functional in the most recent nutch-nightly release and, for the
> experiments that I have already done, it appears that the new version
> can not be run as the previous versions.
>
>
> I have, since Nutch 0.3, tried to keep pace in using the Nutch releases,
> but, at least for now I, really, don't know what to do, so, any help
> will be  welcomed.
>
> Thanks
>
>
>
>
>
>
>