I have replaced the jar yet i get the following error
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/hadoop/util/PlatformName
Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.util.PlatformName
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.apache.hadoop.util.PlatformName. Program
will exit.
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/hadoop/conf/Configuration
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at
org.apache.hadoop.hbase.util.HBaseConfTool.main(HBaseConfTool.java:38)
Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.conf.Configuration
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 12 more
On Wed, Feb 8, 2012 at 1:31 AM, Stack <[email protected]> wrote:
> On Tue, Feb 7, 2012 at 1:16 AM, raghavendhra rahul
> <[email protected]> wrote:
> > Hi,
> >
> > I tried installing hbase on top of hadoop
> > yarn.I get the following error.Any suggestion
> > client1: Exception in thread "main"
> org.apache.hadoop.ipc.RemoteException:
> > Server IPC version 5 cannot communicate with client version 3
> > client1: at org.apache.hadoop.ipc.Client.call(Client.java:740)
> > client1: at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)
> > client1: at $Proxy5.getProtocolVersion(Unknown Source)
> > client1: at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:359)
> > client1: at
> > org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:106)
> > client1: at
> org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:207)
> > client1: at
> org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:170)
> > client1: at
> >
> org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:82)
> > client1: at
> > org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1378)
>
>
> You need to replace the hadoop jar that is under hbase lib with that
> of the cluster you are trying to communicate with.
>
> Please read the reference guide. Its plain you have not.
> http://hbase.apache.org/book.html#getting_started
>
> Thanks,
> St.Ack
>