You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Piotr Kozikowski <pi...@rapleaf.com> on 2008/08/07 21:52:23 UTC
java.io.IOException: Could not get block locations. Aborting...
Hi there:
We would like to know what are the most likely causes of this sort of
error:
Exception closing
file /data1/hdfs/tmp/person_url_pipe_59984_3405334/_temporary/_task_200807311534_0055_m_000022_0/part-00022
java.io.IOException: Could not get block locations. Aborting...
at org.apache.hadoop.dfs.DFSClient$DFSOutputStream.processDatanodeError(DFSClient.java:2080)
at org.apache.hadoop.dfs.DFSClient$DFSOutputStream.access$1300(DFSClient.java:1702)
at org.apache.hadoop.dfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:1818)
Our map-reduce job does not fail completely but over 50% of the map tasks fail with this same error.
We recently migrated our cluster from 0.16.4 to 0.17.1, previously we didn't have this problem using the same input data in a similar map-reduce job
Thank you,
Piotr
Re: java.io.IOException: Could not get block locations. Aborting...
Posted by Piotr Kozikowski <pi...@rapleaf.com>.
Hi again,
The "Could not get block locations" exception was gone after a Hadoop
restart, but further down the road our job failed again. I checked the
logs for "discarding calls" and found a bunch of them, plus the namenode
appeared to have a load spike at that time, so it seems it is getting
overloaded. Do you know how can we prevent this? Currently the namenode
machine is not running anything but the namenode and the secondary
namenode, and the cluster only has 16 machines.
Thank you
Piotr
On Fri, 2008-08-08 at 17:31 -0700, Dhruba Borthakur wrote:
> It is possible that your namenode is overloaded and is not able to
> respond to RPC requests from clients. Please check the namenode logs
> to see if you see lines of the form "discarding calls...".
>
> dhrua
>
> On Fri, Aug 8, 2008 at 3:41 AM, Alexander Aristov
> <al...@gmail.com> wrote:
> > I come across the same issue and also with hadoop 0.17.1
> >
> > would be interesting if someone say the cause of the issue.
> >
> > Alex
> >
> > 2008/8/8 Steve Loughran <st...@apache.org>
> >
> >> Piotr Kozikowski wrote:
> >>
> >>> Hi there:
> >>>
> >>> We would like to know what are the most likely causes of this sort of
> >>> error:
> >>>
> >>> Exception closing
> >>> file
> >>> /data1/hdfs/tmp/person_url_pipe_59984_3405334/_temporary/_task_200807311534_0055_m_000022_0/part-00022
> >>> java.io.IOException: Could not get block locations. Aborting...
> >>> at
> >>> org.apache.hadoop.dfs.DFSClient$DFSOutputStream.processDatanodeError(DFSClient.java:2080)
> >>> at
> >>> org.apache.hadoop.dfs.DFSClient$DFSOutputStream.access$1300(DFSClient.java:1702)
> >>> at
> >>> org.apache.hadoop.dfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:1818)
> >>>
> >>> Our map-reduce job does not fail completely but over 50% of the map tasks
> >>> fail with this same error.
> >>> We recently migrated our cluster from 0.16.4 to 0.17.1, previously we
> >>> didn't have this problem using the same input data in a similar map-reduce
> >>> job
> >>>
> >>> Thank you,
> >>>
> >>> Piotr
> >>>
> >>>
> >> When I see this, its because the filesystem isnt completely up: there are
> >> no locations for a specific file, meaning the client isn't getting back the
> >> names of any datanodes holding the data from the name nodes.
> >>
> >> I've got a patch in JIRA that prints out the name of the file in question,
> >> as that could be useful.
> >>
> >
> >
> >
> > --
> > Best Regards
> > Alexander Aristov
> >
Re: java.io.IOException: Could not get block locations. Aborting...
Posted by Steve Loughran <st...@apache.org>.
Koji Noguchi wrote:
> If restarting the entire dfs helped, then you might be hitting
> http://issues.apache.org/jira/browse/HADOOP-3633
>
> When we were running 0.17.1, I had to grep for OutOfMemory on the
> datanode ".out" files at least everyday and restart those zombie
> datanodes.
>
> Once datanode gets to this state, as Konstantin mentioned in the Jira,
>
> " it appears to happily sending heartbeats, but in fact cannot
> do any data processing because the server thread is dead."
>
> Koji
>
My branch of the hadoop codebase includes the #of live nodes in the
cluster when encountering problems replicating, so identifying the
obvious problem (though not the root cause for there being 0 live data
nodes)
WARN hdfs.DFSClient : DataStreamer Exception:
org.apache.hadoop.ipc.RemoteException: java.io.IOException: File
/test-filename could only be replicated to 0 nodes, instead of 1. (
there are 0 live data nodes in the cluster)
I could supply a patch for this if people want it in the released
product. I think its useful :)
RE: java.io.IOException: Could not get block locations. Aborting...
Posted by Koji Noguchi <kn...@yahoo-inc.com>.
If restarting the entire dfs helped, then you might be hitting
http://issues.apache.org/jira/browse/HADOOP-3633
When we were running 0.17.1, I had to grep for OutOfMemory on the
datanode ".out" files at least everyday and restart those zombie
datanodes.
Once datanode gets to this state, as Konstantin mentioned in the Jira,
" it appears to happily sending heartbeats, but in fact cannot
do any data processing because the server thread is dead."
Koji
-----Original Message-----
From: Piotr Kozikowski [mailto:piotr@rapleaf.com]
Sent: Friday, August 08, 2008 5:42 PM
To: core-user@hadoop.apache.org
Subject: Re: java.io.IOException: Could not get block locations.
Aborting...
Thank you for the reply. Apparently whatever it was is now gone after a
hadoop restart, but I'll keep that in mind should it happen again.
Piotr
On Fri, 2008-08-08 at 17:31 -0700, Dhruba Borthakur wrote:
> It is possible that your namenode is overloaded and is not able to
> respond to RPC requests from clients. Please check the namenode logs
> to see if you see lines of the form "discarding calls...".
>
> dhrua
>
> On Fri, Aug 8, 2008 at 3:41 AM, Alexander Aristov
> <al...@gmail.com> wrote:
> > I come across the same issue and also with hadoop 0.17.1
> >
> > would be interesting if someone say the cause of the issue.
> >
> > Alex
> >
> > 2008/8/8 Steve Loughran <st...@apache.org>
> >
> >> Piotr Kozikowski wrote:
> >>
> >>> Hi there:
> >>>
> >>> We would like to know what are the most likely causes of this sort
of
> >>> error:
> >>>
> >>> Exception closing
> >>> file
> >>>
/data1/hdfs/tmp/person_url_pipe_59984_3405334/_temporary/_task_200807311
534_0055_m_000022_0/part-00022
> >>> java.io.IOException: Could not get block locations. Aborting...
> >>> at
> >>>
org.apache.hadoop.dfs.DFSClient$DFSOutputStream.processDatanodeError(DFS
Client.java:2080)
> >>> at
> >>>
org.apache.hadoop.dfs.DFSClient$DFSOutputStream.access$1300(DFSClient.ja
va:1702)
> >>> at
> >>>
org.apache.hadoop.dfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClie
nt.java:1818)
> >>>
> >>> Our map-reduce job does not fail completely but over 50% of the
map tasks
> >>> fail with this same error.
> >>> We recently migrated our cluster from 0.16.4 to 0.17.1, previously
we
> >>> didn't have this problem using the same input data in a similar
map-reduce
> >>> job
> >>>
> >>> Thank you,
> >>>
> >>> Piotr
> >>>
> >>>
> >> When I see this, its because the filesystem isnt completely up:
there are
> >> no locations for a specific file, meaning the client isn't getting
back the
> >> names of any datanodes holding the data from the name nodes.
> >>
> >> I've got a patch in JIRA that prints out the name of the file in
question,
> >> as that could be useful.
> >>
> >
> >
> >
> > --
> > Best Regards
> > Alexander Aristov
> >
Re: java.io.IOException: Could not get block locations. Aborting...
Posted by Piotr Kozikowski <pi...@rapleaf.com>.
Thank you for the reply. Apparently whatever it was is now gone after a
hadoop restart, but I'll keep that in mind should it happen again.
Piotr
On Fri, 2008-08-08 at 17:31 -0700, Dhruba Borthakur wrote:
> It is possible that your namenode is overloaded and is not able to
> respond to RPC requests from clients. Please check the namenode logs
> to see if you see lines of the form "discarding calls...".
>
> dhrua
>
> On Fri, Aug 8, 2008 at 3:41 AM, Alexander Aristov
> <al...@gmail.com> wrote:
> > I come across the same issue and also with hadoop 0.17.1
> >
> > would be interesting if someone say the cause of the issue.
> >
> > Alex
> >
> > 2008/8/8 Steve Loughran <st...@apache.org>
> >
> >> Piotr Kozikowski wrote:
> >>
> >>> Hi there:
> >>>
> >>> We would like to know what are the most likely causes of this sort of
> >>> error:
> >>>
> >>> Exception closing
> >>> file
> >>> /data1/hdfs/tmp/person_url_pipe_59984_3405334/_temporary/_task_200807311534_0055_m_000022_0/part-00022
> >>> java.io.IOException: Could not get block locations. Aborting...
> >>> at
> >>> org.apache.hadoop.dfs.DFSClient$DFSOutputStream.processDatanodeError(DFSClient.java:2080)
> >>> at
> >>> org.apache.hadoop.dfs.DFSClient$DFSOutputStream.access$1300(DFSClient.java:1702)
> >>> at
> >>> org.apache.hadoop.dfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:1818)
> >>>
> >>> Our map-reduce job does not fail completely but over 50% of the map tasks
> >>> fail with this same error.
> >>> We recently migrated our cluster from 0.16.4 to 0.17.1, previously we
> >>> didn't have this problem using the same input data in a similar map-reduce
> >>> job
> >>>
> >>> Thank you,
> >>>
> >>> Piotr
> >>>
> >>>
> >> When I see this, its because the filesystem isnt completely up: there are
> >> no locations for a specific file, meaning the client isn't getting back the
> >> names of any datanodes holding the data from the name nodes.
> >>
> >> I've got a patch in JIRA that prints out the name of the file in question,
> >> as that could be useful.
> >>
> >
> >
> >
> > --
> > Best Regards
> > Alexander Aristov
> >
Re: java.io.IOException: Could not get block locations. Aborting...
Posted by Dhruba Borthakur <dh...@gmail.com>.
It is possible that your namenode is overloaded and is not able to
respond to RPC requests from clients. Please check the namenode logs
to see if you see lines of the form "discarding calls...".
dhrua
On Fri, Aug 8, 2008 at 3:41 AM, Alexander Aristov
<al...@gmail.com> wrote:
> I come across the same issue and also with hadoop 0.17.1
>
> would be interesting if someone say the cause of the issue.
>
> Alex
>
> 2008/8/8 Steve Loughran <st...@apache.org>
>
>> Piotr Kozikowski wrote:
>>
>>> Hi there:
>>>
>>> We would like to know what are the most likely causes of this sort of
>>> error:
>>>
>>> Exception closing
>>> file
>>> /data1/hdfs/tmp/person_url_pipe_59984_3405334/_temporary/_task_200807311534_0055_m_000022_0/part-00022
>>> java.io.IOException: Could not get block locations. Aborting...
>>> at
>>> org.apache.hadoop.dfs.DFSClient$DFSOutputStream.processDatanodeError(DFSClient.java:2080)
>>> at
>>> org.apache.hadoop.dfs.DFSClient$DFSOutputStream.access$1300(DFSClient.java:1702)
>>> at
>>> org.apache.hadoop.dfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:1818)
>>>
>>> Our map-reduce job does not fail completely but over 50% of the map tasks
>>> fail with this same error.
>>> We recently migrated our cluster from 0.16.4 to 0.17.1, previously we
>>> didn't have this problem using the same input data in a similar map-reduce
>>> job
>>>
>>> Thank you,
>>>
>>> Piotr
>>>
>>>
>> When I see this, its because the filesystem isnt completely up: there are
>> no locations for a specific file, meaning the client isn't getting back the
>> names of any datanodes holding the data from the name nodes.
>>
>> I've got a patch in JIRA that prints out the name of the file in question,
>> as that could be useful.
>>
>
>
>
> --
> Best Regards
> Alexander Aristov
>
Re: java.io.IOException: Could not get block locations. Aborting...
Posted by Alexander Aristov <al...@gmail.com>.
I come across the same issue and also with hadoop 0.17.1
would be interesting if someone say the cause of the issue.
Alex
2008/8/8 Steve Loughran <st...@apache.org>
> Piotr Kozikowski wrote:
>
>> Hi there:
>>
>> We would like to know what are the most likely causes of this sort of
>> error:
>>
>> Exception closing
>> file
>> /data1/hdfs/tmp/person_url_pipe_59984_3405334/_temporary/_task_200807311534_0055_m_000022_0/part-00022
>> java.io.IOException: Could not get block locations. Aborting...
>> at
>> org.apache.hadoop.dfs.DFSClient$DFSOutputStream.processDatanodeError(DFSClient.java:2080)
>> at
>> org.apache.hadoop.dfs.DFSClient$DFSOutputStream.access$1300(DFSClient.java:1702)
>> at
>> org.apache.hadoop.dfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:1818)
>>
>> Our map-reduce job does not fail completely but over 50% of the map tasks
>> fail with this same error.
>> We recently migrated our cluster from 0.16.4 to 0.17.1, previously we
>> didn't have this problem using the same input data in a similar map-reduce
>> job
>>
>> Thank you,
>>
>> Piotr
>>
>>
> When I see this, its because the filesystem isnt completely up: there are
> no locations for a specific file, meaning the client isn't getting back the
> names of any datanodes holding the data from the name nodes.
>
> I've got a patch in JIRA that prints out the name of the file in question,
> as that could be useful.
>
--
Best Regards
Alexander Aristov
Re: java.io.IOException: Could not get block locations. Aborting...
Posted by Steve Loughran <st...@apache.org>.
Piotr Kozikowski wrote:
> Hi there:
>
> We would like to know what are the most likely causes of this sort of
> error:
>
> Exception closing
> file /data1/hdfs/tmp/person_url_pipe_59984_3405334/_temporary/_task_200807311534_0055_m_000022_0/part-00022
> java.io.IOException: Could not get block locations. Aborting...
> at org.apache.hadoop.dfs.DFSClient$DFSOutputStream.processDatanodeError(DFSClient.java:2080)
> at org.apache.hadoop.dfs.DFSClient$DFSOutputStream.access$1300(DFSClient.java:1702)
> at org.apache.hadoop.dfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:1818)
>
> Our map-reduce job does not fail completely but over 50% of the map tasks fail with this same error.
>
> We recently migrated our cluster from 0.16.4 to 0.17.1, previously we didn't have this problem using the same input data in a similar map-reduce job
>
> Thank you,
>
> Piotr
>
When I see this, its because the filesystem isnt completely up: there
are no locations for a specific file, meaning the client isn't getting
back the names of any datanodes holding the data from the name nodes.
I've got a patch in JIRA that prints out the name of the file in
question, as that could be useful.