a1.sources=r1
a1.channels=c1
a1.sinks=k1
a1.sources.r1.type=exec
a1.sources.r1.command=ping 192.168.1.125
a1.sinks.k1.type=hdfs
a1.sinks.k1.path=hdfs://192.168.1.125:9000/flume/events/%Y/%m/%D
a1.sinks.k1.hdfs.filePrefix=cmcc
a1.sinks.k1.hdfs.minBlockReplicas=1
a1.sinks.k1.hdfs.writeFormat=Text
a1.sinks.k1.hdfs.rollInterval=60
a1.sinks.k1.hdfs.rollSize=0
a1.sinks.k1.hdfs.rollCount=0
a1.sinks.k1.hdfs.idleTimeout=0
a1.sinks.k1.hdfs.fileType=DataStream
a1.channels.c1.type=memory
a1.channels.c1.capacity=1000
a1.channels.c1.transactionCapacity=100
a1.sources.r1.channels=c1
a1.sinks.k1.channel=c1
------------------------flume peizhi -------
---cmd ----
[root@bogon apache-flume-1.8.0-bin]# bin/flume-ng agent -c conf -f conf/avroa.conf -n a1
Info: Including Hive libraries found via () for Hive access
这是什么问题,折腾好几天了。请大神赐教!
按照教程上,hadoop 里面没有数据写入成功。
查看日志,是因为缺少相应的hadoop jar包,导入到flume/lib 就可以了