This is an automated email from the ASF dual-hosted git repository. xxyu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/master by this push: new 5c12d08 KYLIN-4847 Cuboid to HFile step failed on multiple job server env 5c12d08 is described below commit 5c12d08be9713266ae060796f6e85726cedd6256 Author: yaqian.zhang <598593...@qq.com> AuthorDate: Fri Dec 25 11:13:27 2020 +0800 KYLIN-4847 Cuboid to HFile step failed on multiple job server env --- .../src/main/java/org/apache/kylin/common/util/ClassUtil.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core-common/src/main/java/org/apache/kylin/common/util/ClassUtil.java b/core-common/src/main/java/org/apache/kylin/common/util/ClassUtil.java index 5019b21..f663e4e 100644 --- a/core-common/src/main/java/org/apache/kylin/common/util/ClassUtil.java +++ b/core-common/src/main/java/org/apache/kylin/common/util/ClassUtil.java @@ -120,7 +120,11 @@ public class ClassUtil { url = (URL) e.nextElement(); if (!"jar".equals(url.getProtocol())) - break; + continue; + if (System.getenv("KYLIN_HOME") != null && url.getPath().contains(System.getenv("KYLIN_HOME"))) { + logger.debug("It's better to use the jar under the hadoop directory."); + continue; + } if (preferJarKeyWord != null && url.getPath().indexOf(preferJarKeyWord) != -1) break; if (preferJarKeyWord == null)