File tree Expand file tree Collapse file tree 7 files changed +52
-497
lines changed Expand file tree Collapse file tree 7 files changed +52
-497
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ if test "$USE_HDFS"; then
289
289
exit 1
290
290
fi
291
291
HDFS_CCFLAGS=" $HDFS_CCFLAGS -I$JAVA_HOME /include -I$JAVA_HOME /include/linux -DUSE_HDFS"
292
- HDFS_LDFLAGS=" $HDFS_LDFLAGS -Wl,--no-whole-archive hdfs/libhdfs.a -L$JAVA_HOME /jre/lib/amd64"
292
+ HDFS_LDFLAGS=" $HDFS_LDFLAGS -Wl,--no-whole-archive -lhdfs -L$JAVA_HOME /jre/lib/amd64"
293
293
HDFS_LDFLAGS=" $HDFS_LDFLAGS -L$JAVA_HOME /jre/lib/amd64/server -L$GLIBC_RUNTIME_PATH /lib"
294
294
HDFS_LDFLAGS=" $HDFS_LDFLAGS -ldl -lverify -ljava -ljvm"
295
295
COMMON_FLAGS=" $COMMON_FLAGS $HDFS_CCFLAGS "
Original file line number Diff line number Diff line change 1
1
This directory contains the hdfs extensions needed to make rocksdb store
2
2
files in HDFS.
3
3
4
- The hdfs.h file is copied from the Apache Hadoop 1.0 source code.
5
- It defines the libhdfs library
6
- (http://hadoop.apache.org/common/docs/r0.20.2/libhdfs.html) to access
7
- data in HDFS. The libhdfs.a is copied from the Apache Hadoop 1.0 build.
8
- It implements the API defined in hdfs.h. If your hadoop cluster is running
9
- a different hadoop release, then install these two files manually from your
10
- hadoop distribution and then recompile rocksdb.
4
+ It has been compiled and testing against CDH 4.4 (2.0.0+1475-1.cdh4.4.0.p0.23~precise-cdh4.4.0).
5
+
6
+ The configuration assumes that packages libhdfs0, libhdfs0-dev are
7
+ installed which basically means that hdfs.h is in /usr/include and libhdfs in /usr/lib
11
8
12
9
The env_hdfs.h file defines the rocksdb objects that are needed to talk to an
13
10
underlying filesystem.
14
11
15
12
If you want to compile rocksdb with hdfs support, please set the following
16
- enviroment variables appropriately:
13
+ enviroment variables appropriately (also defined in setup.sh for convenience)
17
14
USE_HDFS=1
18
15
JAVA_HOME=/usr/local/jdk-6u22-64
19
16
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/jdk-6u22-64/jre/lib/amd64/server:/usr/local/jdk-6u22-64/jre/lib/amd64/:./snappy/libs
Original file line number Diff line number Diff line change 14
14
#include " rocksdb/status.h"
15
15
16
16
#ifdef USE_HDFS
17
- #include " hdfs/hdfs.h "
17
+ #include < hdfs.h >
18
18
19
19
namespace rocksdb {
20
20
You can’t perform that action at this time.
0 commit comments