atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject [13/50] [abbrv] incubator-atlas git commit: ATLAS-1108 In Atlas HA mode , import-hive.sh in Passive instance fails. (ayubkhan via sumasai)
Date Fri, 23 Dec 2016 01:46:42 GMT
ATLAS-1108 In Atlas HA mode , import-hive.sh in Passive instance fails. (ayubkhan via sumasai)

(cherry picked from commit a07f3cc041813e5431bfc5e1b43f0d466756ca70)


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

Branch: refs/heads/0.7-incubating
Commit: e1b108f60785594b917d458c4ac3e216b0365c52
Parents: 0cfd957
Author: Suma Shivaprasad <sumasai.shivaprasad@gmail.com>
Authored: Wed Aug 10 15:02:59 2016 -0700
Committer: Madhan Neethiraj <madhan@apache.org>
Committed: Thu Dec 22 15:13:14 2016 -0800

----------------------------------------------------------------------
 .../org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java     | 7 +++++--
 .../src/main/java/org/apache/atlas/AtlasServerEnsemble.java   | 2 +-
 release-log.txt                                               | 1 +
 3 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/e1b108f6/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
----------------------------------------------------------------------
diff --git a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
index eb08c37..ae969e1 100755
--- a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
+++ b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
@@ -634,12 +634,15 @@ public class HiveMetaStoreBridge {
     public static void main(String[] args) throws Exception {
 
         Configuration atlasConf = ApplicationProperties.get();
-        String atlasEndpoint = atlasConf.getString(ATLAS_ENDPOINT, DEFAULT_DGI_URL);
+        String[] atlasEndpoint = atlasConf.getStringArray(ATLAS_ENDPOINT);
+        if (atlasEndpoint == null){
+            atlasEndpoint = new String[]{DEFAULT_DGI_URL};
+        }
         AtlasClient atlasClient;
 
         if (!AuthenticationUtil.isKerberosAuthenticationEnabled()) {
             String[] basicAuthUsernamePassword = AuthenticationUtil.getBasicAuthenticationInput();
-            atlasClient = new AtlasClient(new String[]{atlasEndpoint}, basicAuthUsernamePassword);
+            atlasClient = new AtlasClient(atlasEndpoint, basicAuthUsernamePassword);
         } else {
             UserGroupInformation ugi = UserGroupInformation.getCurrentUser();
             atlasClient = new AtlasClient(ugi, ugi.getShortUserName(), atlasEndpoint);

http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/e1b108f6/client/src/main/java/org/apache/atlas/AtlasServerEnsemble.java
----------------------------------------------------------------------
diff --git a/client/src/main/java/org/apache/atlas/AtlasServerEnsemble.java b/client/src/main/java/org/apache/atlas/AtlasServerEnsemble.java
index 96df6a3..01e4e32 100644
--- a/client/src/main/java/org/apache/atlas/AtlasServerEnsemble.java
+++ b/client/src/main/java/org/apache/atlas/AtlasServerEnsemble.java
@@ -20,7 +20,7 @@ package org.apache.atlas;
 
 import com.google.common.base.Preconditions;
 import org.apache.commons.lang.StringUtils;
-import scala.actors.threadpool.Arrays;
+import java.util.Arrays;
 
 import java.util.List;
 

http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/e1b108f6/release-log.txt
----------------------------------------------------------------------
diff --git a/release-log.txt b/release-log.txt
index 874cd23..333b98e 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -28,6 +28,7 @@ ATLAS-409 Atlas will not import avro tables with schema read from a file
(dosset
 ATLAS-379 Create sqoop and falcon metadata addons (venkatnrangan,bvellanki,sowmyaramesh via
shwethags)
 
 ALL CHANGES:
+ATLAS-1108 In Atlas HA mode , import-hive.sh in Passive instance fails. (ayubkhan via sumasai)
 ATLAS-1104 Get outgoing edges by label doesn't work in some cases (shwethags)
 ATLAS-1105 Disable HiveLiteralRewriterTest since its not used currently (sumasai)
 ATLAS-1103 : UI: Search type list is not refreshed (Kalyanikashikar via sumasai)


Mime
View raw message