mnemonic-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject [2/2] incubator-mnemonic git commit: MNEMONIC-199: Store output datasets on different folders
Date Tue, 21 Feb 2017 20:01:25 GMT
MNEMONIC-199: Store output datasets on different folders


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

Branch: refs/heads/master
Commit: 0e229297bb0162d5238d76ce33e403eb82d47ce3
Parents: d8f8a97
Author: Wang, Gang(Gary) <gang1.wang@intel.com>
Authored: Tue Feb 21 11:57:37 2017 -0800
Committer: Wang, Gang(Gary) <gang1.wang@intel.com>
Committed: Tue Feb 21 11:57:37 2017 -0800

----------------------------------------------------------------------
 .../org/apache/mnemonic/mapreduce/MneMapreduceLongDataTest.java  | 4 +++-
 .../apache/mnemonic/mapreduce/MneMapreducePersonDataTest.java    | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/0e229297/mnemonic-hadoop/mnemonic-hadoop-mapreduce/src/test/java/org/apache/mnemonic/mapreduce/MneMapreduceLongDataTest.java
----------------------------------------------------------------------
diff --git a/mnemonic-hadoop/mnemonic-hadoop-mapreduce/src/test/java/org/apache/mnemonic/mapreduce/MneMapreduceLongDataTest.java
b/mnemonic-hadoop/mnemonic-hadoop-mapreduce/src/test/java/org/apache/mnemonic/mapreduce/MneMapreduceLongDataTest.java
index 5a6b00b..bc6c2de 100644
--- a/mnemonic-hadoop/mnemonic-hadoop-mapreduce/src/test/java/org/apache/mnemonic/mapreduce/MneMapreduceLongDataTest.java
+++ b/mnemonic-hadoop/mnemonic-hadoop-mapreduce/src/test/java/org/apache/mnemonic/mapreduce/MneMapreduceLongDataTest.java
@@ -50,6 +50,8 @@ import org.testng.annotations.Test;
 
 public class MneMapreduceLongDataTest {
 
+  private static final String DEFAULT_BASE_WORK_DIR = "target" + File.separator + "test"
+ File.separator + "tmp";
+  private static final String DEFAULT_WORK_DIR = DEFAULT_BASE_WORK_DIR + File.separator +
"long-data";
   private static final String SERVICE_NAME = "pmalloc";
   private static final long SLOT_KEY_ID = 7L;
   private Path m_workdir;
@@ -64,7 +66,7 @@ public class MneMapreduceLongDataTest {
   @BeforeClass
   public void setUp() throws IOException {
     m_workdir = new Path(
-        System.getProperty("test.tmp.dir", "target" + File.separator + "test" + File.separator
+ "tmp"));
+        System.getProperty("test.tmp.dir", DEFAULT_WORK_DIR));
     m_conf = new JobConf();
     m_rand = Utils.createRandom();
 

http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/0e229297/mnemonic-hadoop/mnemonic-hadoop-mapreduce/src/test/java/org/apache/mnemonic/mapreduce/MneMapreducePersonDataTest.java
----------------------------------------------------------------------
diff --git a/mnemonic-hadoop/mnemonic-hadoop-mapreduce/src/test/java/org/apache/mnemonic/mapreduce/MneMapreducePersonDataTest.java
b/mnemonic-hadoop/mnemonic-hadoop-mapreduce/src/test/java/org/apache/mnemonic/mapreduce/MneMapreducePersonDataTest.java
index 7f3e8e2..635ed38 100644
--- a/mnemonic-hadoop/mnemonic-hadoop-mapreduce/src/test/java/org/apache/mnemonic/mapreduce/MneMapreducePersonDataTest.java
+++ b/mnemonic-hadoop/mnemonic-hadoop-mapreduce/src/test/java/org/apache/mnemonic/mapreduce/MneMapreducePersonDataTest.java
@@ -50,6 +50,8 @@ import org.testng.annotations.Test;
 
 public class MneMapreducePersonDataTest {
 
+  private static final String DEFAULT_BASE_WORK_DIR = "target" + File.separator + "test"
+ File.separator + "tmp";
+  private static final String DEFAULT_WORK_DIR = DEFAULT_BASE_WORK_DIR + File.separator +
"person-data";
   private static final String SERVICE_NAME = "pmalloc";
   private static final long SLOT_KEY_ID = 5L;
   private Path m_workdir;
@@ -64,7 +66,7 @@ public class MneMapreducePersonDataTest {
   @BeforeClass
   public void setUp() throws IOException {
     m_workdir = new Path(
-        System.getProperty("test.tmp.dir", "target" + File.separator + "test" + File.separator
+ "tmp"));
+        System.getProperty("test.tmp.dir", DEFAULT_WORK_DIR));
     m_conf = new JobConf();
     m_rand = Utils.createRandom();
 


Mime
View raw message