[
https://issues.apache.org/jira/browse/HDFS-1115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12968685#action_12968685
]
Josef Niedermeier commented on HDFS-1115:
-----------------------------------------
the same issueon non virtual box with opensuse 11.2 and
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.1) (suse-67.1-i386)
OpenJDK Client VM (build 17.0-b16, mixed mode)
change of jre to downloaded from SUN 1.6.0_19 solved the issue
Looks like that some some class in OpenJDK not support operation used by Hadoop
> DFSClient unable to create new block
> ------------------------------------
>
> Key: HDFS-1115
> URL: https://issues.apache.org/jira/browse/HDFS-1115
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs client
> Affects Versions: 0.20.2
> Environment: OpenSuse 11.2 running as a Virtual Machine on Windows
> Vista
> Reporter: manas
>
> Here, input is a folder containing all .xml files from ./conf
> Then trying the command:
> ./bin/hadoop fs -copyFromLocal input input
> The following message is displayed:
> {noformat}
> INFO hdfs.DFSClient: Exception in createBlockOutputStream
> java.net.SocketException: Operation not supported
> INFO hdfs.DFSClient: Abandoning block blk_-1884214035513073759_1010
> INFO hdfs.DFSClient: Exception in createBlockOutputStream
> java.net.SocketException: Protocol not available
> INFO hdfs.DFSClient: Abandoning block blk_5533397873275401028_1010
> INFO hdfs.DFSClient: Exception in createBlockOutputStream
> java.net.SocketException: Protocol not available
> INFO hdfs.DFSClient: Abandoning block blk_-237603871573204731_1011
> INFO hdfs.DFSClient: Exception in createBlockOutputStream
> java.net.SocketException: Protocol not available
> INFO hdfs.DFSClient: Abandoning block blk_-8668593183126057334_1011
> WARN hdfs.DFSClient: DataStreamer Exception: java.io.IOException: Unable to
> create new block.
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:2845)
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2000(DFSClient.java:2102)
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2288)
> WARN hdfs.DFSClient: Error Recovery for block blk_-8668593183126057334_1011
> bad datanode[0] nodes == null
> WARN hdfs.DFSClient: Could not get block locations. Source file
> "/user/max/input/core-site.xml" - Aborting...
> copyFromLocal: Protocol not available
> ERROR hdfs.DFSClient: Exception closing file /user/max/input/core-site.xml :
> java.net.SocketException: Protocol not available
> java.net.SocketException: Protocol not available
> at sun.nio.ch.Net.getIntOption0(Native Method)
> at sun.nio.ch.Net.getIntOption(Net.java:178)
> at sun.nio.ch.SocketChannelImpl$1.getInt(SocketChannelImpl.java:419)
> at sun.nio.ch.SocketOptsImpl.getInt(SocketOptsImpl.java:60)
> at sun.nio.ch.SocketOptsImpl.sendBufferSize(SocketOptsImpl.java:156)
> at
> sun.nio.ch.SocketOptsImpl$IP$TCP.sendBufferSize(SocketOptsImpl.java:286)
> at sun.nio.ch.OptionAdaptor.getSendBufferSize(OptionAdaptor.java:129)
> at sun.nio.ch.SocketAdaptor.getSendBufferSize(SocketAdaptor.java:328)
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.createBlockOutputStream(DFSClient.java:2873)
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:2826)
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2000(DFSClient.java:2102)
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2288)
> INFO hdfs.DFSClient: Exception in createBlockOutputStream
> java.net.SocketException: Operation not supported
> INFO hdfs.DFSClient: Abandoning block blk_-1884214035513073759_1010
> INFO hdfs.DFSClient: Exception in createBlockOutputStream
> java.net.SocketException: Protocol not available
> INFO hdfs.DFSClient: Abandoning block blk_5533397873275401028_1010
> INFO hdfs.DFSClient: Exception in createBlockOutputStream
> java.net.SocketException: Protocol not available
> INFO hdfs.DFSClient: Abandoning block blk_-237603871573204731_1011
> INFO hdfs.DFSClient: Exception in createBlockOutputStream
> java.net.SocketException: Protocol not available
> INFO hdfs.DFSClient: Abandoning block blk_-8668593183126057334_1011
> WARN hdfs.DFSClient: DataStreamer Exception: java.io.IOException: Unable to
> create new block.
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:2845)
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2000(DFSClient.java:2102)
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2288)
> WARN hdfs.DFSClient: Error Recovery for block blk_-8668593183126057334_1011
> bad datanode[0] nodes == null
> WARN hdfs.DFSClient: Could not get block locations. Source file
> "/user/max/input/core-site.xml" - Aborting...
> copyFromLocal: Protocol not available
> ERROR hdfs.DFSClient: Exception closing file /user/max/input/core-site.xml :
> java.net.SocketException: Protocol not available
> java.net.SocketException: Protocol not available
> at sun.nio.ch.Net.getIntOption0(Native Method)
> at sun.nio.ch.Net.getIntOption(Net.java:178)
> at sun.nio.ch.SocketChannelImpl$1.getInt(SocketChannelImpl.java:419)
> at sun.nio.ch.SocketOptsImpl.getInt(SocketOptsImpl.java:60)
> at sun.nio.ch.SocketOptsImpl.sendBufferSize(SocketOptsImpl.java:156)
> at
> sun.nio.ch.SocketOptsImpl$IP$TCP.sendBufferSize(SocketOptsImpl.java:286)
> at sun.nio.ch.OptionAdaptor.getSendBufferSize(OptionAdaptor.java:129)
> at sun.nio.ch.SocketAdaptor.getSendBufferSize(SocketAdaptor.java:328)
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.createBlockOutputStream(DFSClient.java:2873)
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:2826)
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2000(DFSClient.java:2102)
> at
> org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2288)
> {noformat}
> However, only empty files are created on HDFS.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.