Created 03-01-2016 06:09 PM
I am trying to put one small file in newly created cluster and it gives me error
java.io.IOException: Unable to create new block. at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1284)
Detailed error is
[WARN ]: org.apache.hadoop.util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Exception in component tHDFSPut_1 java.net.ConnectException: Connection timed out: no further information [WARN ]: org.apache.hadoop.hdfs.DFSClient - DataStreamer Exception java.io.IOException: Unable to create new block. at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1284) at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:464) [WARN ]: org.apache.hadoop.hdfs.DFSClient - Could not get block locations. Source file "/tmp/swapnil/Info.txt" - Aborting... at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source) at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206) at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:531) at org.apache.hadoop.hdfs.DFSOutputStream.createSocketForPipeline(DFSOutputStream.java:1577) at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.createBlockOutputStream(DFSOutputStream.java:1318) at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1271) at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:464)
Created 03-01-2016 06:48 PM
@Swapnil Prabhu is your cluster up? Please check Ambari whether hdfs service is up. The other issue you may have is native library, search HCC for instructions to fix "unable to load native-hadoop library"
Created on 03-01-2016 06:57 PM - edited 08-19-2019 05:03 AM
Cluster absolutely up and running
Created 03-01-2016 07:16 PM
@Swapnil Prabhu please run HDFS service check and report results.