DFSClient unable to create new block. -------------------------------------
Key: HDFS-1116 URL: https://issues.apache.org/jira/browse/HDFS-1116 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.