creating flume agent in hortonworks sandbox vm for streaming weather data into HDFS -
i configuring flume stream weather data, have written flume agent given below,
weatheragent.sources= weather
weatheragent.sinks = hdfs-write
weatheragent.channels= memory-channel
weatheragent.sources.weather.type = weather
weatheragent.sources.weather.bind = api.openweathermap.org/data/2.5/forecast/city?id=524901&appid=*********
weatheragent.sources.weather.port = 11111
weatheragent.sinks.hdfs-write.type = hdfs
weatheragent.sinks.hdfs-write.hdfs.path = hdfs://localhost:8020/user/hadoop/flume
weatheragent.sinks.hdfs-write.rollinterval = 30
weatheragent.sinks.hdfs-write.hdfs.writeformat=text
weatheragent.sinks.hdfs-write.hdfs.filetype=datastream
weatheragent.channels.memorychannel.type = memory
weatheragent.channels.memorychannel.capacity=10000
weatheragent.sources.weather.channels=memorychannel
weatheragent.sinks.hdfs-write.channel=memorychannel
i getting error
weather agent not contain valid channels making invalid.
i new flume,i dont know parameters addded in agent config file,i dont know written agent correct or wrong,please me solve this. if links there write custom or new agents please post.
thanks in advance
suyog
type mismatching. in configuration file mentioned weatheragent.channels= memory-channel using memorychannel instead of memory-channel weatheragent.channels.memorychannel.type = memory weatheragent.channels.memorychannel.capacity=10000 weatheragent.sources.weather.channels=memorychannel
Comments
Post a Comment