Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Batch Insert into Hive using Hive JDBC

Batch Insert into Hive using Hive JDBC

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.


Re: Batch Insert into Hive using Hive JDBC

@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");
Don't have an account?
Coming from Hortonworks? Activate your account here