You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ma...@apache.org on 2015/08/31 14:53:15 UTC
incubator-kylin git commit: test-6
Repository: incubator-kylin
Updated Branches:
refs/heads/KYLIN-956-2 b23004c73 -> 8d78b1a51
test-6
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/8d78b1a5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/8d78b1a5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/8d78b1a5
Branch: refs/heads/KYLIN-956-2
Commit: 8d78b1a51f08fcc35ad9d2d9590e7f6e3fb94f39
Parents: b23004c
Author: honma <ho...@ebay.com>
Authored: Mon Aug 31 20:54:52 2015 +0800
Committer: honma <ho...@ebay.com>
Committed: Mon Aug 31 20:54:52 2015 +0800
----------------------------------------------------------------------
.../test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/8d78b1a5/job/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java
----------------------------------------------------------------------
diff --git a/job/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java b/job/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java
index e5683ec..9ee8d72 100644
--- a/job/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java
+++ b/job/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java
@@ -21,6 +21,7 @@ package org.apache.kylin.job;
import static org.junit.Assert.assertEquals;
import java.io.File;
+import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.text.SimpleDateFormat;
import java.util.List;
@@ -93,6 +94,10 @@ public class BuildCubeWithEngineTest {
System.out.println("LD_LIBRARY_PATH is set to: " + System.getenv("LD_LIBRARY_PATH"));
System.setProperty("java.library.path", ":/usr/hdp/2.2.4.2-2/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.2.4.2-2/hadoop/lib/native");
+ //http://blog.cedarsoft.com/2010/11/setting-java-library-path-programmatically
+ Field fieldSysPath = ClassLoader.class.getDeclaredField("sys_paths");
+ fieldSysPath.setAccessible(true);
+ fieldSysPath.set(null, null);
}
@Before