EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB439553: How to enable the advanced logging to troubleshoot Hadoop Gateway issues in MicroStrategy 10.6 and later?


Shugo Sonobe

Principal Consultant • MicroStrategy


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.

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


Comment

0 comments

Details

Knowledge Article

Published:

January 30, 2018

Last Updated:

January 10, 2019