com.mysql.cj.core.exceptions.WrongArgumentException

tip

Set timezone with UTC offset instead of a named timezone. use this command in mysql console:
SET GLOBAL time_zone = '+3:00';

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Using both Hive and MySql JDBC drivers
    via Stack Overflow by Gideon
    ,
    • com.mysql.cj.core.exceptions.WrongArgumentException: Connector/J cannot handle a database URL of type 'jdbc:hive2:'. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:54) at com.mysql.cj.core.conf.url.ConnectionUrl$Type.fromValue(ConnectionUrl.java:149) at com.mysql.cj.core.conf.url.ConnectionUrl.getConnectionUrlInstance(ConnectionUrl.java:193) at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:195) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:247) at company.services.HiveV2Provider.createConnection(HiveProvider.scala:105) at company.services.HiveProvider$class.loanConnection(HiveProvider.scala:66)

    Users with the same issue

    ivanszkypeterivanszkypeter
    14 times, last one,
    mortalman7mortalman7
    1 times, last one,
    bandocabandoca
    8 times, last one,
    jstrayerjstrayer
    2 times, last one,