new

get email;
read hdfs;
write hdfs;

gcc hdfs_read.c -I${HADOOP_HOME}/src/c++/libhdfs -I${JAVA_HOME}/include
-I${JAVA_HOME}/include/linux -L${HADOOP_HOME}/libhdfs -lhdfs -o
hdfs_read

gcc hdfs_write.c -I${HADOOP_HOME}/src/c++/libhdfs -I${JAVA_HOME}/include
-I${JAVA_HOME}/include/linux -L${HADOOP_HOME}/libhdfs -lhdfs -o
hdfs_write