Hi Otto, PFA the script I am using to start HDFS thrift server. Edit HADOOP_HOME in this script.
Hope this helps. From: Otto Rossbach [mailto:otto.rossb...@googlemail.com] Sent: Thursday, December 22, 2011 9:21 PM To: hdfs-user@hadoop.apache.org Subject: Trouble starting HDFS-Thrift-Server 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. ________________________________ ::DISCLAIMER:: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. -----------------------------------------------------------------------------------------------------------------------
hdfs_thrift_server.sh
Description: hdfs_thrift_server.sh