Modified Code I used
agent.sources = r1
agent.sinks = k1
agent.channels = c1
# Bind the source and sink to the channel
agent.sources.r1.channels = c1
agent.sinks.k1.channel = c1
# Describe/configure the source
agent.sources.r1.type = spooldir
agent.sources.r1.spoolDir = /home/splunk/data
#agent.sinks.k1.type = logger
# Describe the sink
agent.sinks.k1.type = hdfs
agent.sinks.k1.hdfs.path = /incoming/hunk/ecm
agent.sinks.k1.hdfs.filePrefix = %{basename}-
agent.sinks.k1.hdfs.round = true
agent.sinks.k1.hdfs.roundValue = 10
agent.sinks.k1.hdfs.roundUnit = minute