You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by 卖报的小行家 <85...@qq.com> on 2013/03/05 16:09:30 UTC
回复: Socket does not have a channel
Yes.It's from hadoop 2.0. I just now read the code 1.1.1.There are no such classes the log mentioned.Maybe you can read the code first.
------------------ 原始邮件 ------------------
发件人: "Subroto"<ss...@datameer.com>;
发送时间: 2013年3月5日(星期二) 晚上10:56
收件人: "user"<us...@hadoop.apache.org>;
主题: Re: Socket does not have a channel
Hi Julian,
This is from CDH4.1.2 and I think its based on Apache Hadoop 2.0.
Cheers,
Subroto Sanyal
On Mar 5, 2013, at 3:50 PM, 卖报的小行家 wrote:
Hi,
Which revision of hadoop?
and what's the situation to report the Exception?
BRs//Julian
------------------ Original ------------------
From: "Subroto"<ss...@datameer.com>;
Date: Tue, Mar 5, 2013 04:46 PM
To: "user"<us...@hadoop.apache.org>;
Subject: Socket does not have a channel
Hi
java.lang.IllegalStateException: Socket Socket[addr=/10.86.203.112,port=1004,localport=35170] does not have a channel
at com.google.common.base.Preconditions.checkState(Preconditions.java:172)
at org.apache.hadoop.net.SocketInputWrapper.getReadableByteChannel(SocketInputWrapper.java:83)
at org.apache.hadoop.hdfs.RemoteBlockReader2.newBlockReader(RemoteBlockReader2.java:432)
at org.apache.hadoop.hdfs.BlockReaderFactory.newBlockReader(BlockReaderFactory.java:82)
at org.apache.hadoop.hdfs.DFSInputStream.getBlockReader(DFSInputStream.java:832)
at org.apache.hadoop.hdfs.DFSInputStream.blockSeekTo(DFSInputStream.java:444)
While accessing the HDFS I keep getting the above mentioned error.
Setting the dfs.client.use.legacy.blockreader to true fixes the problem.
I would like to know what exactly is the problem? Is it a problem/bug in hadoop ?
Is there is JIRA ticket for this??
Cheers,
Subroto Sanyal
Re: 回复: Socket does not have a channel
Posted by Subroto <ss...@datameer.com>.
Hi Shashwat,
As already mentioned already in my mail setting dfs.client.use.legacy.blockreader to true fixes the problem.
This looks to be workaround or moreover disabling a feature.
Would like to know, what is the exact problem?
Cheers,
Subroto Sanyal
On Mar 5, 2013, at 6:33 PM, shashwat shriparv wrote:
> Try setting dfs.client.use.legacy.blockreader to true
>
> ∞
> Shashwat Shriparv
>
>
>
> On Tue, Mar 5, 2013 at 8:39 PM, 卖报的小行家 <85...@qq.com> wrote:
> Yes.It's from hadoop 2.0. I just now read the code 1.1.1.There are no such classes the log mentioned.Maybe you can read the code first.
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Subroto"<ss...@datameer.com>;
> 发送时间: 2013年3月5日(星期二) 晚上10:56
> 收件人: "user"<us...@hadoop.apache.org>;
> 主题: Re: Socket does not have a channel
>
> Hi Julian,
>
> This is from CDH4.1.2 and I think its based on Apache Hadoop 2.0.
>
> Cheers,
> Subroto Sanyal
> On Mar 5, 2013, at 3:50 PM, 卖报的小行家 wrote:
>
>> Hi,
>> Which revision of hadoop?
>> and what's the situation to report the Exception?
>> BRs//Julian
>>
>> ------------------ Original ------------------
>> From: "Subroto"<ss...@datameer.com>;
>> Date: Tue, Mar 5, 2013 04:46 PM
>> To: "user"<us...@hadoop.apache.org>;
>> Subject: Socket does not have a channel
>>
>> Hi
>>
>> java.lang.IllegalStateException: Socket Socket[addr=/10.86.203.112,port=1004,localport=35170] does not have a channel
>> at com.google.common.base.Preconditions.checkState(Preconditions.java:172)
>> at org.apache.hadoop.net.SocketInputWrapper.getReadableByteChannel(SocketInputWrapper.java:83)
>> at org.apache.hadoop.hdfs.RemoteBlockReader2.newBlockReader(RemoteBlockReader2.java:432)
>> at org.apache.hadoop.hdfs.BlockReaderFactory.newBlockReader(BlockReaderFactory.java:82)
>> at org.apache.hadoop.hdfs.DFSInputStream.getBlockReader(DFSInputStream.java:832)
>> at org.apache.hadoop.hdfs.DFSInputStream.blockSeekTo(DFSInputStream.java:444)
>>
>> While accessing the HDFS I keep getting the above mentioned error.
>> Setting the dfs.client.use.legacy.blockreader to true fixes the problem.
>> I would like to know what exactly is the problem? Is it a problem/bug in hadoop ?
>> Is there is JIRA ticket for this??
>>
>>
>> Cheers,
>> Subroto Sanyal
>
>
Re: 回复: Socket does not have a channel
Posted by Subroto <ss...@datameer.com>.
Hi Shashwat,
As already mentioned already in my mail setting dfs.client.use.legacy.blockreader to true fixes the problem.
This looks to be workaround or moreover disabling a feature.
Would like to know, what is the exact problem?
Cheers,
Subroto Sanyal
On Mar 5, 2013, at 6:33 PM, shashwat shriparv wrote:
> Try setting dfs.client.use.legacy.blockreader to true
>
> ∞
> Shashwat Shriparv
>
>
>
> On Tue, Mar 5, 2013 at 8:39 PM, 卖报的小行家 <85...@qq.com> wrote:
> Yes.It's from hadoop 2.0. I just now read the code 1.1.1.There are no such classes the log mentioned.Maybe you can read the code first.
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Subroto"<ss...@datameer.com>;
> 发送时间: 2013年3月5日(星期二) 晚上10:56
> 收件人: "user"<us...@hadoop.apache.org>;
> 主题: Re: Socket does not have a channel
>
> Hi Julian,
>
> This is from CDH4.1.2 and I think its based on Apache Hadoop 2.0.
>
> Cheers,
> Subroto Sanyal
> On Mar 5, 2013, at 3:50 PM, 卖报的小行家 wrote:
>
>> Hi,
>> Which revision of hadoop?
>> and what's the situation to report the Exception?
>> BRs//Julian
>>
>> ------------------ Original ------------------
>> From: "Subroto"<ss...@datameer.com>;
>> Date: Tue, Mar 5, 2013 04:46 PM
>> To: "user"<us...@hadoop.apache.org>;
>> Subject: Socket does not have a channel
>>
>> Hi
>>
>> java.lang.IllegalStateException: Socket Socket[addr=/10.86.203.112,port=1004,localport=35170] does not have a channel
>> at com.google.common.base.Preconditions.checkState(Preconditions.java:172)
>> at org.apache.hadoop.net.SocketInputWrapper.getReadableByteChannel(SocketInputWrapper.java:83)
>> at org.apache.hadoop.hdfs.RemoteBlockReader2.newBlockReader(RemoteBlockReader2.java:432)
>> at org.apache.hadoop.hdfs.BlockReaderFactory.newBlockReader(BlockReaderFactory.java:82)
>> at org.apache.hadoop.hdfs.DFSInputStream.getBlockReader(DFSInputStream.java:832)
>> at org.apache.hadoop.hdfs.DFSInputStream.blockSeekTo(DFSInputStream.java:444)
>>
>> While accessing the HDFS I keep getting the above mentioned error.
>> Setting the dfs.client.use.legacy.blockreader to true fixes the problem.
>> I would like to know what exactly is the problem? Is it a problem/bug in hadoop ?
>> Is there is JIRA ticket for this??
>>
>>
>> Cheers,
>> Subroto Sanyal
>
>
Re: 回复: Socket does not have a channel
Posted by Subroto <ss...@datameer.com>.
Hi Shashwat,
As already mentioned already in my mail setting dfs.client.use.legacy.blockreader to true fixes the problem.
This looks to be workaround or moreover disabling a feature.
Would like to know, what is the exact problem?
Cheers,
Subroto Sanyal
On Mar 5, 2013, at 6:33 PM, shashwat shriparv wrote:
> Try setting dfs.client.use.legacy.blockreader to true
>
> ∞
> Shashwat Shriparv
>
>
>
> On Tue, Mar 5, 2013 at 8:39 PM, 卖报的小行家 <85...@qq.com> wrote:
> Yes.It's from hadoop 2.0. I just now read the code 1.1.1.There are no such classes the log mentioned.Maybe you can read the code first.
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Subroto"<ss...@datameer.com>;
> 发送时间: 2013年3月5日(星期二) 晚上10:56
> 收件人: "user"<us...@hadoop.apache.org>;
> 主题: Re: Socket does not have a channel
>
> Hi Julian,
>
> This is from CDH4.1.2 and I think its based on Apache Hadoop 2.0.
>
> Cheers,
> Subroto Sanyal
> On Mar 5, 2013, at 3:50 PM, 卖报的小行家 wrote:
>
>> Hi,
>> Which revision of hadoop?
>> and what's the situation to report the Exception?
>> BRs//Julian
>>
>> ------------------ Original ------------------
>> From: "Subroto"<ss...@datameer.com>;
>> Date: Tue, Mar 5, 2013 04:46 PM
>> To: "user"<us...@hadoop.apache.org>;
>> Subject: Socket does not have a channel
>>
>> Hi
>>
>> java.lang.IllegalStateException: Socket Socket[addr=/10.86.203.112,port=1004,localport=35170] does not have a channel
>> at com.google.common.base.Preconditions.checkState(Preconditions.java:172)
>> at org.apache.hadoop.net.SocketInputWrapper.getReadableByteChannel(SocketInputWrapper.java:83)
>> at org.apache.hadoop.hdfs.RemoteBlockReader2.newBlockReader(RemoteBlockReader2.java:432)
>> at org.apache.hadoop.hdfs.BlockReaderFactory.newBlockReader(BlockReaderFactory.java:82)
>> at org.apache.hadoop.hdfs.DFSInputStream.getBlockReader(DFSInputStream.java:832)
>> at org.apache.hadoop.hdfs.DFSInputStream.blockSeekTo(DFSInputStream.java:444)
>>
>> While accessing the HDFS I keep getting the above mentioned error.
>> Setting the dfs.client.use.legacy.blockreader to true fixes the problem.
>> I would like to know what exactly is the problem? Is it a problem/bug in hadoop ?
>> Is there is JIRA ticket for this??
>>
>>
>> Cheers,
>> Subroto Sanyal
>
>
Re: 回复: Socket does not have a channel
Posted by Subroto <ss...@datameer.com>.
Hi Shashwat,
As already mentioned already in my mail setting dfs.client.use.legacy.blockreader to true fixes the problem.
This looks to be workaround or moreover disabling a feature.
Would like to know, what is the exact problem?
Cheers,
Subroto Sanyal
On Mar 5, 2013, at 6:33 PM, shashwat shriparv wrote:
> Try setting dfs.client.use.legacy.blockreader to true
>
> ∞
> Shashwat Shriparv
>
>
>
> On Tue, Mar 5, 2013 at 8:39 PM, 卖报的小行家 <85...@qq.com> wrote:
> Yes.It's from hadoop 2.0. I just now read the code 1.1.1.There are no such classes the log mentioned.Maybe you can read the code first.
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Subroto"<ss...@datameer.com>;
> 发送时间: 2013年3月5日(星期二) 晚上10:56
> 收件人: "user"<us...@hadoop.apache.org>;
> 主题: Re: Socket does not have a channel
>
> Hi Julian,
>
> This is from CDH4.1.2 and I think its based on Apache Hadoop 2.0.
>
> Cheers,
> Subroto Sanyal
> On Mar 5, 2013, at 3:50 PM, 卖报的小行家 wrote:
>
>> Hi,
>> Which revision of hadoop?
>> and what's the situation to report the Exception?
>> BRs//Julian
>>
>> ------------------ Original ------------------
>> From: "Subroto"<ss...@datameer.com>;
>> Date: Tue, Mar 5, 2013 04:46 PM
>> To: "user"<us...@hadoop.apache.org>;
>> Subject: Socket does not have a channel
>>
>> Hi
>>
>> java.lang.IllegalStateException: Socket Socket[addr=/10.86.203.112,port=1004,localport=35170] does not have a channel
>> at com.google.common.base.Preconditions.checkState(Preconditions.java:172)
>> at org.apache.hadoop.net.SocketInputWrapper.getReadableByteChannel(SocketInputWrapper.java:83)
>> at org.apache.hadoop.hdfs.RemoteBlockReader2.newBlockReader(RemoteBlockReader2.java:432)
>> at org.apache.hadoop.hdfs.BlockReaderFactory.newBlockReader(BlockReaderFactory.java:82)
>> at org.apache.hadoop.hdfs.DFSInputStream.getBlockReader(DFSInputStream.java:832)
>> at org.apache.hadoop.hdfs.DFSInputStream.blockSeekTo(DFSInputStream.java:444)
>>
>> While accessing the HDFS I keep getting the above mentioned error.
>> Setting the dfs.client.use.legacy.blockreader to true fixes the problem.
>> I would like to know what exactly is the problem? Is it a problem/bug in hadoop ?
>> Is there is JIRA ticket for this??
>>
>>
>> Cheers,
>> Subroto Sanyal
>
>
Re: 回复: Socket does not have a channel
Posted by shashwat shriparv <dw...@gmail.com>.
Try setting dfs.client.use.legacy.blockreader to true
∞
Shashwat Shriparv
On Tue, Mar 5, 2013 at 8:39 PM, 卖报的小行家 <85...@qq.com> wrote:
> Yes.It's from hadoop 2.0. I just now read the code 1.1.1.There are no such
> classes the log mentioned.Maybe you can read the code first.
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Subroto"<ss...@datameer.com>;
> *发送时间:* 2013年3月5日(星期二) 晚上10:56
> *收件人:* "user"<us...@hadoop.apache.org>; **
> *主题:* Re: Socket does not have a channel
>
> Hi Julian,
>
> This is from CDH4.1.2 and I think its based on Apache Hadoop 2.0.
>
> Cheers,
> Subroto Sanyal
> On Mar 5, 2013, at 3:50 PM, 卖报的小行家 wrote:
>
> Hi,
> Which revision of hadoop?
> and what's the situation to report the Exception?
> BRs//Julian
>
> ------------------ Original ------------------
> *From: * "Subroto"<ss...@datameer.com>;
> *Date: * Tue, Mar 5, 2013 04:46 PM
> *To: * "user"<us...@hadoop.apache.org>; **
> *Subject: * Socket does not have a channel
>
> Hi
>
> java.lang.IllegalStateException: Socket Socket[addr=/10.86.203.112,port=1004,localport=35170]
> does not have a channel
> at
> com.google.common.base.Preconditions.checkState(Preconditions.java:172)
> at
> org.apache.hadoop.net.SocketInputWrapper.getReadableByteChannel(SocketInputWrapper.java:83)
> at
> org.apache.hadoop.hdfs.RemoteBlockReader2.newBlockReader(RemoteBlockReader2.java:432)
> at
> org.apache.hadoop.hdfs.BlockReaderFactory.newBlockReader(BlockReaderFactory.java:82)
> at
> org.apache.hadoop.hdfs.DFSInputStream.getBlockReader(DFSInputStream.java:832)
> at
> org.apache.hadoop.hdfs.DFSInputStream.blockSeekTo(DFSInputStream.java:444)
>
> While accessing the HDFS I keep getting the above mentioned error.
> Setting the dfs.client.use.legacy.blockreader to true fixes the problem.
> I would like to know what exactly is the problem? Is it a problem/bug in
> hadoop ?
> Is there is JIRA ticket for this??
>
>
> Cheers,
> Subroto Sanyal
>
>
>
Re: 回复: Socket does not have a channel
Posted by shashwat shriparv <dw...@gmail.com>.
Try setting dfs.client.use.legacy.blockreader to true
∞
Shashwat Shriparv
On Tue, Mar 5, 2013 at 8:39 PM, 卖报的小行家 <85...@qq.com> wrote:
> Yes.It's from hadoop 2.0. I just now read the code 1.1.1.There are no such
> classes the log mentioned.Maybe you can read the code first.
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Subroto"<ss...@datameer.com>;
> *发送时间:* 2013年3月5日(星期二) 晚上10:56
> *收件人:* "user"<us...@hadoop.apache.org>; **
> *主题:* Re: Socket does not have a channel
>
> Hi Julian,
>
> This is from CDH4.1.2 and I think its based on Apache Hadoop 2.0.
>
> Cheers,
> Subroto Sanyal
> On Mar 5, 2013, at 3:50 PM, 卖报的小行家 wrote:
>
> Hi,
> Which revision of hadoop?
> and what's the situation to report the Exception?
> BRs//Julian
>
> ------------------ Original ------------------
> *From: * "Subroto"<ss...@datameer.com>;
> *Date: * Tue, Mar 5, 2013 04:46 PM
> *To: * "user"<us...@hadoop.apache.org>; **
> *Subject: * Socket does not have a channel
>
> Hi
>
> java.lang.IllegalStateException: Socket Socket[addr=/10.86.203.112,port=1004,localport=35170]
> does not have a channel
> at
> com.google.common.base.Preconditions.checkState(Preconditions.java:172)
> at
> org.apache.hadoop.net.SocketInputWrapper.getReadableByteChannel(SocketInputWrapper.java:83)
> at
> org.apache.hadoop.hdfs.RemoteBlockReader2.newBlockReader(RemoteBlockReader2.java:432)
> at
> org.apache.hadoop.hdfs.BlockReaderFactory.newBlockReader(BlockReaderFactory.java:82)
> at
> org.apache.hadoop.hdfs.DFSInputStream.getBlockReader(DFSInputStream.java:832)
> at
> org.apache.hadoop.hdfs.DFSInputStream.blockSeekTo(DFSInputStream.java:444)
>
> While accessing the HDFS I keep getting the above mentioned error.
> Setting the dfs.client.use.legacy.blockreader to true fixes the problem.
> I would like to know what exactly is the problem? Is it a problem/bug in
> hadoop ?
> Is there is JIRA ticket for this??
>
>
> Cheers,
> Subroto Sanyal
>
>
>
Re: 回复: Socket does not have a channel
Posted by shashwat shriparv <dw...@gmail.com>.
Try setting dfs.client.use.legacy.blockreader to true
∞
Shashwat Shriparv
On Tue, Mar 5, 2013 at 8:39 PM, 卖报的小行家 <85...@qq.com> wrote:
> Yes.It's from hadoop 2.0. I just now read the code 1.1.1.There are no such
> classes the log mentioned.Maybe you can read the code first.
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Subroto"<ss...@datameer.com>;
> *发送时间:* 2013年3月5日(星期二) 晚上10:56
> *收件人:* "user"<us...@hadoop.apache.org>; **
> *主题:* Re: Socket does not have a channel
>
> Hi Julian,
>
> This is from CDH4.1.2 and I think its based on Apache Hadoop 2.0.
>
> Cheers,
> Subroto Sanyal
> On Mar 5, 2013, at 3:50 PM, 卖报的小行家 wrote:
>
> Hi,
> Which revision of hadoop?
> and what's the situation to report the Exception?
> BRs//Julian
>
> ------------------ Original ------------------
> *From: * "Subroto"<ss...@datameer.com>;
> *Date: * Tue, Mar 5, 2013 04:46 PM
> *To: * "user"<us...@hadoop.apache.org>; **
> *Subject: * Socket does not have a channel
>
> Hi
>
> java.lang.IllegalStateException: Socket Socket[addr=/10.86.203.112,port=1004,localport=35170]
> does not have a channel
> at
> com.google.common.base.Preconditions.checkState(Preconditions.java:172)
> at
> org.apache.hadoop.net.SocketInputWrapper.getReadableByteChannel(SocketInputWrapper.java:83)
> at
> org.apache.hadoop.hdfs.RemoteBlockReader2.newBlockReader(RemoteBlockReader2.java:432)
> at
> org.apache.hadoop.hdfs.BlockReaderFactory.newBlockReader(BlockReaderFactory.java:82)
> at
> org.apache.hadoop.hdfs.DFSInputStream.getBlockReader(DFSInputStream.java:832)
> at
> org.apache.hadoop.hdfs.DFSInputStream.blockSeekTo(DFSInputStream.java:444)
>
> While accessing the HDFS I keep getting the above mentioned error.
> Setting the dfs.client.use.legacy.blockreader to true fixes the problem.
> I would like to know what exactly is the problem? Is it a problem/bug in
> hadoop ?
> Is there is JIRA ticket for this??
>
>
> Cheers,
> Subroto Sanyal
>
>
>
Re: 回复: Socket does not have a channel
Posted by shashwat shriparv <dw...@gmail.com>.
Try setting dfs.client.use.legacy.blockreader to true
∞
Shashwat Shriparv
On Tue, Mar 5, 2013 at 8:39 PM, 卖报的小行家 <85...@qq.com> wrote:
> Yes.It's from hadoop 2.0. I just now read the code 1.1.1.There are no such
> classes the log mentioned.Maybe you can read the code first.
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Subroto"<ss...@datameer.com>;
> *发送时间:* 2013年3月5日(星期二) 晚上10:56
> *收件人:* "user"<us...@hadoop.apache.org>; **
> *主题:* Re: Socket does not have a channel
>
> Hi Julian,
>
> This is from CDH4.1.2 and I think its based on Apache Hadoop 2.0.
>
> Cheers,
> Subroto Sanyal
> On Mar 5, 2013, at 3:50 PM, 卖报的小行家 wrote:
>
> Hi,
> Which revision of hadoop?
> and what's the situation to report the Exception?
> BRs//Julian
>
> ------------------ Original ------------------
> *From: * "Subroto"<ss...@datameer.com>;
> *Date: * Tue, Mar 5, 2013 04:46 PM
> *To: * "user"<us...@hadoop.apache.org>; **
> *Subject: * Socket does not have a channel
>
> Hi
>
> java.lang.IllegalStateException: Socket Socket[addr=/10.86.203.112,port=1004,localport=35170]
> does not have a channel
> at
> com.google.common.base.Preconditions.checkState(Preconditions.java:172)
> at
> org.apache.hadoop.net.SocketInputWrapper.getReadableByteChannel(SocketInputWrapper.java:83)
> at
> org.apache.hadoop.hdfs.RemoteBlockReader2.newBlockReader(RemoteBlockReader2.java:432)
> at
> org.apache.hadoop.hdfs.BlockReaderFactory.newBlockReader(BlockReaderFactory.java:82)
> at
> org.apache.hadoop.hdfs.DFSInputStream.getBlockReader(DFSInputStream.java:832)
> at
> org.apache.hadoop.hdfs.DFSInputStream.blockSeekTo(DFSInputStream.java:444)
>
> While accessing the HDFS I keep getting the above mentioned error.
> Setting the dfs.client.use.legacy.blockreader to true fixes the problem.
> I would like to know what exactly is the problem? Is it a problem/bug in
> hadoop ?
> Is there is JIRA ticket for this??
>
>
> Cheers,
> Subroto Sanyal
>
>
>