SUMMARY
In some instances, the Hadoop Gateway log (hgos.out under $HGOS_HOME/log) does not provide sufficient information to troubleshoot issues with the Hadoop Gateway functionality. This technical note describes the steps to change the logging level in the Hadoop Gateway Host machine.
STEPS TO ENABLE THE ADVANCED LOGGING
1) In the edge node of the Hadoop cluster environment where the Hadoop Gateway is deployed, navigate to $HGOS_HOME/conf/
2) Edit the file “log4j.properties”
3) Update the contents to match the lines below
log4j.rootLogger=DEBUG,console,ROLLING_FILE
log4j.logger.com.Strategy=INFO
log4j.logger.org=INFO
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.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
log4j.appender.ROLLING_FILE=org.apache.log4j.RollingFileAppender
log4j.appender.ROLLING_FILE.Threshold=DEBUG
log4j.appender.ROLLING_FILE.File=lightning.log
log4j.appender.ROLLING_FILE.Append=true
log4j.appender.ROLLING_FILE.MaxFileSize=1024MB
log4j.appender.ROLLING_FILE.MaxBackupIndex=1
log4j.appender.ROLLING_FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.ROLLING_FILE.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n
4) The above modifications will change the logging level, and the log file hgos.out will now have more detailed information including the debug level entries.
Article Reference Number: KB439553