ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gna...@apache.org
Subject ambari git commit: AMBARI-19745. Hive History Queries not working for Hive 2.0 in Hue-Migration View (Ishan Bhatt via gauravn7)
Date Mon, 06 Feb 2017 13:02:26 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 95693516c -> 13f8f96b3


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/13f8f96b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/13f8f96b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/13f8f96b

Branch: refs/heads/trunk
Commit: 13f8f96b3e5fedf14fc1a2089abae33a0ee0e204
Parents: 9569351
Author: Gaurav Nagar <grvngr@gmail.com>
Authored: Mon Feb 6 18:31:16 2017 +0530
Committer: Gaurav Nagar <grvngr@gmail.com>
Committed: Mon Feb 6 18:32:12 2017 +0530

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/13f8f96b/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