How to use apache drill with java and maven? -


i trying out drill sample in project using example.

https://github.com/vicenteg/drilljdbcexample/blob/master/src/main/java/com/mapr/drill/drilljdbcexample.java

i've included dependency in maven pom:

<dependency>     <groupid>org.apache.drill.exec</groupid>     <artifactid>drill-jdbc</artifactid>     <version>1.4.0</version> </dependency> 

the error getting is: exception in thread "main" java.lang.nosuchmethoderror: com.google.common.base.stopwatch.elapsed(ljava/util/concurrent/timeunit;)j

i tried resolve adding google guava:

  <dependency>         <groupid>com.google.guava</groupid>         <artifactid>guava</artifactid>         <version>19.0</version>     </dependency> 

however, when included dependency in pomfile, following error:

exception in thread "main" java.lang.illegalaccesserror: tried access method com.google.common.base.stopwatch.<init>()v class org.apache.drill.common.config.drillconfig 

com.google.common.base.stopwatch.elapsed() method removed in guava 16. must using guava 16+.

drill using guava 14.0.1. that's reason of issue. so, drill 1.4, use guava 14.0.1.

there issue upgrading guava jar 18.0 in drill jira. check details. it's fixed upcoming drill version 1.6.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -