yangfang created HIVE-15862:
-------------------------------

             Summary: beeline always have a warning "Hive does not support 
autoCommit=false"
                 Key: HIVE-15862
                 URL: https://issues.apache.org/jira/browse/HIVE-15862
             Project: Hive
          Issue Type: Bug
          Components: Beeline
    Affects Versions: 2.1.0
         Environment: hive2.1.0
            Reporter: yangfang


When we use beeline, there is always a warning::"Request to set autoCommit to 
false; Hive does not support autoCommit=false",
For example, we use beeline excute a sql:
beeline -u "jdbc:hive2://localhost:10000/default" -n mr -e  "show tables" 
--hivevar taskNO=10111, we got this warning.

When I looked at the hive source code, I found the BeeLineOpts set the  
autoCommit default value to false, It always triggers an alarm when beeline 
connect to the hiveserver2 in DatabaseConnection.connect:
 getConnection().setAutoCommit(beeLine.getOpts().getAutoCommit());




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to