tephra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject [incubator-tephra] branch master updated: TEPHRA-301 Support HBase 1.5.x.
Date Thu, 27 Jun 2019 05:31:33 GMT
This is an automated email from the ASF dual-hosted git repository.

larsh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tephra.git


The following commit(s) were added to refs/heads/master by this push:
     new 2e00010  TEPHRA-301 Support HBase 1.5.x.
2e00010 is described below

commit 2e0001066dfa7903d9fb00f77f1cfcc3f1226399
Author: Lars Hofhansl <larsh@apache.org>
AuthorDate: Wed Jun 26 22:32:02 2019 -0700

    TEPHRA-301 Support HBase 1.5.x.
---
 tephra-core/src/main/java/org/apache/tephra/util/HBaseVersion.java    | 4 ++++
 .../main/java/org/apache/tephra/util/HBaseVersionSpecificFactory.java | 1 +
 2 files changed, 5 insertions(+)

diff --git a/tephra-core/src/main/java/org/apache/tephra/util/HBaseVersion.java b/tephra-core/src/main/java/org/apache/tephra/util/HBaseVersion.java
index d9bec3b..d7fe0a9 100644
--- a/tephra-core/src/main/java/org/apache/tephra/util/HBaseVersion.java
+++ b/tephra-core/src/main/java/org/apache/tephra/util/HBaseVersion.java
@@ -39,6 +39,7 @@ public class HBaseVersion {
   private static final String HBASE_12_VERSION = "1.2";
   private static final String HBASE_13_VERSION = "1.3";
   private static final String HBASE_14_VERSION = "1.4";
+  private static final String HBASE_15_VERSION = "1.5";
   private static final String HBASE_20_VERSION = "2.0";
   private static final String CDH_CLASSIFIER = "cdh";
 
@@ -57,6 +58,7 @@ public class HBaseVersion {
     HBASE_12("1.2"),
     HBASE_13("1.3"),
     HBASE_14("1.4"),
+    HBASE_15("1.5"),
     HBASE_20("2.0"),
     UNKNOWN("unknown");
 
@@ -99,6 +101,8 @@ public class HBaseVersion {
         currentVersion = Version.HBASE_13;
       } else if (versionString.startsWith(HBASE_14_VERSION)) {
         currentVersion = Version.HBASE_14;
+      } else if (versionString.startsWith(HBASE_15_VERSION)) {
+        currentVersion = Version.HBASE_15;
       } else if (versionString.startsWith(HBASE_20_VERSION)) {
           currentVersion = Version.HBASE_20;
       } else {
diff --git a/tephra-core/src/main/java/org/apache/tephra/util/HBaseVersionSpecificFactory.java
b/tephra-core/src/main/java/org/apache/tephra/util/HBaseVersionSpecificFactory.java
index 8beef1f..3cda136 100644
--- a/tephra-core/src/main/java/org/apache/tephra/util/HBaseVersionSpecificFactory.java
+++ b/tephra-core/src/main/java/org/apache/tephra/util/HBaseVersionSpecificFactory.java
@@ -56,6 +56,7 @@ public abstract class HBaseVersionSpecificFactory<T> implements Provider<T>
{
           instance = createInstance(getHBase13Classname());
           break;
         case HBASE_14:
+        case HBASE_15:
           instance = createInstance(getHBase14Classname());
           break;
         case HBASE_20:


Mime
View raw message