Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Batch Insert into Hive using Hive JDBC
Labels:
- Labels:
-
Apache Hive
New Contributor
Created ‎06-22-2018 08:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to use Hive JDBC driver to do a batch insert into Hive (Non-ACID) Table. I get an error stating "addBatch" is not supported with Hive JDBC connector. I am using hive-jdbc 2.1.0 and the HDP version is 2.5. Can you please tell me if batching is supported in the Hive JDBC driver.
1 REPLY 1
Guru
Created ‎06-25-2018 06:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I verified internally within the code and addBatch method is not supported even in the latest version of HDP.
Below is the snippet from the code:
public void addBatch() throws SQLException { // TODO Auto-generated method stub throw new SQLException("Method not supported"); }
