This is an automated email from the ASF dual-hosted git repository.

nitiraj pushed a commit to branch branch-2.6
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.6 by this push:
     new 0655adc  AMBARI-24165 : hive view : remove conflicting set statements 
while uploading the table (nitirajrathore) (#1595)
0655adc is described below

commit 0655adcb28dda7fe9c10629eac964ef2efb789ae
Author: nitirajrathore <nitiraj.rath...@gmail.com>
AuthorDate: Thu Aug 23 17:26:16 2018 +0530

    AMBARI-24165 : hive view : remove conflicting set statements while 
uploading the table (nitirajrathore) (#1595)
---
 .../hive20/internal/query/generators/InsertFromQueryGenerator.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/query/generators/InsertFromQueryGenerator.java
 
b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/query/generators/InsertFromQueryGenerator.java
index 2d2930a..e761425 100644
--- 
a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/query/generators/InsertFromQueryGenerator.java
+++ 
b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/query/generators/InsertFromQueryGenerator.java
@@ -47,9 +47,7 @@ public class InsertFromQueryGenerator implements 
QueryGenerator{
   public Optional<String> getQuery() throws ServiceException {
     StringBuilder insertQuery = new StringBuilder();
     //Dynamic partition strict mode requires at least one static partition 
column. To turn this off set hive.exec.dynamic.partition.mode=nonstrict
-    insertQuery.append("SET 
hive.exec.dynamic.partition.mode=nonstrict;").append("\n");
-    insertQuery.append("SET hive.support.concurrency=true;").append("\n");
-    insertQuery.append("SET 
hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;").append("\n");
+    insertQuery.append("set 
hive.exec.dynamic.partition.mode=nonstrict;").append("\n");
 
     insertQuery.append(" FROM 
").append("`").append(insertFromQueryInput.getFromDatabase()).append("`.`")
         .append(insertFromQueryInput.getFromTable()).append("` tempTable");

Reply via email to