Hello, Team
As I am trying to create a sink as Kafka Consumer …please see the below code.
for the streaming data, I used log file - /opt/gen_logs/logs/access.log
> # example.conf: A single-node Flume configuration
>
> # Name the components on this agent
> kflume.sources = src1
> kflume.sinks = snk1
> kflume.channels = chn1
>
> # Describe/configure the source
> kflume.sources.src1.type = exec
> kflume.sources.src1.command = tail - F /opt/gen_logs/logs/access.log
>
> # Describe the sink
> kflume.sinks.snk1.type = org.apache.flume.sink.kafka.KafkaSink
> kflume.sinks.snk1.brokerList = f.cloudxlab.com:6667
> kflume.sinks.snk1.topic = cca
>
> # Use a channel which buffers events in memory
> kflume.channels.chn1.type = memory
> kflume.channels.chn1.capacity = 1000
> kflume.channels.chn1.transactionCapacity = 100
>
> #Bind the source and sink to the channel
> kflume.sources.src1.channels = chn1
> kflume.sinks.snk1.channel = chn1
flume-ng agent --conf conf --conf-file kflume.conf --name kflume -Dflume.root.logger=INFO,console
when I run the code through the above command even though it runs fine but I don’t see Kafka topic created.
I checked /kafka-logs as was mentioned in Ambari as Kafka log directory but Kafka topic is not listed there
Please help me on the same.Thank you