Member since
07-06-2023
1
Post
0
Kudos Received
0
Solutions
07-18-2023
07:07 AM
Hello, I've been trying to use Spark jdbc to connect to a CDP cloud virtual warehouse using the Hive jar (hive-jdbc-3.1.0-SNAPSHOT-standalone.jar) but I have the following error Caused by: java.sql.SQLFeatureNotSupportedException: Method not supported at org.apache.hive.jdbc.HivePreparedStatement.addBatch(HivePreparedStatement.java:78) Looking into the jar sources I see that the addBatch method throws the exception by default. Spark needs to use this method to insert the data into hive. Is there any other driver that can be used to overcome this problem.If no, does cloudera will support spark to connect to CDP virtual warehouse. Thanks in advance Best regards, Diego
... View more
Labels: