KYLIN-1614 Fix some command in client env check
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/f4bdd5b7 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/f4bdd5b7 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/f4bdd5b7 Branch: refs/heads/1.5.x-HBase1.x Commit: f4bdd5b7c9c459609b9ca4ef1a3b21c493a0487c Parents: b7f0398 Author: lidongsjtu <lid...@apache.org> Authored: Sun May 1 14:33:24 2016 +0800 Committer: lidongsjtu <lid...@apache.org> Committed: Sun May 1 14:33:24 2016 +0800 ---------------------------------------------------------------------- tool/src/main/java/org/apache/kylin/tool/ClientEnvExtractor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/f4bdd5b7/tool/src/main/java/org/apache/kylin/tool/ClientEnvExtractor.java ---------------------------------------------------------------------- diff --git a/tool/src/main/java/org/apache/kylin/tool/ClientEnvExtractor.java b/tool/src/main/java/org/apache/kylin/tool/ClientEnvExtractor.java index 5e170f8..f1d1851 100644 --- a/tool/src/main/java/org/apache/kylin/tool/ClientEnvExtractor.java +++ b/tool/src/main/java/org/apache/kylin/tool/ClientEnvExtractor.java @@ -51,11 +51,11 @@ public class ClientEnvExtractor extends AbstractInfoExtractor { // dump os info addLocalFile("/sys/kernel/mm/transparent_hugepage/defrag", "linux/transparent_hugepage"); addLocalFile("/proc/sys/vm/swappiness", "linux/swappiness"); - addLocalFile("/proc/cpuinfo", "linux/cpuinfo"); + addLocalFile("/proc/cpuinfo", "linux"); addShellOutput("lsb_release -a", "linux", "lsb_release"); addShellOutput("df -h", "linux", "disk_usage"); addShellOutput("free -m", "linux", "mem_usage_mb"); - addShellOutput("top -n 1 | head -n 30", "linux", "top"); + addShellOutput("top -b -n 1 | head -n 30", "linux", "top"); addShellOutput("ps aux|grep kylin", "linux", "kylin_processes"); // dump hadoop env