Details

Added a 'enableAutoCommit' property to Hydrator database plugins that will enable use of jdbc drivers, like the Hive jdbc driver, that do not allow commits.

Rank:

1|hzz6rz:

Description

The Hive jdbc driver throws an exception on calls to commit(). The DB input formats call commit() because it sets autocommit to false. I'm guessing it does that because not all databases support autocommit.

In any case, we need to make some changes to the input format if we want to support the hive jdbc driver. One option is to add a config setting for whether to turn on autocommit. Then if its on, we don't explicitly call commit.