Closed secfree closed 9 years ago
Yes, the jar needs to be available to HBase master and region servers. Otherwise the coprocessor/custom filter can't be used. We may want to lower the # of retries, 35, to a more reasonable value.
In addition, I recommend you to write github entries in English to maximize the exposure of them.
I recommend you to write github entries in English to maximize the exposure of them.
Thanks for your advice.
The attempts num is a parameter which can be controlled by client.
I add
<property>
<name>hbase.client.retries.number</name>
<value>3</value>
</property>
to hbase-site.xml
under $SPARK_HOME/conf/
, then the hbase-sql
can give a quick response when I query the RegionServer.
spark-sql-on-hbase-1.0.0.jar
to HBase's master and every RegionServer. export HBASE_CLASSPATH=/.../spark-sql-on-hbase-1.0.0.jar
in hbase-env.sh
The CheckDirService
coprocessor stay not registered.
I then add
<property>
<name>hbase.coprocessor.region.classes</name>
<value>org.apache.spark.sql.hbase.CheckDirProto</value>
</property>
to hbase-site.xml
, and the HBase's log indicates that I supplied the wrong value.
What should I set in hbase-site.xml
?
Thanks.
Hi @secfree,
Have you deployed the configured files, hbase-site.xml and hbase-env.sh, to each regionserver?
Yes, I sync all nodes' configure file with scripts.
This's is the log:
coprocessor.CoprocessorHost: The coprocessor org.apache.spark.sql.hbase.CheckDirProtos threw java.io.IOException: Configured class org.apache.spark.sql.hbase.CheckDirProtos must implement org.apache.hadoop.hbase.Coprocessor interface
Use value org.apache.spark.sql.hbase.CheckDirService
will lead a "ClassNotFoundException".
Should I add the hbase.coprocessor.region.classes
configure in hbase-site.xml
?
Hi @secfree,
No, you don't need to. I will check it later.
Hi @secfree,
It seems that you registered wrong class. :) Please change it to
Yes, it's OK now.
Thanks.
每次进入
hbase-sql
后, 执行的第一条 sql 查询, 会 hang 10 分钟左右, 然后输出:CheckDirService
在源码中有定义 proto, 但是没有单独的 jar 生成.难道需要将
spark-sql-on-hbase-1.0.0.jar
上传到 hbase 的 master 和每个 regionserver ? 这个 jar 文件很大, 如果是这样的话, 有点不方便.Thanks.