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 briefly.
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 error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/thriftfs/HadoopThriftServer Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.thriftfs.HadoopThriftServer 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: org.apache.hadoop.thriftfs.HadoopThriftServer. 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.