You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Mike Smith <mi...@gmail.com> on 2006/01/30 00:50:34 UTC

Re: Problems with MapRed-

I do have the same problem and this problem is killing. I have tried all
sort of comfiguration and tricks.

I have 3 machines, all three are datanodes and 1 is jobtracker. It
successfully fetches 300,000 pages, but when I try to fetch more than that
by injecting more number of pages at the first cycle it always crashes at
the end of the fetching reduce step:

060129 142220  reduce 95%
060129 142347  reduce 96%
060129 143401  reduce 100%
Exception in thread "main" java.io.IOException: Job failed!
        at org.apache.nutch.mapred.JobClient.runJob(JobClient.java:308)
        at org.apache.nutch.fetcher.Fetcher.fetch(Fetcher.java:347)
        at org.apache.nutch.fetcher.Fetcher.main(Fetcher.java:381)




This has happened at one of the tasktrackers:

060129 172145 task_r_ca2dxi 0.8677622% reduce > reduce
060129 172146 task_r_ca2dxi 0.868171% reduce > reduce
060129 173149 Task task_r_ca2dxi timed out.  Killing.
060129 173149 Server connection on port 50050 from 164.67.195.26: exiting
060129 173149 task_r_ca2dxi Child Error
java.io.IOException: Task process exit with nonzero status.
        at org.apache.nutch.mapred.TaskRunner.runChild(TaskRunner.java:139)
        at org.apache.nutch.mapred.TaskRunner.run(TaskRunner.java:92)
060129 173153 task_m_bikodi done; removing files.


Any suggestion?

Thanks, Mike







On 1/29/06, Stefan Groschupf <sg...@media-style.com> wrote:
>
> Sounds like your tasktracker wasn't able to connect to your
> jobtracker and more.
> Are you sure the jobtracker still runs and the tasktracker can access
> the jobtracker box still under same hostname?
>
> Am 28.01.2006 um 21:21 schrieb Rafit Izhak_Ratzin:
>
> > Hi,
> >
> > I ran the mapreduce starting with 10 URL into the sixth cycle where
> > it fetched 400K pages and everything was fine.
> >
> > 060127 001055 TOTAL urls:       1877326
> > 060127 001055 avg score:        1.099
> > 060127 001055 max score:        1666.305
> > 060127 001055 min score:        1.0
> > 060127 001055 retry 0:  1865721
> > 060127 001055 retry 1:  10887
> > 060127 001055 retry 2:  621
> > 060127 001055 retry 3:  92
> > 060127 001055 retry 4:  4
> > 060127 001055 retry 5:  1
> > 060127 001055 status 1 (DB_unfetched):  1477634
> > 060127 001055 status 2 (DB_fetched):    374736
> > 060127 001055 status 3 (DB_gone):       24956
> >
> > Then I tried another scenario starting with 80K urls, and the first
> > cycle was OK, but the second cycle where it supposed to fetch 800K
> > failed after 100% reduce.
> > I ran it with three machines 1 name node and 2 datanodes.
> >
> > One of my datanode has the next Exception:
> > 060128 083726 task_r_alfaaq Child Error
> > java.io.IOException: Task process exit with nonzero status.
> >        at org.apache.nutch.mapred.TaskRunner.runChild
> > (TaskRunner.java:139)
> >        at org.apache.nutch.mapred.TaskRunner.run(TaskRunner.java:92)
> > Which appeared more than once.
> >
> > The other Data Node had the next Exception:
> > 060128 142626 Lost connection to JobTracker [server.name/i.i.i.i:
> > 50020]. ex=java.lang.reflect.UndeclaredThrowableException  Retrying...
> >
> > Any idea?
> >
> > Thanks,
> > Rafit
> >
> > _________________________________________________________________
> > Express yourself instantly with MSN Messenger! Download today it's
> > FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> >
> >
>
> ---------------------------------------------------------------
> company:        http://www.media-style.com
> forum:        http://www.text-mining.org
> blog:            http://www.find23.net
>
>
>
>

Re: Problems with MapRed-

Posted by Stefan Groschupf <sg...@media-style.com>.
Am 30.01.2006 um 00:50 schrieb Mike Smith:

> I do have the same problem and this problem is killing. I have  
> tried all
> sort of comfiguration and tricks.
>
> I have 3 machines, all three are datanodes and 1 is jobtracker. It
3 tasktracker, 1 jobtracker, 3 datanodes and 1 namenode, right?

> successfully fetches 300,000 pages, but when I try to fetch more  
> than that
> by injecting more number of pages at the first cycle it always  
> crashes at
> the end of the fetching reduce step:
>
> 060129 142220  reduce 95%
> 060129 142347  reduce 96%
> 060129 143401  reduce 100%
> Exception in thread "main" java.io.IOException: Job failed!
>         at org.apache.nutch.mapred.JobClient.runJob(JobClient.java: 
> 308)
>         at org.apache.nutch.fetcher.Fetcher.fetch(Fetcher.java:347)
>         at org.apache.nutch.fetcher.Fetcher.main(Fetcher.java:381)
>
>
>
>
> This has happened at one of the tasktrackers:
>
> 060129 172145 task_r_ca2dxi 0.8677622% reduce > reduce
> 060129 172146 task_r_ca2dxi 0.868171% reduce > reduce
> 060129 173149 Task task_r_ca2dxi timed out.  Killing.
> 060129 173149 Server connection on port 50050 from 164.67.195.26:  
> exiting
> 060129 173149 task_r_ca2dxi Child Error
> java.io.IOException: Task process exit with nonzero status.
>         at org.apache.nutch.mapred.TaskRunner.runChild 
> (TaskRunner.java:139)
>         at org.apache.nutch.mapred.TaskRunner.run(TaskRunner.java:92)
> 060129 173153 task_m_bikodi done; removing files.
>
Strange!
Is that reproducible? You tried it several times?
What happens in case you increase the segment size and use something  
like 300 001?
Are you sure all processes still run, no network problem?




Re: Problems with MapRed-

Posted by Ken Krugler <kk...@transpac.com>.
>This looks like the namenode has lost connection to one of the 
>datanodes. The default number of replications in ndfs is 3 and it 
>seems like the namenode has only 2 in its list so it logs this 
>warning. As Stefan suggested, you should check the diskspace on your 
>machines. If I recall correctly datanodes crash when they run out of 
>diskspace.
>
>This could also explain your problem with the fetching. One datanode 
>runs out of diskspace and crashes while one of the tasktrackers is 
>writing data to it. You should also check if the partition with /tmp 
>has enough free space.

Yes, that also can happen.

Especially if, like us, you accidentally configure Nutch to use a 
directory on the root volume, but your servers have been configured 
with a separate filesystem for /data, and that's where all the disk 
capacity is located.

-- Ken


>Stefan Groschupf schrieb:
>>may the hdds are full?
>>try:
>>bin/nutch ndfs -report
>>Nutch generates some temporarily data until processing.
>>
>>Am 30.01.2006 um 00:54 schrieb Mike Smith:
>>
>>>I forgot to mention the namenode log file gives me thousands of these:
>>>
>>>060129 155553 Zero targets found, 
>>>forbidden1.size=2allowSameHostTargets=false
>>>forbidden2.size()=0
>>>060129 155553 Zero targets found, 
>>>forbidden1.size=2allowSameHostTargets=false
>>>forbidden2.size()=0


-- 
Ken Krugler
Krugle, Inc.
+1 530-470-9200

Re: Problems with MapRed-

Posted by Dominik Friedrich <do...@wipe-records.org>.
This looks like the namenode has lost connection to one of the 
datanodes. The default number of replications in ndfs is 3 and it seems 
like the namenode has only 2 in its list so it logs this warning. As 
Stefan suggested, you should check the diskspace on your machines. If I 
recall correctly datanodes crash when they run out of diskspace.

This could also explain your problem with the fetching. One datanode 
runs out of diskspace and crashes while one of the tasktrackers is 
writing data to it. You should also check if the partition with /tmp has 
enough free space.

best regards,
Dominik

Stefan Groschupf schrieb:
> may the hdds are full?
> try:
> bin/nutch ndfs -report
> Nutch generates some temporarily data until processing.
>
> Am 30.01.2006 um 00:54 schrieb Mike Smith:
>
>> I forgot to mention the namenode log file gives me thousands of these:
>>
>> 060129 155553 Zero targets found, 
>> forbidden1.size=2allowSameHostTargets=false
>> forbidden2.size()=0
>> 060129 155553 Zero targets found, 
>> forbidden1.size=2allowSameHostTargets=false
>> forbidden2.size()=0



Re: Problems with MapRed-

Posted by Stefan Groschupf <sg...@media-style.com>.
may the hdds are full?
try:
bin/nutch ndfs -report
Nutch generates some temporarily data until processing.

Am 30.01.2006 um 00:54 schrieb Mike Smith:

> I forgot to mention the namenode log file gives me thousands of these:
>
> 060129 155553 Zero targets found,  
> forbidden1.size=2allowSameHostTargets=false
> forbidden2.size()=0
> 060129 155553 Zero targets found,  
> forbidden1.size=2allowSameHostTargets=false
> forbidden2.size()=0
>
> Thanks, Mike
>
>
> On 1/29/06, Mike Smith <mi...@gmail.com> wrote:
>>
>> I do have the same problem and this problem is killing. I have  
>> tried all
>> sort of comfiguration and tricks.
>>
>> I have 3 machines, all three are datanodes and 1 is jobtracker. It
>> successfully fetches 300,000 pages, but when I try to fetch more  
>> than that
>> by injecting more number of pages at the first cycle it always  
>> crashes at
>> the end of the fetching reduce step:
>>
>> 060129 142220  reduce 95%
>> 060129 142347  reduce 96%
>> 060129 143401  reduce 100%
>> Exception in thread "main" java.io.IOException: Job failed!
>>         at org.apache.nutch.mapred.JobClient.runJob 
>> (JobClient.java :308)
>>         at org.apache.nutch.fetcher.Fetcher.fetch(Fetcher.java:347)
>>         at org.apache.nutch.fetcher.Fetcher.main(Fetcher.java:381)
>>
>>
>>
>>
>> This has happened at one of the tasktrackers:
>>
>> 060129 172145 task_r_ca2dxi 0.8677622% reduce > reduce
>> 060129 172146 task_r_ca2dxi 0.868171% reduce > reduce
>> 060129 173149 Task task_r_ca2dxi timed out.  Killing.
>> 060129 173149 Server connection on port 50050 from 164.67.195.26:  
>> exiting
>> 060129 173149 task_r_ca2dxi Child Error
>> java.io.IOException: Task process exit with nonzero status.
>>         at org.apache.nutch.mapred.TaskRunner.runChild  
>> (TaskRunner.java
>> :139)
>>         at org.apache.nutch.mapred.TaskRunner.run(TaskRunner.java:92)
>> 060129 173153 task_m_bikodi done; removing files.
>>
>>
>> Any suggestion?
>>
>> Thanks, Mike
>>
>>
>>
>>
>>
>>
>>
>> On 1/29/06, Stefan Groschupf <sg...@media-style.com> wrote:
>>>
>>> Sounds like your tasktracker wasn't able to connect to your
>>> jobtracker and more.
>>> Are you sure the jobtracker still runs and the tasktracker can  
>>> access
>>> the jobtracker box still under same hostname?
>>>
>>> Am 28.01.2006 um 21:21 schrieb Rafit Izhak_Ratzin:
>>>
>>>> Hi,
>>>>
>>>> I ran the mapreduce starting with 10 URL into the sixth cycle where
>>>> it fetched 400K pages and everything was fine.
>>>>
>>>> 060127 001055 TOTAL urls:       1877326
>>>> 060127 001055 avg score:        1.099
>>>> 060127 001055 max score:        1666.305
>>>> 060127 001055 min score:        1.0
>>>> 060127 001055 retry 0:  1865721
>>>> 060127 001055 retry 1:  10887
>>>> 060127 001055 retry 2:  621
>>>> 060127 001055 retry 3:  92
>>>> 060127 001055 retry 4:  4
>>>> 060127 001055 retry 5:  1
>>>> 060127 001055 status 1 (DB_unfetched):  1477634
>>>> 060127 001055 status 2 (DB_fetched):    374736
>>>> 060127 001055 status 3 (DB_gone):       24956
>>>>
>>>> Then I tried another scenario starting with 80K urls, and the first
>>>> cycle was OK, but the second cycle where it supposed to fetch 800K
>>>> failed after 100% reduce.
>>>> I ran it with three machines 1 name node and 2 datanodes.
>>>>
>>>> One of my datanode has the next Exception:
>>>> 060128 083726 task_r_alfaaq Child Error
>>>> java.io.IOException : Task process exit with nonzero status.
>>>>        at org.apache.nutch.mapred.TaskRunner.runChild
>>>> (TaskRunner.java:139)
>>>>        at org.apache.nutch.mapred.TaskRunner.run(TaskRunner.java: 
>>>> 92)
>>>> Which appeared more than once.
>>>>
>>>> The other Data Node had the next Exception:
>>>> 060128 142626 Lost connection to JobTracker [server.name/i.i.i.i:
>>>> 50020]. ex=java.lang.reflect.UndeclaredThrowableException   
>>>> Retrying...
>>>>
>>>> Any idea?
>>>>
>>>> Thanks,
>>>> Rafit
>>>>
>>>> _________________________________________________________________
>>>> Express yourself instantly with MSN Messenger! Download today it's
>>>> FREE! http://messenger.msn.click-url.com/go/onm00200471ave/ 
>>>> direct/01/
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------
>>> company:        http://www.media-style.com
>>> forum:        http://www.text-mining.org
>>> blog:             http://www.find23.net
>>>
>>>
>>>
>>>
>>

---------------------------------------------------------------
company:        http://www.media-style.com
forum:        http://www.text-mining.org
blog:            http://www.find23.net



Re: Problems with MapRed-

Posted by Ken Krugler <kk...@transpac.com>.
Hi Mike,

>I forgot to mention the namenode log file gives me thousands of these:
>
>060129 155553 Zero targets found, forbidden1.size=2allowSameHostTargets=false
>forbidden2.size()=0
>060129 155553 Zero targets found, forbidden1.size=2allowSameHostTargets=false
>forbidden2.size()=0

 From our experience, this happens when you don't have enough 
DataNodes running to handle the replication count you specified.

So, for example, if the replication count was 3 and you lost one of 
your DataNodes, then the NameNode log goes crazy logging these kind 
of error messages.

>  > I do have the same problem and this problem is killing. I have tried all
>  > sort of comfiguration and tricks.

[snip]

Did you bump the IPC timeout value way up?

-- Ken

>  >
>>  I have 3 machines, all three are datanodes and 1 is jobtracker. It
>>  successfully fetches 300,000 pages, but when I try to fetch more than that
>>  by injecting more number of pages at the first cycle it always crashes at
>>  the end of the fetching reduce step:
>>
>>  060129 142220  reduce 95%
>>  060129 142347  reduce 96%
>>  060129 143401  reduce 100%
>>  Exception in thread "main" java.io.IOException: Job failed!
>>          at org.apache.nutch.mapred.JobClient.runJob(JobClient.java :308)
>>          at org.apache.nutch.fetcher.Fetcher.fetch(Fetcher.java:347)
>  >         at org.apache.nutch.fetcher.Fetcher.main(Fetcher.java:381)
>>
>  > This has happened at one of the tasktrackers:
>>
>>  060129 172145 task_r_ca2dxi 0.8677622% reduce > reduce
>>  060129 172146 task_r_ca2dxi 0.868171% reduce > reduce
>>  060129 173149 Task task_r_ca2dxi timed out.  Killing.
>>  060129 173149 Server connection on port 50050 from 164.67.195.26: exiting
>>  060129 173149 task_r_ca2dxi Child Error
>>  java.io.IOException: Task process exit with nonzero status.
>>          at org.apache.nutch.mapred.TaskRunner.runChild (TaskRunner.java
>>  :139)
>>          at org.apache.nutch.mapred.TaskRunner.run(TaskRunner.java:92)
>>  060129 173153 task_m_bikodi done; removing files.
>>
>>
>>  Any suggestion?
>>
>>  Thanks, Mike
>>
>>
>>
>>
>>
>>
>>
>>  On 1/29/06, Stefan Groschupf <sg...@media-style.com> wrote:
>>  >
>>  > Sounds like your tasktracker wasn't able to connect to your
>>  > jobtracker and more.
>>  > Are you sure the jobtracker still runs and the tasktracker can access
>>  > the jobtracker box still under same hostname?
>>  >
>>  > Am 28.01.2006 um 21:21 schrieb Rafit Izhak_Ratzin:
>>  >
>>  > > Hi,
>>  > >
>>  > > I ran the mapreduce starting with 10 URL into the sixth cycle where
>>  > > it fetched 400K pages and everything was fine.
>>  > >
>>  > > 060127 001055 TOTAL urls:       1877326
>>  > > 060127 001055 avg score:        1.099
>>  > > 060127 001055 max score:        1666.305
>>  > > 060127 001055 min score:        1.0
>>  > > 060127 001055 retry 0:  1865721
>>  > > 060127 001055 retry 1:  10887
>>  > > 060127 001055 retry 2:  621
>>  > > 060127 001055 retry 3:  92
>>  > > 060127 001055 retry 4:  4
>>  > > 060127 001055 retry 5:  1
>>  > > 060127 001055 status 1 (DB_unfetched):  1477634
>>  > > 060127 001055 status 2 (DB_fetched):    374736
>>  > > 060127 001055 status 3 (DB_gone):       24956
>>  > >
>>  > > Then I tried another scenario starting with 80K urls, and the first
>>  > > cycle was OK, but the second cycle where it supposed to fetch 800K
>>  > > failed after 100% reduce.
>>  > > I ran it with three machines 1 name node and 2 datanodes.
>>  > >
>>  > > One of my datanode has the next Exception:
>>  > > 060128 083726 task_r_alfaaq Child Error
>>  > > java.io.IOException : Task process exit with nonzero status.
>>  > >        at org.apache.nutch.mapred.TaskRunner.runChild
>>  > > (TaskRunner.java:139)
>>  > >        at org.apache.nutch.mapred.TaskRunner.run(TaskRunner.java:92)
>>  > > Which appeared more than once.
>>  > >
>>  > > The other Data Node had the next Exception:
>>  > > 060128 142626 Lost connection to JobTracker [server.name/i.i.i.i:
>>  > > 50020]. ex=java.lang.reflect.UndeclaredThrowableException  Retrying...
>>  > >
>>  > > Any idea?
>>  > >
>>  > > Thanks,
>>  > > Rafit
>>  > >
>>  > > _________________________________________________________________
>  > > > Express yourself instantly with MSN Messenger! Download today it's
>>  > > FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>>  > >
>>  > >
>>  >
>>  > ---------------------------------------------------------------
>>  > company:        http://www.media-style.com
>>  > forum:        http://www.text-mining.org
>>  > blog:             http://www.find23.net
>>  >
>>  >
>>  >
>>  >
>>


-- 
Ken Krugler
Krugle, Inc.
+1 530-470-9200

Re: Problems with MapRed-

Posted by Mike Smith <mi...@gmail.com>.
I forgot to mention the namenode log file gives me thousands of these:

060129 155553 Zero targets found, forbidden1.size=2allowSameHostTargets=false
forbidden2.size()=0
060129 155553 Zero targets found, forbidden1.size=2allowSameHostTargets=false
forbidden2.size()=0

Thanks, Mike


On 1/29/06, Mike Smith <mi...@gmail.com> wrote:
>
> I do have the same problem and this problem is killing. I have tried all
> sort of comfiguration and tricks.
>
> I have 3 machines, all three are datanodes and 1 is jobtracker. It
> successfully fetches 300,000 pages, but when I try to fetch more than that
> by injecting more number of pages at the first cycle it always crashes at
> the end of the fetching reduce step:
>
> 060129 142220  reduce 95%
> 060129 142347  reduce 96%
> 060129 143401  reduce 100%
> Exception in thread "main" java.io.IOException: Job failed!
>         at org.apache.nutch.mapred.JobClient.runJob(JobClient.java :308)
>         at org.apache.nutch.fetcher.Fetcher.fetch(Fetcher.java:347)
>         at org.apache.nutch.fetcher.Fetcher.main(Fetcher.java:381)
>
>
>
>
> This has happened at one of the tasktrackers:
>
> 060129 172145 task_r_ca2dxi 0.8677622% reduce > reduce
> 060129 172146 task_r_ca2dxi 0.868171% reduce > reduce
> 060129 173149 Task task_r_ca2dxi timed out.  Killing.
> 060129 173149 Server connection on port 50050 from 164.67.195.26: exiting
> 060129 173149 task_r_ca2dxi Child Error
> java.io.IOException: Task process exit with nonzero status.
>         at org.apache.nutch.mapred.TaskRunner.runChild (TaskRunner.java
> :139)
>         at org.apache.nutch.mapred.TaskRunner.run(TaskRunner.java:92)
> 060129 173153 task_m_bikodi done; removing files.
>
>
> Any suggestion?
>
> Thanks, Mike
>
>
>
>
>
>
>
> On 1/29/06, Stefan Groschupf <sg...@media-style.com> wrote:
> >
> > Sounds like your tasktracker wasn't able to connect to your
> > jobtracker and more.
> > Are you sure the jobtracker still runs and the tasktracker can access
> > the jobtracker box still under same hostname?
> >
> > Am 28.01.2006 um 21:21 schrieb Rafit Izhak_Ratzin:
> >
> > > Hi,
> > >
> > > I ran the mapreduce starting with 10 URL into the sixth cycle where
> > > it fetched 400K pages and everything was fine.
> > >
> > > 060127 001055 TOTAL urls:       1877326
> > > 060127 001055 avg score:        1.099
> > > 060127 001055 max score:        1666.305
> > > 060127 001055 min score:        1.0
> > > 060127 001055 retry 0:  1865721
> > > 060127 001055 retry 1:  10887
> > > 060127 001055 retry 2:  621
> > > 060127 001055 retry 3:  92
> > > 060127 001055 retry 4:  4
> > > 060127 001055 retry 5:  1
> > > 060127 001055 status 1 (DB_unfetched):  1477634
> > > 060127 001055 status 2 (DB_fetched):    374736
> > > 060127 001055 status 3 (DB_gone):       24956
> > >
> > > Then I tried another scenario starting with 80K urls, and the first
> > > cycle was OK, but the second cycle where it supposed to fetch 800K
> > > failed after 100% reduce.
> > > I ran it with three machines 1 name node and 2 datanodes.
> > >
> > > One of my datanode has the next Exception:
> > > 060128 083726 task_r_alfaaq Child Error
> > > java.io.IOException : Task process exit with nonzero status.
> > >        at org.apache.nutch.mapred.TaskRunner.runChild
> > > (TaskRunner.java:139)
> > >        at org.apache.nutch.mapred.TaskRunner.run(TaskRunner.java:92)
> > > Which appeared more than once.
> > >
> > > The other Data Node had the next Exception:
> > > 060128 142626 Lost connection to JobTracker [server.name/i.i.i.i:
> > > 50020]. ex=java.lang.reflect.UndeclaredThrowableException  Retrying...
> > >
> > > Any idea?
> > >
> > > Thanks,
> > > Rafit
> > >
> > > _________________________________________________________________
> > > Express yourself instantly with MSN Messenger! Download today it's
> > > FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> > >
> > >
> >
> > ---------------------------------------------------------------
> > company:        http://www.media-style.com
> > forum:        http://www.text-mining.org
> > blog:             http://www.find23.net
> >
> >
> >
> >
>