我无法在hbase和apache drill之间创建连接。我无法理解问题是在hbase上还是在apache drill上。
我可以在drill中创建存储插件。
{
"type": "hbase",
"config": {
"hbase.zookeeper.quorum": "localhost",
"hbase.zookeeper.property.clientPort": "2181"
},
"size.calculator.enabled": false,
"enabled": true
}
drill的gui返回了success。但是当我试图从drill中查询它时,我得到了多个错误。现在我遇到了下面的错误。
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参数进行了注解。
<configuration>
//Here you have to set the path where you want HBase to store its files.
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
//Here you have to set the path where you want HBase to store its built in zookeeper files.
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/local/Hbase/zookeeper</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>false</value>
</property>
<!--<property>
<name>zookeeper.znode.parent</name>
<value>/hbase-unsecure</value>
</property>-->
</configuration>
我尝试连接的hbase版本是1.2.2,两个hbase、drill都存在于同一台计算机中。
请帮助我解决这个问题,如果有人已经面临这个问题了。
1条答案
按热度按时间3pmvbmvn1#
在Drill1.7.0和1.8.0中存在一些问题,因此您只需尝试安装Drill1.6.0版本即可。您也可以阅读本教程。http://www.bogotobogo.com/drill/drill_tutorial_query_hbase.php