ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [49/50] [abbrv] ambari git commit: AMBARI-19745. Hive History Queries not working for Hive 2.0 in Hue-Migration View (Ishan Bhatt via gauravn7)
Date Mon, 13 Feb 2017 21:04:23 GMT
AMBARI-19745. Hive History Queries not working for Hive 2.0 in Hue-Migration View (Ishan Bhatt
via gauravn7)


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

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 3436c4a1addc11bd56ae6cb4711aec5cf54b06fe
Parents: 4061cba
Author: Gaurav Nagar <grvngr@gmail.com>
Authored: Mon Feb 6 18:31:16 2017 +0530
Committer: Nate Cole <ncole@hortonworks.com>
Committed: Mon Feb 13 15:45:36 2017 -0500

----------------------------------------------------------------------
 .../historyquery/HiveHistoryQueryMigrationImplementation.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/3436c4a1/contrib/views/hueambarimigration/src/main/java/org/apache/ambari/view/huetoambarimigration/migration/hive/historyquery/HiveHistoryQueryMigrationImplementation.java
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/java/org/apache/ambari/view/huetoambarimigration/migration/hive/historyquery/HiveHistoryQueryMigrationImplementation.java
b/contrib/views/hueambarimigration/src/main/java/org/apache/ambari/view/huetoambarimigration/migration/hive/historyquery/HiveHistoryQueryMigrationImplementation.java
index f154b39..33d57b4 100644
--- a/contrib/views/hueambarimigration/src/main/java/org/apache/ambari/view/huetoambarimigration/migration/hive/historyquery/HiveHistoryQueryMigrationImplementation.java
+++ b/contrib/views/hueambarimigration/src/main/java/org/apache/ambari/view/huetoambarimigration/migration/hive/historyquery/HiveHistoryQueryMigrationImplementation.java
@@ -138,12 +138,12 @@ public class HiveHistoryQueryMigrationImplementation {
     String epochtime1 = Long.toString(epochtime);
     PreparedStatement prSt = null;
     String revsql = null;
-    if (versionName.contains("1.5")) {
-      prSt = ambaridatabase.insertToHiveHistoryForHiveNext(c, id, maxcount1, epochtime, dirname,
username);
-    }
     if (versionName.contains("1.0")) {
       prSt = ambaridatabase.insertToHiveHistoryForHive(c, id, maxcount1, epochtime, dirname,
username);
+    } else {
+      prSt = ambaridatabase.insertToHiveHistoryForHiveNext(c, id, maxcount1, epochtime, dirname,
username);
     }
+
     logger.info("The actual insert statement is " + prSt);
     prSt.executeUpdate();
     revsql = ambaridatabase.revertSql(id, maxcount1);


Mime
View raw message