I'm connecting to 2 different DB, and their JDBC client both requires the package org.apache.calcite.avatica
, one is using version 1.6, and another is using version 1.8, so I need to install both the versions (1.6 and 1.8), and seems that the version 1.8 is not compatible with version 1.6, when I'm using the version 1.8 instead of 1.6, the following exception was thrown:
java.lang.AbstractMethodError
org.apache.calcite.avatica.AvaticaConnection.<init>(AvaticaConnection.java:117)
org.apache.kylin.jdbc.KylinConnection.<init>(KylinConnection.java:51)
org.apache.kylin.jdbc.KylinJdbcFactory.newConnection(KylinJdbcFactory.java:77)
org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:143)
org.apache.kylin.client.method.KylinJdbcMethod.getJdbcConnection(KylinJdbcMethod.java:45)
org.apache.kylin.client.Kylin.getJdbcConnection(Kylin.java:175)
And it seems that Maven is not designed to use like that.
So, what should I do to solve this problem?