You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/01/23 09:32:14 UTC

[27/50] [abbrv] incubator-kylin git commit: KYLIN-540 Data model upgrade for legacy cube descs; add a message in BuildCube

KYLIN-540 Data model upgrade for legacy cube descs; add a message in BuildCube


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/c8dab507
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/c8dab507
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/c8dab507

Branch: refs/heads/inverted-index
Commit: c8dab507e2c5659075a63d92a511988bc8548078
Parents: 6faee1d
Author: Shao Feng, Shi <sh...@hotmail.com>
Authored: Thu Jan 22 17:56:54 2015 +0800
Committer: Shao Feng, Shi <sh...@hotmail.com>
Committed: Thu Jan 22 17:56:54 2015 +0800

----------------------------------------------------------------------
 .../kylinolap/job/BuildCubeWithEngineTest.java  | 39 ++++++++++++--------
 1 file changed, 23 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/c8dab507/job/src/test/java/com/kylinolap/job/BuildCubeWithEngineTest.java
----------------------------------------------------------------------
diff --git a/job/src/test/java/com/kylinolap/job/BuildCubeWithEngineTest.java b/job/src/test/java/com/kylinolap/job/BuildCubeWithEngineTest.java
index 7bf3758..e39e80b 100644
--- a/job/src/test/java/com/kylinolap/job/BuildCubeWithEngineTest.java
+++ b/job/src/test/java/com/kylinolap/job/BuildCubeWithEngineTest.java
@@ -1,5 +1,26 @@
 package com.kylinolap.job;
 
+import static org.junit.Assert.*;
+
+import java.io.File;
+import java.io.IOException;
+import java.lang.reflect.Method;
+import java.text.SimpleDateFormat;
+import java.util.List;
+import java.util.TimeZone;
+import java.util.concurrent.Callable;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.hadoop.util.ToolRunner;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
 import com.google.common.collect.Lists;
 import com.kylinolap.common.KylinConfig;
 import com.kylinolap.common.util.AbstractKylinTestCase;
@@ -17,22 +38,6 @@ import com.kylinolap.job.impl.threadpool.AbstractExecutable;
 import com.kylinolap.job.impl.threadpool.DefaultScheduler;
 import com.kylinolap.job.service.ExecutableManager;
 
-import org.apache.hadoop.util.ToolRunner;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-import java.io.File;
-import java.io.IOException;
-import java.lang.reflect.Method;
-import java.text.SimpleDateFormat;
-import java.util.List;
-import java.util.TimeZone;
-import java.util.concurrent.*;
-
-import static org.junit.Assert.assertEquals;
-
 public class BuildCubeWithEngineTest {
 
     private JobEngineConfig jobEngineConfig;
@@ -43,6 +48,7 @@ public class BuildCubeWithEngineTest {
 
     protected ExecutableManager jobService;
 
+    private static final Log logger = LogFactory.getLog(BuildCubeWithEngineTest.class);
     protected void waitForJob(String jobId) {
         while (true) {
             AbstractExecutable job = jobService.getJob(jobId);
@@ -60,6 +66,7 @@ public class BuildCubeWithEngineTest {
 
     @BeforeClass
     public static void beforeClass() throws Exception {
+        logger.info("Adding to classpath: " + new File(HBaseMetadataTestCase.SANDBOX_TEST_DATA).getAbsolutePath());
         ClasspathUtil.addClasspath(new File(HBaseMetadataTestCase.SANDBOX_TEST_DATA).getAbsolutePath());
         System.setProperty("hdp.version", "2.2.0.0-2041"); // mapred-site.xml ref this
     }