hbase和apache drill存储插件

omvjsjqw  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(438)

我无法在hbase和apache drill之间创建连接。我无法理解问题是在hbase上还是在apache drill上。
我可以在drill中创建存储插件。

  1. {
  2. "type": "hbase",
  3. "config": {
  4. "hbase.zookeeper.quorum": "localhost",
  5. "hbase.zookeeper.property.clientPort": "2181"
  6. },
  7. "size.calculator.enabled": false,
  8. "enabled": true
  9. }

drill的gui返回了success。但是当我试图从drill中查询它时,我得到了多个错误。现在我遇到了下面的错误。

  1. Error: SYSTEM ERROR: IllegalAccessError: tried to access method com.google.common.base.Stopwatch.<init>()V from class org.apache.hadoop.hbase.zookeeper.MetaTableLocator

我也在粘贴hbase-site.xml配置。我之前在/hbase blah blah中遇到了一些节点错误,因此对zookeeper.znode.parent参数进行了注解。

  1. <configuration>
  2. //Here you have to set the path where you want HBase to store its files.
  3. <property>
  4. <name>hbase.rootdir</name>
  5. <value>hdfs://localhost:9000/hbase</value>
  6. </property>
  7. //Here you have to set the path where you want HBase to store its built in zookeeper files.
  8. <property>
  9. <name>hbase.zookeeper.property.dataDir</name>
  10. <value>/usr/local/Hbase/zookeeper</value>
  11. </property>
  12. <property>
  13. <name>hbase.cluster.distributed</name>
  14. <value>false</value>
  15. </property>
  16. <!--<property>
  17. <name>zookeeper.znode.parent</name>
  18. <value>/hbase-unsecure</value>
  19. </property>-->
  20. </configuration>

我尝试连接的hbase版本是1.2.2,两个hbase、drill都存在于同一台计算机中。
请帮助我解决这个问题,如果有人已经面临这个问题了。

3pmvbmvn

3pmvbmvn1#

在Drill1.7.0和1.8.0中存在一些问题,因此您只需尝试安装Drill1.6.0版本即可。您也可以阅读本教程。http://www.bogotobogo.com/drill/drill_tutorial_query_hbase.php

相关问题