hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otto Rossbach <otto.rossb...@googlemail.com>
Subject Trouble starting HDFS-Thrift-Server
Date Thu, 22 Dec 2011 15:50:59 GMT
Hi all,
I have some troubles accessing HDFS via PHP. Unfortunately I haven't found
a tutorial on how to do it. So I will describe my setup and my steps

I am using hadoop version 0.20.203 on my cluster. I have installed it in
/usr/local/hadoop. I copied the files from src/contrib/thriftfs/gen-php/ to
my thrift-root folder in the package directory hadoopfs. I already have a
thrift server running for my hive installation on the same machine. And I
can access Hive without any troubles.

Starting the HDFS thrift server with the example shell script in
src/contrib/thriftfs/scripts/start_thrift_server.sh I get the following

Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException:
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class:

Probably I somehow have to build the ThriftServer or I need to add it to
the classpath. Can anyone help me with this?
Thanks in advance.

View raw message