You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by mb...@apache.org on 2014/07/30 09:58:04 UTC

[1/3] git commit: HBASE-11609 LoadIncrementalHFiles fails if the namespace is specified

Repository: hbase
Updated Branches:
  refs/heads/0.98 5e8aa60ab -> e426d43e8
  refs/heads/branch-1 90eb08eda -> a14921970
  refs/heads/master 85853f69c -> fa160bd12


HBASE-11609 LoadIncrementalHFiles fails if the namespace is specified


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

Branch: refs/heads/master
Commit: fa160bd124136069a6c4440b2b3807c7ed608ff7
Parents: 85853f6
Author: Matteo Bertozzi <ma...@cloudera.com>
Authored: Wed Jul 30 08:41:58 2014 +0100
Committer: Matteo Bertozzi <ma...@cloudera.com>
Committed: Wed Jul 30 08:41:58 2014 +0100

----------------------------------------------------------------------
 .../hadoop/hbase/mapreduce/LoadIncrementalHFiles.java     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/fa160bd1/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java
index 6a6647c..df8a840 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java
@@ -96,6 +96,8 @@ import com.google.common.collect.Multimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.util.concurrent.ThreadFactoryBuilder;
 
+import java.util.UUID;
+
 /**
  * Tool to load the output of HFileOutputFormat into an existing table.
  * @see #usage()
@@ -104,7 +106,6 @@ import com.google.common.util.concurrent.ThreadFactoryBuilder;
 @InterfaceStability.Stable
 public class LoadIncrementalHFiles extends Configured implements Tool {
   private static final Log LOG = LogFactory.getLog(LoadIncrementalHFiles.class);
-  static final AtomicLong regionCount = new AtomicLong(0);
   private HBaseAdmin hbAdmin;
 
   public static final String NAME = "completebulkload";
@@ -467,9 +468,8 @@ public class LoadIncrementalHFiles extends Configured implements Tool {
   }
 
   // unique file name for the table
-  String getUniqueName(TableName tableName) {
-    String name = tableName + "," + regionCount.incrementAndGet();
-    return name;
+  private String getUniqueName() {
+    return UUID.randomUUID().toString().replaceAll("-", "");
   }
 
   protected List<LoadQueueItem> splitStoreFile(final LoadQueueItem item,
@@ -484,7 +484,7 @@ public class LoadIncrementalHFiles extends Configured implements Tool {
     LOG.info("HFile at " + hfilePath + " no longer fits inside a single " +
     "region. Splitting...");
 
-    String uniqueName = getUniqueName(table.getName());
+    String uniqueName = getUniqueName();
     HColumnDescriptor familyDesc = table.getTableDescriptor().getFamily(item.family);
     Path botOut = new Path(tmpDir, uniqueName + ".bottom");
     Path topOut = new Path(tmpDir, uniqueName + ".top");


[2/3] git commit: HBASE-11609 LoadIncrementalHFiles fails if the namespace is specified

Posted by mb...@apache.org.
HBASE-11609 LoadIncrementalHFiles fails if the namespace is specified


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

Branch: refs/heads/branch-1
Commit: a149219707c2810c4887568313db10cdad4d9391
Parents: 90eb08e
Author: Matteo Bertozzi <ma...@cloudera.com>
Authored: Wed Jul 30 08:41:58 2014 +0100
Committer: Matteo Bertozzi <ma...@cloudera.com>
Committed: Wed Jul 30 08:42:37 2014 +0100

----------------------------------------------------------------------
 .../hadoop/hbase/mapreduce/LoadIncrementalHFiles.java     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/a1492197/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java
index 6a6647c..df8a840 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java
@@ -96,6 +96,8 @@ import com.google.common.collect.Multimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.util.concurrent.ThreadFactoryBuilder;
 
+import java.util.UUID;
+
 /**
  * Tool to load the output of HFileOutputFormat into an existing table.
  * @see #usage()
@@ -104,7 +106,6 @@ import com.google.common.util.concurrent.ThreadFactoryBuilder;
 @InterfaceStability.Stable
 public class LoadIncrementalHFiles extends Configured implements Tool {
   private static final Log LOG = LogFactory.getLog(LoadIncrementalHFiles.class);
-  static final AtomicLong regionCount = new AtomicLong(0);
   private HBaseAdmin hbAdmin;
 
   public static final String NAME = "completebulkload";
@@ -467,9 +468,8 @@ public class LoadIncrementalHFiles extends Configured implements Tool {
   }
 
   // unique file name for the table
-  String getUniqueName(TableName tableName) {
-    String name = tableName + "," + regionCount.incrementAndGet();
-    return name;
+  private String getUniqueName() {
+    return UUID.randomUUID().toString().replaceAll("-", "");
   }
 
   protected List<LoadQueueItem> splitStoreFile(final LoadQueueItem item,
@@ -484,7 +484,7 @@ public class LoadIncrementalHFiles extends Configured implements Tool {
     LOG.info("HFile at " + hfilePath + " no longer fits inside a single " +
     "region. Splitting...");
 
-    String uniqueName = getUniqueName(table.getName());
+    String uniqueName = getUniqueName();
     HColumnDescriptor familyDesc = table.getTableDescriptor().getFamily(item.family);
     Path botOut = new Path(tmpDir, uniqueName + ".bottom");
     Path topOut = new Path(tmpDir, uniqueName + ".top");


[3/3] git commit: HBASE-11609 LoadIncrementalHFiles fails if the namespace is specified

Posted by mb...@apache.org.
HBASE-11609 LoadIncrementalHFiles fails if the namespace is specified


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

Branch: refs/heads/0.98
Commit: e426d43e8c21073204459a3c090601efc233a0c6
Parents: 5e8aa60
Author: Matteo Bertozzi <ma...@cloudera.com>
Authored: Wed Jul 30 08:41:58 2014 +0100
Committer: Matteo Bertozzi <ma...@cloudera.com>
Committed: Wed Jul 30 08:44:43 2014 +0100

----------------------------------------------------------------------
 .../hadoop/hbase/mapreduce/LoadIncrementalHFiles.java     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e426d43e/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java
index e436493..dc534d9 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java
@@ -93,6 +93,8 @@ import com.google.common.collect.Multimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.util.concurrent.ThreadFactoryBuilder;
 
+import java.util.UUID;
+
 /**
  * Tool to load the output of HFileOutputFormat into an existing table.
  * @see #usage()
@@ -101,7 +103,6 @@ import com.google.common.util.concurrent.ThreadFactoryBuilder;
 @InterfaceStability.Stable
 public class LoadIncrementalHFiles extends Configured implements Tool {
   private static final Log LOG = LogFactory.getLog(LoadIncrementalHFiles.class);
-  static final AtomicLong regionCount = new AtomicLong(0);
   private HBaseAdmin hbAdmin;
 
   public static final String NAME = "completebulkload";
@@ -454,9 +455,8 @@ public class LoadIncrementalHFiles extends Configured implements Tool {
   }
 
   // unique file name for the table
-  String getUniqueName(TableName tableName) {
-    String name = tableName + "," + regionCount.incrementAndGet();
-    return name;
+  private String getUniqueName() {
+    return UUID.randomUUID().toString().replaceAll("-", "");
   }
 
   protected List<LoadQueueItem> splitStoreFile(final LoadQueueItem item,
@@ -471,7 +471,7 @@ public class LoadIncrementalHFiles extends Configured implements Tool {
     LOG.info("HFile at " + hfilePath + " no longer fits inside a single " +
     "region. Splitting...");
 
-    String uniqueName = getUniqueName(table.getName());
+    String uniqueName = getUniqueName();
     HColumnDescriptor familyDesc = table.getTableDescriptor().getFamily(item.family);
     Path botOut = new Path(tmpDir, uniqueName + ".bottom");
     Path topOut = new Path(tmpDir, uniqueName + ".top");