C/C++ codes for test if HDFS work well