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 575DD9D8B for ; Tue, 19 Jun 2012 03:43:25 +0000 (UTC) Received: (qmail 58041 invoked by uid 500); 19 Jun 2012 03:43:25 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 57870 invoked by uid 500); 19 Jun 2012 03:43:24 -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 57845 invoked by uid 99); 19 Jun 2012 03:43:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 03:43:23 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wslacum@gmail.com designates 209.85.214.169 as permitted sender) Received: from [209.85.214.169] (HELO mail-ob0-f169.google.com) (209.85.214.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 03:43:19 +0000 Received: by obbtb8 with SMTP id tb8so3711835obb.0 for ; Mon, 18 Jun 2012 20:42:58 -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:content-transfer-encoding; bh=vkUkGimqWNGgmNOBh+aVsk3sexbQp/dGY5xUhCIufW0=; b=i3JOymxC2KviePC14LaKKEg0LWKgVxbeGsc5TURvXdp420BQZoFn211jxj+O6kTQ6X PMvgkbFm5pNom9OmJORqf/cLNTgSM4JHxWFGAal13oFXzDpHFJpXCeFjmR0u6xSX+UrP MqUyc71azuBmLXrr5SKZ3OPli6Lz2y4Z5l7pAP4MS9dc48mCuk2/LrfVGMW7vZJcF+gb C4MVWluERw6aawecAWUmXEiy9wbHhUJWakbazjmHHCmov6hQUe34VanXwnhGWPxrTeeS HDkpXRgV3ajK+hn0U9UXfxAzc5xI12UfYNdIeXNPOO970SQb7JpHXmVdJ14wiL04dVwD XOfw== MIME-Version: 1.0 Received: by 10.60.1.37 with SMTP id 5mr5100080oej.10.1340077378316; Mon, 18 Jun 2012 20:42:58 -0700 (PDT) Received: by 10.182.39.132 with HTTP; Mon, 18 Jun 2012 20:42:58 -0700 (PDT) In-Reply-To: References: Date: Mon, 18 Jun 2012 23:42:58 -0400 Message-ID: Subject: Re: [External] Re: accumulo init not working From: William Slacum To: user@accumulo.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Did your NameNode start up correctly? If on a local instance, you can verify this by running `jps -lm`. If jps isn't on your path, it should be located in $JAVA_HOME/bin. If the NameNode is not running, check your Hadoop logs. The log you want should have "namenode" in the file name-- it should tell you want went wrong. I commonly see this when setting up a new instance if I forget to run `hadoop namenode -format`. On Mon, Jun 18, 2012 at 11:29 PM, Shrestha, Tejen [USA] wrote: > Thank you for the quick reply. =A0You were right I had downloaded the sou= rce > instead of the dist. > I ran: mvn package && mvn assembly:single =96N as per the Accumulo README= . > =A0I'm not getting the exception anymore but now I can't get it to connec= t for > some reason. =A0Again, Hadoop and Zookeeper are running fine and this is = the > error that I get after $ACCUMULO/bin/accumulo init > > 18 23:04:55,614 [ipc.Client] INFO : Retrying connect to server: > localhost/127.0.0.1:9000. Already tried 0 time(s). > 18 23:04:56,618 [ipc.Client] INFO : Retrying connect to server: > localhost/127.0.0.1:9000. Already tried 1 time(s). > 18 23:04:57,620 [ipc.Client] INFO : Retrying connect to server: > localhost/127.0.0.1:9000. Already tried 2 time(s). > 18 23:04:58,621 [ipc.Client] INFO : Retrying connect to server: > localhost/127.0.0.1:9000. Already tried 3 time(s). > 18 23:04:59,623 [ipc.Client] INFO : Retrying connect to server: > localhost/127.0.0.1:9000. Already tried 4 time(s). > 18 23:05:00,625 [ipc.Client] INFO : Retrying connect to server: > localhost/127.0.0.1:9000. Already tried 5 time(s). > 18 23:05:01,625 [ipc.Client] INFO : Retrying connect to server: > localhost/127.0.0.1:9000. Already tried 6 time(s). > 18 23:05:02,627 [ipc.Client] INFO : Retrying connect to server: > localhost/127.0.0.1:9000. Already tried 7 time(s). > 18 23:05:03,629 [ipc.Client] INFO : Retrying connect to server: > localhost/127.0.0.1:9000. Already tried 8 time(s). > 18 23:05:04,631 [ipc.Client] INFO : Retrying connect to server: > localhost/127.0.0.1:9000. Already tried 9 time(s). > 18 23:05:04,634 [util.Initialize] FATAL: java.net.ConnectException: Call = to > localhost/127.0.0.1:9000 failed on connection exception: > java.net.ConnectException: Connection refused > java.net.ConnectException: Call to localhost/127.0.0.1:9000 failed on > connection exception: java.net.ConnectException: Connection refused > at org.apache.hadoop.ipc.Client.wrapException(Client.java:767) > at org.apache.hadoop.ipc.Client.call(Client.java:743) > at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220) > at $Proxy0.getProtocolVersion(Unknown Source) > at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:359) > at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:106) > at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:207) > at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:170) > at > org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSy= stem.java:82) > at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1378) > at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66) > at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1390) > at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:196) > at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:95) > at org.apache.accumulo.core.file.FileUtil.getFileSystem(FileUtil.java:554= ) > at org.apache.accumulo.server.util.Initialize.main(Initialize.java:426) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.accumulo.start.Main$1.run(Main.java:89) > at java.lang.Thread.run(Thread.java:680) > Caused by: java.net.ConnectException: Connection refused > at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) > at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) > at > org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.jav= a:206) > at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:404) > at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:304= ) > at org.apache.hadoop.ipc.Client$Connection.access$1700(Client.java:176) > at org.apache.hadoop.ipc.Client.getConnection(Client.java:860) > at org.apache.hadoop.ipc.Client.call(Client.java:720) > ... 20 more > Thread "init" died null > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.accumulo.start.Main$1.run(Main.java:89) > at java.lang.Thread.run(Thread.java:680) > Caused by: java.lang.RuntimeException: java.net.ConnectException: Call to > localhost/127.0.0.1:9000 failed on connection exception: > java.net.ConnectException: Connection refused > at org.apache.accumulo.server.util.Initialize.main(Initialize.java:436) > ... 6 more > > There was more but I figured it was getting too long. > > From: John Vines > Reply-To: "user@accumulo.apache.org" > Date: Monday, June 18, 2012 10:40 PM > To: "user@accumulo.apache.org" > Subject: [External] Re: accumulo init not working > > Initial thoughts are that it's not compiled. Either you meant to download > the dist instead of the src, or you did not build the src. Make sure you > downloaded the src, or run maven package (requires maven to be installed)= . > > John > > On Mon, Jun 18, 2012 at 10:29 PM, Shrestha, Tejen [USA] > wrote: >> >> Hi, >> >> I am getting this exception when I run $ACCUMULO_HOME/bin/accumulo init: >> >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/accumulo/start/Platform >> Caused by: java.lang.ClassNotFoundException: >> org.apache.accumulo.start.Platform >> at java.net.URLClassLoader$1.run(URLClassLoader.java:202) >> 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) >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/accumulo/start/Main >> Caused by: java.lang.ClassNotFoundException: >> org.apache.accumulo.start.Main >> at java.net.URLClassLoader$1.run(URLClassLoader.java:202) >> 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) >> >> Hadoop and Zoopkeeper are running without problems but I can't seem to g= et >> past initializing Accumulo. > >