com.mysql.cj.core.exceptions.WrongArgumentException: Connector/J cannot handle a database URL of type 'jdbc:hive2:'.

Stack Overflow | Gideon | 1 month ago
  1. 0

    Using both Hive and MySql JDBC drivers

    Stack Overflow | 1 month ago | Gideon
    com.mysql.cj.core.exceptions.WrongArgumentException: Connector/J cannot handle a database URL of type 'jdbc:hive2:'.

  1. jstrayer 2 times, last 2 months ago

Root Cause Analysis

  1. com.mysql.cj.core.exceptions.WrongArgumentException

    Connector/J cannot handle a database URL of type 'jdbc:hive2:'.

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    4 frames
  3. com.mysql.cj
    NonRegisteringDriver.connect
    1. com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:54)
    2. com.mysql.cj.core.conf.url.ConnectionUrl$Type.fromValue(ConnectionUrl.java:149)
    3. com.mysql.cj.core.conf.url.ConnectionUrl.getConnectionUrlInstance(ConnectionUrl.java:193)
    4. com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:195)
    4 frames
  4. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:664)
    2. java.sql.DriverManager.getConnection(DriverManager.java:247)
    2 frames
  5. company.services
    HiveProvider$class.loanConnection
    1. company.services.HiveV2Provider.createConnection(HiveProvider.scala:105)
    2. company.services.HiveProvider$class.loanConnection(HiveProvider.scala:66)
    2 frames