minor, fix diag exception
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/cabd2f9c Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/cabd2f9c Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/cabd2f9c Branch: refs/heads/1.5.x-HBase1.x Commit: cabd2f9cb9f4fd50c21bcfcaceb37c1fa122bb94 Parents: 73edfb5 Author: lidongsjtu <lid...@apache.org> Authored: Tue May 3 16:56:29 2016 +0800 Committer: lidongsjtu <lid...@apache.org> Committed: Tue May 3 16:56:29 2016 +0800 ---------------------------------------------------------------------- .../main/java/org/apache/kylin/tool/AbstractInfoExtractor.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/cabd2f9c/tool/src/main/java/org/apache/kylin/tool/AbstractInfoExtractor.java ---------------------------------------------------------------------- diff --git a/tool/src/main/java/org/apache/kylin/tool/AbstractInfoExtractor.java b/tool/src/main/java/org/apache/kylin/tool/AbstractInfoExtractor.java index 42449e5..498baaf 100644 --- a/tool/src/main/java/org/apache/kylin/tool/AbstractInfoExtractor.java +++ b/tool/src/main/java/org/apache/kylin/tool/AbstractInfoExtractor.java @@ -119,7 +119,11 @@ public abstract class AbstractInfoExtractor extends AbstractApplication { } private void dumpBasicDiagInfo() throws IOException { - FileUtils.copyFileToDirectory(new File(KylinConfig.getKylinHome(), COMMIT_SHA1_FILE), exportDir); + try { + FileUtils.copyFileToDirectory(new File(KylinConfig.getKylinHome(), COMMIT_SHA1_FILE), exportDir); + } catch (IOException e) { + logger.warn("Failed to copy commit_SHA1 file.", e); + } String output = KylinVersion.getKylinClientInformation() + "\n"; FileUtils.writeStringToFile(new File(exportDir, "kylin_env"), output);