Info: o Hive libraries found via () for Hive access
+ exec/usr/Java/jdk1.6.0 _45/bin/Java - Xmx20m - Dflume. Root. The logger=INFO, the console - cp '/root/apache - the flume - 1.6.0 - bin/bin:/root/apache - the flume - 1.6.0 - bin/lib/* :/lib/*' - Djava. If path=org. Apache. The flume. The node. The Application - f../conf/avro. Conf -n a1
log4j: WARN No appenders could be found for logger (org. Apache. The flume. Lifecycle. LifecycleSupervisor).
Log4j: WARN both Please initialize the log4j system properly.
Log4j: WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
avro. Conf
A1. Sources=r1
A1. Sinks=k1
A1. Channels=c1
# the Describe/configure the source
A1. Sources. R1. Type=avro
A1. Sources. R1. Channels=c1
A1. Sources. R1. Bind=0.0.0.0
A1. Sources. R1. Port=4141
# the Describe the sink
A1. Sinks. K1. Type=logger
# Use a channel which buffers the events in the memory
A1. Channels. C1. Type=memory
A1. Channels. C1. Capacity=1000
A1. Channels. C1. TransactionCapacity=100
# Bind the source and sink to the channel
A1. Sources. R1. Channels=c1
CodePudding user response:
$FLUME_HOME/bin/flume - ng avro - the client - H - p - F some_file XXX XXXCodePudding user response:
Warning prompt can not find the log4j. The properties files; It will go - c specified directory,Will you start command - c parameters of the point you have to flume the conf directory,
For example: - c../conf
Which is the conf your flume the conf directory under the installation path,
CodePudding user response:
- c at the back of the path with the absolute pathCodePudding user response:
Is the configuration file and the conf directory to main problem, in addition to use absolute paths, using relative path must pay attention to point to the corresponding location,CodePudding user response:
The building Lord, I also met the same problem, could you tell me how do you solve, please, thank you!CodePudding user response:
The building Lord, how to solveCodePudding user response:
You put the log4j log files for the following configuration is not an error, but the effect of the warning to you, or if you modify the conf the log4j configuration file information belowCodePudding user response:
./the flume - ng agent - c../conf - f../conf/flume - the conf. The properties - n a1 - Dflume. Root. The logger=INFO, the console & amp;CodePudding user response:
I met this problem because install absent in the lib directory in the flume flume - ng - SQL - source, from CSDN download in a jar, my problem is solved, everyone can have a try!