Flume - Error in creating hdfs files

Hi Durga,

I am trying to work on flume and initially, my flume is working. But when I changed my configuration to hdfs, it is not connecting. Am I missing any step;

My example.conf file is;

Main error;
17/01/11 15:08:36 INFO source.NetcatSource: Created serverSocket:sun.nio.ch.ServerSocketChannelImpl[/127.0.0.1:44444]
17/01/11 15:09:01 INFO hdfs.HDFSSequenceFile: writeFormat = Writable, UseRawLocalFileSystem = false
17/01/11 15:09:01 INFO hdfs.BucketWriter: Creating hdfs://149.56.24.210:8020/user/ranakhan/flume/netcat.1484165341742.tmp
17/01/11 15:09:02 WARN ipc.Client: Failed to connect to server: 149.56.24.210/149.56.24.210:8020: try once and fail.
java.net.ConnectException: Connection refused
** at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)**
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:531)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:495)
at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:650)
at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:745)
at org.apache.hadoop.ipc.Client$Connection.access$3200(Client.java:397)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:1618)
at org.apache.hadoop.ipc.Client.call(Client.java:1449)
at org.apache.hadoop.ipc.Client.call(Client.java:1396)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:233)
at com.sun.proxy.$Proxy13.create(Unknown Source)
at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.create(ClientNamenodeProtocolTranslatorPB.java:311)

@Rana_Khan - Where did you get this IP ?
ls command fails
hadoop fs -ls hdfs://149.56.24.210:8020/user/

Try this…
hdfs://nn01.itversity.com:8020/user/ranakhan/flume

Hi,
I got this IP address by using this command;

ifconfig