The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

HDFS Forum

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

  • #56979
    Prashant
    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.

  • Author
    Replies
  • #56983
    Robert Molina
    Keymaster

    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

The forum ‘HDFS’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.