Skip to content

Commit 2e7d079

Browse files
author
Xinyun Huang
committed
Add more config information
1 parent 73d8256 commit 2e7d079

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,22 @@ Or, build with testing. It will run test suites against a HBase minicluster.
4040
$ mvn clean install
4141
```
4242

43+
## Activate Coprocessor and Custom Filter in HBase
44+
45+
First, add the path of spark-hbase jar to the hbase-env.sh in $HBASE_HOME/conf directory, as follows:
46+
```
47+
HBASE_CLASSPATH=$SPARK_CLASSPATH:/spark-hbase-root-dir/target/spark-sql-on-hbase-1.0.0.jar
48+
```
49+
Then, register the coprocessor service 'CheckDirEndPoint' to hbase-site.xml in the same directory, as follows:
50+
```
51+
<property>
52+
<name>hbase.coprocessor.region.classes</name>
53+
<value>org.apache.spark.sql.hbase.CheckDirEndPointImpl</value>
54+
</property>
55+
```
56+
(Warning: Don't register another coprocessor service 'SparkSqlRegionObserver' here !)
57+
58+
4359
## Interactive Scala Shell
4460

4561
The easiest way to start using Spark HBase is through the Scala shell:

0 commit comments

Comments
 (0)