2013-10-05 07:32:05 +02:00
|
|
|
This directory contains the hdfs extensions needed to make rocksdb store
|
2012-06-08 10:11:14 +02:00
|
|
|
files in HDFS.
|
|
|
|
|
2014-05-20 23:22:12 +02:00
|
|
|
It has been compiled and testing against CDH 4.4 (2.0.0+1475-1.cdh4.4.0.p0.23~precise-cdh4.4.0).
|
|
|
|
|
|
|
|
The configuration assumes that packages libhdfs0, libhdfs0-dev are
|
|
|
|
installed which basically means that hdfs.h is in /usr/include and libhdfs in /usr/lib
|
2012-06-08 10:11:14 +02:00
|
|
|
|
2013-10-05 07:32:05 +02:00
|
|
|
The env_hdfs.h file defines the rocksdb objects that are needed to talk to an
|
2012-06-08 10:11:14 +02:00
|
|
|
underlying filesystem.
|
|
|
|
|
2013-10-05 07:32:05 +02:00
|
|
|
If you want to compile rocksdb with hdfs support, please set the following
|
2015-12-10 17:54:48 +01:00
|
|
|
environment variables appropriately (also defined in setup.sh for convenience)
|
2012-06-08 10:11:14 +02:00
|
|
|
USE_HDFS=1
|
2016-04-07 23:34:29 +02:00
|
|
|
JAVA_HOME=/usr/local/jdk-7u79-64
|
2016-04-12 06:08:26 +02:00
|
|
|
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/jdk-7u79-64/jre/lib/amd64/server:/usr/local/jdk-7u79-64/jre/lib/amd64/:./snappy/libs
|
2012-06-08 10:11:14 +02:00
|
|
|
make clean all db_bench
|
|
|
|
|
|
|
|
To run dbbench,
|
|
|
|
set CLASSPATH to include your hadoop distribution
|
|
|
|
db_bench --hdfs="hdfs://hbaseudbperf001.snc1.facebook.com:9000"
|
|
|
|
|
|
|
|
|