ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property ‘log4j2.debug’ to show
Log4j2 internal initialization logging.
below config file i am using:-
Name the components on this agent
step1.sources = avro-source
step1.sinks = hdfs-sink
step1.channels = jdbc-channel
Describe/configure the source
step1.sources.avro-source.type = avro
step1.sources.avro-source.bind = localhost
step1.sources.avro-source.port = 11112
Describe the sink
step1.sinks.hdfs-sink.type = hdfs
step1.sinks.hdfs-sink.hdfs.path = /user/kumarrupesh2389619/sink
step1.sinks.hdfs-sink.hdfs.fileType = DataStream
step1.sinks.hdfs-sink.hdfs.serializer = avro_event
step1.sinks.hdfs-sink.hdfs.fileSuffix = .avro
Use a channel which buffers events in memory
step1.channels.jdbc-channel.type = jdbc
Bind the source and sink to the channel
step1.sources.avro-source.channels = jdbc-channel
step1.sinks.hdfs-sink.channel = jdbc-channel