Hi Matteo,

You can also try to have guava 13 jar comes earlier than the Hadoop classpath, 
which it has guava 11 there.

Terence

Sent from my iPhone

> On Feb 10, 2017, at 6:58 PM, Yuliya Feldman <yul...@dremio.com> wrote:
> 
> It is a problem with guava versions difference
> 
> Twill is using version of guava that is different from Hadoop one
> 
> I would highly recommend create shaded jar with Twill libraries to shade
> guava
> 
> On Fri, Feb 10, 2017 at 6:52 PM, Matteo Pelati <matteo.pel...@gmail.com>
> wrote:
> 
>> 2.7.3
>> 
>> And this is teh stacktrace:
>> 
>> Exception in thread "main" java.lang.IncompatibleClassChangeError:
>> Implementing class
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
>> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
>> at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> at
>> org.apache.twill.internal.zookeeper.DefaultZKClientService.<init>(
>> DefaultZKClientService.java:98)
>> at
>> org.apache.twill.zookeeper.ZKClientService$Builder.build(
>> ZKClientService.java:101)
>> at
>> org.apache.twill.yarn.YarnTwillRunnerService.getZKClientService(
>> YarnTwillRunnerService.java:450)
>> at
>> org.apache.twill.yarn.YarnTwillRunnerService.<init>(
>> YarnTwillRunnerService.java:164)
>> at
>> org.apache.twill.yarn.YarnTwillRunnerService.<init>(
>> YarnTwillRunnerService.java:150)
>> at
>> com.dataheaps.beanszoo.utils.BundledJarExample.main(
>> BundledJarExample.java:72)
>> 
>> 
>> Thanks
>> Matteo
>> 
>>> On Sat, Feb 11, 2017 at 1:10 AM, Terence Yim <cht...@gmail.com> wrote:
>>> 
>>> Hi,
>>> 
>>> What is the Hadoop version you are using? And do you have the class name
>>> of the incompatible class involved?
>>> 
>>> Terence
>>> 
>>> Sent from my iPhone
>>> 
>>>> On Feb 10, 2017, at 8:11 AM, Matteo Pelati <matteo.pel...@gmail.com>
>>> wrote:
>>>> 
>>>> Hello,
>>>> 
>>>> I'm trying to use Twill in BeansZoo and I'm running into the following
>>>> excpetion when I try to run a basic application:
>>>> 
>>>> java.lang.IncompatibleClassChangeError: Implementing class
>>>> 
>>>> any hint ?
>>>> 
>>>> Thanks
>>>> Matteo
>>>> 
>>>> --
>>>> Matteo Pelati
>>>> Phone: +65-91149676
>>>> Skype: matteop1976
>>> 
>> 
>> 
>> 
>> --
>> Matteo Pelati
>> Phone: +65-91149676
>> Skype: matteop1976
>> 

Reply via email to