ok, I see. Thank you! On Wed, Jul 15, 2015 at 10:47 PM, Rajkumar Singh <[email protected]> wrote:
> After looking at the stack I believe google guava-17 is available in the > class path, guava 17 deprecated the StopWatch constructor thats why you can > see the exception.I will suggest to remove guava-17 and add guava-14 to the > class path. > > Rajkumar Singh > MapR Technologies > > > > On Jul 15, 2015, at 3:46 PM, Stefán Baxter <[email protected]> > wrote: > > > > btw. I tried all versions of the connection string I could find > references > > to. (Just to make sure it was not a strange exception for a bad > connection > > string) > > > > -Stefna > > > > > > On Wed, Jul 15, 2015 at 10:01 PM, Stefán Baxter < > [email protected]> > > wrote: > > > >> Hi, > >> > >> I'm trying to establish a JDBC connection via zookeeper running on > >> localhost but I gen an exception when trying to connect. > >> > >> Setup: > >> - Drill 1.1 (using the standard drill-override.conf (unmodified)) > >> - zookeeper is running on localhost (default config) > >> - drillbit is running correctly > >> - drill-localhost running fine and queries are working fine > >> > >> I get this error: > >> - org.springframework.web.util.NestedServletException: Handler > processing > >> failed; nested exception is java.lang.IllegalAccessError: tried to > access > >> method com.google.common.base.Stopwatch.<init>()V from class > >> org.apache.drill.common.util.PathScanner > >> - Caused by: java.lang.IllegalAccessError: tried to access method > >> com.google.common.base.Stopwatch.<init>()V from class > >> org.apache.drill.common.util.PathScanner > >> > >> > >> Here is a simpliefied version of my connection that is throwing the > >> exception: > >> > >> conn = DriverManager.getConnection("jdbc:drill:zk= > 127.0.0.1:2181/drill/drillbits1;schema=dfs.tmp", "root", "root"); > >> > >> > >> Does anyone know what I'm doing wrong? > >> > >> I based this attempt on: > >> - https://drill.apache.org/docs/using-the-jdbc-driver/ > >> - Information in the workaround for this: > >> https://issues.apache.org/jira/browse/DRILL-3075 > >> > >> Regards, > >> -Stefan > >> > >
