I want to read Apache logs in kafka and then further process in to Spark Streaming.I am new to kafka. As far as I have understand I have to write a producer class to read logs file.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Stop .htaccess redirect with query string
- .htaccess rule, redirecting old unexistent address
- In Spark Streaming how to process old data and del
- How to deploy a web application Aurelia in an Apac
相关文章
- Apache+Tomcat+JK实现的集群,如果Apache挂了,是不是整个服务就挂了?
- How reliable is HTTP_HOST?
- Making a two way SSL authentication between apache
- UnicodeEncodeError when saving ImageField containi
- mod_rewrite only on GET
- jquery how to get the status message returned by a
- How do I debug errors that have no error message?
- Cloudfront cache-control headers missing
You can do so by creating a connector which sources each line of the log file into the Kafka topic. Check out the example here:
https://docs.confluent.io/current/connect/devguide.html#connect-developing-simple-connector