Home Forums HDFS Getting error while copying the file from linux Local file system to HDFS

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Robert Molina 3 months, 2 weeks ago.

  • Creator
    Topic
  • #56979

    Prashant Gupta
    Participant

    Its single node cluster while i’m starting i’m not getting any issue , I checked the logs also for all daemons.

    But while i’m copying the data from my local linux file system to HDFS file system its throwing an exception saying ; org.apache.hadoop.hdfs.DFSClient: DataStreamer Exception: java.lang.IllegalArgumentException: Does not contain a valid host:port authority: 0:0:0:0:0:0:0:1:50010

    Error log ;

    user1@centurydesktop:~/prashant$ hadoop fs -put /home/user1/prashant/sampleFile.txt /user/user1/folder1/sampleFile.txt
    14/07/09 15:29:24 WARN hdfs.DFSClient: DataStreamer Exception: java.lang.IllegalArgumentException: Does not contain a valid host:port authority: 0:0:0:0:0:0:0:1:50010
    at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:164)
    at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:130)
    at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.createBlockOutputStream(DFSClient.java:3629)
    at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:3588)
    at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2600(DFSClient.java:2783)
    at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:3023)

    14/07/09 15:29:24 WARN hdfs.DFSClient: Error Recovery for blk_4007716398178064379_4679 bad datanode[0] nodes == null
    14/07/09 15:29:24 WARN hdfs.DFSClient: Could not get block locations. Source file “/user/user1/folder1/sampleFile.txt” – Aborting…
    put: Could not get block locations. Source file “/user/user1/folder1/sampleFile.txt” – Aborting…
    14/07/09 15:29:24 ERROR hdfs.DFSClient: Failed to close file /user/user1/folder1/sampleFile.txt
    java.io.IOException: Could not get block locations. Source file “/user/user1/folder1/sampleFile.txt” – Aborting…
    at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.processDatanodeError(DFSClient.java:3270)
    at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2200(DFSClient.java:2783)
    at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2987)

    Thanks in advance.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #56983

    Robert Molina
    Moderator

    Hi Prashant,
    It looks like you may have your configs in correct. How did you install HDP, manual or ambari? Does the namenode webui show the datanodes as registered?

    Regards,
    Robert

    Collapse
Viewing 1 replies (of 1 total)