[
https://issues.apache.org/jira/browse/HIVE-15862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ashutosh Chauhan updated HIVE-15862:
------------------------------------
Resolution: Fixed
Fix Version/s: 2.2.0
Target Version/s: 2.1.1, 2.1.0 (was: 2.1.0, 2.1.1)
Status: Resolved (was: Patch Available)
> 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
> Assignee: yangfang
> Fix For: 2.2.0
>
> Attachments: HIVE-15862.1.patch
>
>
> 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:
> .................................................................................
> Connecting to jdbc:hive2://localhost:10000/default
> Connected to: Apache Hive (version 2.1.0-zdh2.7.3)
> Driver: Hive JDBC (version 2.1.0-zdh2.7.3)
> 17/02/10 15:10:10 [main]: WARN jdbc.HiveConnection: Request to set autoCommit
> to false; Hive does not support autoCommit=false.
> 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.4.14#64029)