Hi@akhtar,
There may be problem in firewall, so make sure iptables is off.
$ iptables -F
If it will not work, then check the following properties in flume-conf.properties file.
agent.sinks.hdfs-sink.hdfs.path = hdfs://ip:9000/user/hdfs/flume
agent.sinks.hdfs-sink.hdfs.callTimeout = 180000
Set hdfs path and time accordingly your set up.