Hi,all
At the beginning , i didn't have kylin.log file.
Then i configured kylin-server-log4j.properties like this:

log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
log4j.appender.file.layout=org.apache.log4j.PatternLayout
#log4j.appender.file.File=${catalina.home}/../logs/kylin.log
log4j.appender.file.File=${KYLIN_HOME}/logs/kylin.log
log4j.appender.file.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}:%L
: %m%n
log4j.appender.file.Append=true

#overall config
log4j.rootLogger=INFO,file
log4j.logger.org.apache.kylin=DEBUG
log4j.logger.org.springframework=WARN
log4j.logger.org.springframework.security=INFO

Then i restart kylin,but it didn't work.

Then i configured kylin-tools-log4j.properties:
log4j.rootLogger=INFO,stderr,file

log4j.appender.stderr=org.apache.log4j.ConsoleAppender
log4j.appender.stderr.Target=System.err
log4j.appender.stderr.layout=org.apache.log4j.PatternLayout
log4j.appender.stderr.layout.ConversionPattern=%d{ISO8601} %-5p [%t
%c{1}:%L]: %m%n

#log4j.logger.org.apache.hadoop=ERROR
log4j.logger.org.apache.kylin=DEBUG
log4j.logger.org.springframework=WARN
log4j.logger.org.apache.kylin.tool.shaded=INFO

#define appenders
log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
log4j.appender.file.layout=org.apache.log4j.PatternLayout
#log4j.appender.file.File=${catalina.home}/../logs/kylin.log
log4j.appender.file.File=/yxlm_dca/kylin/apache-kylin-2.0.0-bin/logs/kylin.log
log4j.appender.file.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}:%L
: %m%n
log4j.appender.file.Append=true

OK,i had kylin.log.
But after a period of time, I found that there seems to be some missing
information in this document.For example, I set the automatic merge, but
the merger is not successful, but in the log file did not find any errors
on the merger failure.
I wonder if the log that comes up by setting
the kylin-tools-log4j.properties is correct or not.

By the way,another question:
The step Build Dimension Dictionary ,does it create a snapshot of the
dimension table each time? If the snapshot of this dimension table is in
ram,have to re-create it?Or just create those changed dimensions in the
dimension table?

Reply via email to