File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,22 @@ Or, build with testing. It will run test suites against a HBase minicluster.
40
40
$ mvn clean install
41
41
```
42
42
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
+
43
59
## Interactive Scala Shell
44
60
45
61
The easiest way to start using Spark HBase is through the Scala shell:
You can’t perform that action at this time.
0 commit comments