Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B72511A9C for ; Tue, 15 Jul 2014 20:59:31 +0000 (UTC) Received: (qmail 82023 invoked by uid 500); 15 Jul 2014 20:59:27 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 81906 invoked by uid 500); 15 Jul 2014 20:59:27 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 81894 invoked by uid 99); 15 Jul 2014 20:59:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2014 20:59:26 +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 analog.sony@gmail.com designates 209.85.216.175 as permitted sender) Received: from [209.85.216.175] (HELO mail-qc0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2014 20:59:23 +0000 Received: by mail-qc0-f175.google.com with SMTP id w7so1166294qcr.6 for ; Tue, 15 Jul 2014 13:58:59 -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=cZs9/EExj1Kv7tEkN0w1AYihRGagi9hd903RH8P6r+E=; b=TJELpa6Drb4oGtnWVQaTcW9cJckB9K81VJBhk4JjpI/hrfuYxuHODkGfv/P+A7086g nOow6UjLoJXfja7MqvqQCbhtVTsh2ir2nM3z39GJXSVT7080WNGyhXhaKKSg75GMU4E+ i+6PRCBhuOvg7ShgwfCqv5FYSdXQXkRWZdZhr4yKmV1i+WeteqyZ12CDhomMO5YKzReO edABL8L+EwvlEH1tYQS/ogDOOLlaP10AACMz5SpDKGYP5624dKmwJeJm2Hom4e1P5F2Y zPnnn7zdPPzAky7Vmpbky/E6YF5lJFoyam6uCXy+wPgCzqrs550CKk5DdkhP5ukRBTWV eZaw== MIME-Version: 1.0 X-Received: by 10.140.47.80 with SMTP id l74mr15393789qga.24.1405457939027; Tue, 15 Jul 2014 13:58:59 -0700 (PDT) Received: by 10.229.236.65 with HTTP; Tue, 15 Jul 2014 13:58:58 -0700 (PDT) In-Reply-To: References: Date: Tue, 15 Jul 2014 13:58:58 -0700 Message-ID: Subject: Re: OIV TOOL ERROR From: Anandha L Ranganathan To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a11c1606433dab404fe41add4 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1606433dab404fe41add4 Content-Type: text/plain; charset=UTF-8 which version of hadoop are you using ? If it is 2.4.x and above use hdfs -oiv otherwise use hadoop -oiv. On Tue, Jul 15, 2014 at 12:51 PM, Ashish Dobhal wrote: > Hey everyone i got the following error with the oiv tool. > Please help > ERROR > > hdfs oiv -i /home/hduser/fsimage1234 -o /home/hduser/interpret.txt > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/commons/cli/ParseException > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2570) > at java.lang.Class.getMethod0(Class.java:2813) > at java.lang.Class.getMethod(Class.java:1663) > at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) > at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) > Caused by: java.lang.ClassNotFoundException: > org.apache.commons.cli.ParseException > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > ... 6 more > THANKS A LOT > --001a11c1606433dab404fe41add4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
which version of hadoop are you using ?

If it is 2.4.x and above use hdfs -oiv <input> <output>
oth= erwise use hadoop -oiv. <input> <output>


On Tue, Jul 15, 2014 at 12:51 PM, Ashish= Dobhal <dobhalashish772@gmail.com> wrote:
Hey everyone i got the following error with the oiv tool.<= div>Please help
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ERROR

hdfs oiv -i /home/hdu= ser/fsimage1234 -o /home/hduser/interpret.txt
Exception in thread "main" java.lang.NoClassDefFoundError: o= rg/apache/commons/cli/ParseException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privat= eGetDeclaredMethods(Class.java:2570)
at java.lang.Class.getMethod0(Class.java:2813)
at java.lang.Class.getMet= hod(Class.java:1663)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherH= elper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.l= ang.ClassNotFoundException: org.apache.commons.cli.ParseException
at java.net.URLClassLoade= r$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessCo= ntroller.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:3= 54)
at java.lang.ClassLoader.= loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308= )
at java.lang.ClassLoader.= loadClass(ClassLoader.java:358)
... 6 more
THANKS A LOT

--001a11c1606433dab404fe41add4--