1. Fix the hdfsHFlush to hdfsFlush.
2. Add JAVA_HOME/include to CMakeLists.txt.
Signed-off-by: Wang Sen <
kelvi...@gmail.com>
---
Index: src/backend/hdfs_storage.c
===================================================================
--- src/backend/hdfs_storage.c (版本 1857)
+++ src/backend/hdfs_storage.c (工作副本)
@@ -150,14 +150,14 @@
//HLOG_DEBUG("hdfs -- enter func %s", __func__);
hdfsFile hfile = (hdfsFile)file;
//HLOG_DEBUG("hdfs -- leave func %s", __func__);
- return hdfsHFlush((hdfsFS)storage->fs_handler, hfile);
+ return hdfsFlush((hdfsFS)storage->fs_handler, hfile);
}
int hdfs_file_delete(struct back_storage *storage, const char *path){
//HLOG_DEBUG("hdfs -- enter func %s", __func__);
char full_path[256];
build_hdfs_path(full_path, storage->dir, storage->fs_name, path);
- int ret = hdfsDelete((hdfsFS)storage->fs_handler, full_path,0);
+ int ret = hdfsDelete((hdfsFS)storage->fs_handler, full_path);
//HLOG_DEBUG("hdfs -- leave func %s", __func__);
return ret;
}
Index: src/CMakeLists.txt
===================================================================
--- src/CMakeLists.txt (版本 1857)
+++ src/CMakeLists.txt (工作副本)
@@ -27,16 +27,15 @@
MESSAGE(STATUS "Probe Java Home:" ${JAVA_HOME})
INCLUDE_DIRECTORIES(
-
#/usr/lib/glib-2.0/include
#/usr/lib/i386-linux-gnu/glib-2.0/include
- #/usr/lib/x86_64-linux-gnu/glib-2.0/include
- #${JAVA_HOME}/include
- #${JAVA_HOME}/include/linux
+ #/usr/lib/x86_64-linux-gnu/glib-2.0/include
+ ${JAVA_HOME}/include
+ ${JAVA_HOME}/include/linux
#${HADOOP_HOME}/include
#${LOG_HOME}/include
#${SNAPPY_HOME}/include
- /usr/include/
+ /usr/include/
include
.)
# Use SRCS to save all the sources.