title: Hadoop fs -put has DataStreamer Exception java.nio.channels.UnresolvedAddressException
body: <p>I have started the following docker containers</p>
  
  <pre><code>namenode  
  datanode1  
  datanode2  
  datanode3
  </code></pre>
  
  <p>When I attempt to put a file into HDFS as follows I get this error</p>
  
  <pre><code>hdfs dfs -put /tmp/airline-2008.csv.bz2 hdfs://namenode.bigdatacluster.com:8020/data/
  </code></pre>
  
  <blockquote>
    <p>17/09/28 22:49:01 WARN hdfs.DataStreamer: DataStreamer Exception
    java.nio.channels.UnresolvedAddressException
            at sun.nio.ch.Net.checkAddress(Net.java:101)
            at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:622)
            at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)
            at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:531)
            at org.apache.hadoop.hdfs.DataStreamer.createSocketForPipeline(DataStreamer.java:226)
            at org.apache.hadoop.hdfs.DataStreamer.createBlockOutputStream(DataStreamer.java:1591)
            at org.apache.hadoop.hdfs.DataStreamer.nextBlockOutputStream(DataStreamer.java:1547)
            at org.apache.hadoop.hdfs.DataStreamer.run(DataStreamer.java:658) put:
    java.nio.channels.UnresolvedAddressException</p>
  </blockquote>