Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFBF610965 for ; Tue, 3 Sep 2013 17:58:02 +0000 (UTC) Received: (qmail 60123 invoked by uid 500); 3 Sep 2013 17:58:00 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 60088 invoked by uid 500); 3 Sep 2013 17:58:00 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 60079 invoked by uid 99); 3 Sep 2013 17:58:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Sep 2013 17:58:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of eric.newton@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-wg0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Sep 2013 17:57:53 +0000 Received: by mail-wg0-f54.google.com with SMTP id e12so4300800wgh.9 for ; Tue, 03 Sep 2013 10:57:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Ibz5lDEVczHoyehtJR1kVr2U7aRYvIVyjM3aok4/L8U=; b=t3Q6ICHfCWjJqINwZq7SMHT3i7ZToqGNmU8/dh6jDJrZsPTHYhMhyzkvgPOtbnAeru AkE/8uH5lUf99UgDHYhIt+g2UvBM3+qX0TIT5wOPSNlqFUKoTY+Lf4t/YhhnpOgbYWc6 8dxzR94F0sVxMSWA/KYj4Mk29D0OwbGtWpiTgYf5gu68p0c9scUJKGu4p0/FU4QquMAR kCYKwo57tlZzVuxb/4T1k2vHPp3QDr0BlwNIeNoA/cx2DDQHuksL2RbdlvKVyPskw7ja r3pTlVe2wjp103UpA1WtkLsuKCAiE4R9rx0FgA7Upk6TxT5UE2ov0zX0vnhtSzFGvVHM frlg== MIME-Version: 1.0 X-Received: by 10.180.210.231 with SMTP id mx7mr19502767wic.5.1378231052999; Tue, 03 Sep 2013 10:57:32 -0700 (PDT) Received: by 10.216.85.138 with HTTP; Tue, 3 Sep 2013 10:57:32 -0700 (PDT) In-Reply-To: <817A1C7D-F9E9-4B75-9CFF-1574783F78A2@gmail.com> References: <817A1C7D-F9E9-4B75-9CFF-1574783F78A2@gmail.com> Date: Tue, 3 Sep 2013 13:57:32 -0400 Message-ID: Subject: Re: Exception during connection to ZooKeeperInstance From: Eric Newton To: "user@accumulo.apache.org" Content-Type: multipart/alternative; boundary=001a11c25d3255284004e57e6cc8 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c25d3255284004e57e6cc8 Content-Type: text/plain; charset=ISO-8859-1 Are you using the same version of hadoop/accumulo as the Accumulo Shell? You can checkout the accumulo classpath like this: $ ./bin/accumulo classpath You are using a slightly newer version of thrift (0.9.1 vs 0.9.0). -Eric On Tue, Sep 3, 2013 at 12:55 PM, Benjamin Parrish < benjamin.d.parrish@gmail.com> wrote: > I am attempting to test out Accumulo for use at work. I am running into a > problem with getting Java code to work. I am using an Ubuntu VM that came > prepared with Acumulo, ZooKeeper, and Hadoop already setup. I can SSH into > the VM, and I can run the Acumulo shell with no problem. However when > running Java code I am running into the Exception below. > > Here is my classpath: > accumulo-core-1.4.2 > commons-collections-3.2.1 > commons-lang-1.0 > commons-logging-1.1.1 > commons-net-1.4.1 > hadoop-core-1.0.1 > libthrift-0.9.1 > log4j-1.2.16 > slf4j-api-1.7.5 > slf4j-jdk14-1.7.5 > zookeeper-3.4.3 > > Exception in thread "main" java.lang.IncompatibleClassChangeError: > Implementing class > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) > at java.lang.ClassLoader.defineClass(ClassLoader.java:615) > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) > at java.net.URLClassLoader.access$000(URLClassLoader.java:58) > at java.net.URLClassLoader$1.run(URLClassLoader.java:197) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > at org.apache.accumulo.core.client.impl.ServerClient.getConnection( > ServerClient.java:146) > at org.apache.accumulo.core.client.impl.ServerClient.getConnection( > ServerClient.java:123) > at org.apache.accumulo.core.client.impl.ServerClient.executeRaw( > ServerClient.java:105) > at org.apache.accumulo.core.client.impl.ServerClient.execute( > ServerClient.java:71) > at org.apache.accumulo.core.client.impl.ConnectorImpl.( > ConnectorImpl.java:75) > at org.apache.accumulo.core.client.ZooKeeperInstance.getConnector( > ZooKeeperInstance.java:218) > at AccumuloTest.main(AccumuloTest.java:21) > > Thanks > > Ben > --001a11c25d3255284004e57e6cc8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Are you using the same version of hadoop/accumulo as the A= ccumulo Shell?

You can checkout the accumulo class= path like this:

$ ./bin/accumulo class= path

You are using a slightly newer version of t= hrift (0.9.1 vs 0.9.0).

-Eric



On Tue, Sep 3, 2013 at 12:55 PM, Benjamin Parrish <benjamin.d.p= arrish@gmail.com> wrote:
I am attempting to test out Accumulo for use at work. = =A0I am running into a problem with getting Java code to work. =A0I am usin= g an Ubuntu VM that came prepared with Acumulo, ZooKeeper, and Hadoop alrea= dy setup. =A0I can SSH into the VM, and I can run the Acumulo shell with no= problem. =A0However when running Java code I am running into the Exception= below.

Here is my classpath= :
accumulo= -core-1.4.2
commons-collect= ions-3.2.1
commons-lang-1.0
commons-logging-1.1.1
commons-net-1.4.1
hadoop-core-1.0.1
libthrift-0.9.1
log4j-1.2.16
slf4j-api-1.7.5
slf4j-jdk14-1.7.5
zookeeper-3.4.3

Exception in thread "main" java.lang.IncompatibleClassChangeError= : Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.= defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.= defineClass(C= lassLoader.java:615)
at java.security.SecureCl= assLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoade= r.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoade= r.access$000(= URLClassLoader.java:58)
at java.net.URLClassLoade= r$1.run(URLCl= assLoader.java:197)
at java.security.AccessCo= ntroller.doPrivileged(Native Method)
at java.net.URLClassLoade= r.findClass(U= RLClassLoader.java:190)
at java.lang.ClassLoader.= loadClass(Cla= ssLoader.java:306)
at sun.misc.Launcher$AppC= lassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.= loadClass(Cla= ssLoader.java:247)
at org.apache.accumulo.co= re.client.impl.ServerClient.getConnection(ServerClient.java:146)
at org.apache.accumulo.co= re.client.impl.ServerClient.getConnection(ServerClient.java:123)
at org.apache.accumulo.co= re.client.impl.ServerClient.executeRaw(ServerClient.java:105)
at org.apache.accumulo.co= re.client.impl.ServerClient.execute(ServerClient.java:71)
at org.apache.accumulo.co= re.client.impl.ConnectorImpl.<init>(ConnectorImpl.java:75)
at org.apache.accumulo.co= re.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:218)
at AccumuloTest.main(AccumuloTest.java= :21)

= Thanks
Ben
=

--001a11c25d3255284004e57e6cc8--