我下载/安装了MLCP 9.0.8,但无法运行。如何初始化log4j系统。预先感谢。
我在run-import.sh中有命令行
/mlcp-9.0.8/bin/mlcp.sh导入-options_file / output / import- 2018-2019 / import-collection.txt
$ ./run-import.sh
log4j:WARN No appenders could be found for logger
(com.marklogic.contentpump.ContentPump).
log4j:WARN Please initialize the log4j system properly.
$ cd /mlcp-9.0.8/conf
$ ls -alt
-rwxr-xr-x. 1 mklogic mklogic 538 Feb 1 11:21 log4j.properties
-rwxr-xr-x. 1 mklogic mklogic 3189 Dec 20 01:03 xcc.logging.properties
vi log4j.properties
log4j.rootLogger=INFO,console
log4j.appender.console=org.apache.log4j.ConsoleAppender
#log4j.appender.console.target=System.err
log4j.appender.stdout.Target=System.out
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n
# To suppress not native warn on Mac and Solaris
log4j.logger.org.apache.hadoop.util.NativeCodeLoader=ERROR
#log4j.logger.org.apache.hadoop.ipc.Client=ERROR
# To enable debug
log4j.logger.com.marklogic.mapreduce=DEBUG
log4j.logger.com.marklogic.contentpump=DEBUG