Support Questions

Find answers, ask questions, and share your expertise

Batch Insert into Hive using Hive JDBC

avatar
New Contributor

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

avatar

@Nagendra Sharma

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");
}