THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!

Apache Kylin : Analytical Data Warehouse for Big Data

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add Disclaimer

...

We divided diagnosis packages into two kind, General Project Diagnosis Package and Job Diagnosis Package.
`orgorg.apache.kylin.tool.DiagnosisInfoCLI` DiagnosisInfoCLI is for get a General Diagnosis Project Diagnosis Package, and `orgorg.apache.kylin.tool.JobDiagnosisInfoCLI` JobDiagnosisInfoCLI is for get a Job Diagnosis Package.
If you have any issue/failure when building a segment, please choose using the Job Diagnosis Package; otherwise, please choose the General Diagnosis Project Diagnosis Package.

Content


How to use

...

Code Block
languagebash
themeEmacs
firstline1
titlediag.sh
linenumberstrue
# If you want to collected the most basiccomplete information for all project  project, you should choose this one. 
sh bin/diag.sh org.apache.kylin.tool.DiagnosisInfoCLI -project -all \
    -destDir diag_all_info


# If you want to collected most basiccomplete information for a specific project  project, you should choose this one.
sh bin/diag.sh org.apache.kylin.tool.DiagnosisInfoCLI -project learn_kylin \
    -destDir diag_learn_kylin


# If you only want to collect related metadata, logs files and configuration files, you should choose this one.
sh bin/diag.sh org.apache.kylin.tool.DiagnosisInfoCLI -project learn_kylin \
     -destDir diag_learn_kylin_one_day \
    -includeHBase false \
     -includeJobs false \
     -period 1
 

# If you want to findhave some building job failed but cannot find the cause, you may should try this. Yarn logs will be collected.
sh bin/diag.sh org.apache.kylin.tool.JobDiagnosisInfoCLI \
    -jobId 35ebd64b-d56c-7236-6bb6-58d63160b49d \
    -destDir diag_job

...

1. When you click the button in Web UI to download a diagnosis package, and wait too much time and want find if there anything wrong, please check the log content in $KYLIN_HOME/logs/kylin.out (that is the std out). If you want to let the output print to other place, please consider modify $KYLIN_HOME/conf/kylin-tools-log4j.properties.
2. If you find difficult to download a diagnosis package from web page, or maybe you want do some custom filter to reduce the size of diagnosis package, please consider using the CLI way, it is somehow fexible.
3. By default, DiagnosisInfoCLI will only collected logs files of recent three days, if you need to change it please use period option.

Disclaimer

All private information such as address, username or password will be kept as is and will not be hidden or deleted. Please be careful if you share a diagnosis package from a production Kylin instance.