which version of hadoop are you using ?

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


On Tue, Jul 15, 2014 at 12:51 PM, Ashish Dobhal <dobhalashish...@gmail.com>
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
>

Reply via email to