Drill 中的 HbaseStorageHandler 插件
HbaseStorageHandler plugin in Drill
我可以通过使用 Drill.Now 单独查询 hive、hbase 我正在尝试查询 hive 中的 HbaseStorageHandler 类型表。为此,我在 Drill、Hive Storage Plugin 中添加了这些属性,
{
"type": "hive",
"enabled": true,
"configProps": {
"hive.metastore.uris": "thrift://trinitybdClusterM02.trinitymobility.local:9083",
"javax.jdo.option.ConnectionURL": "jdbc:mysql://localhost:3306/metastore?createDatabaseIfNotExist=true",
"hive.metastore.warehouse.dir": "/tmp/drill_hive_wh",
"fs.default.name": "hdfs://trinitybdClusterM02.trinitymobility.local:9000",
"hive.metastore.sasl.enabled": "false",
"hbase.zookeeper.quorum": "localhost",
"hbase.zookeeper.property.clientPort": "2181"
}
}
我试过这样查询,
0: jdbc:drill:zk=localhost> 使用 hive.test;
0: jdbc:drill:zk=localhost> select * 来自 twitter_test_nlp 限制 1;
它给出的错误是,
Error: SYSTEM ERROR: NoSuchMethodError: org.apache.hadoop.hbase.client.Scan.setAttribute(Ljava/lang/String;[B)V
Fragment 0:0
[Error Id: fc3994f4-7d7e-475e-870b-259ac91ea81a on trinitybdClusterM02.trinitymobility.local:31010] (state=,code=0)
有人在使用这种类型,请与我分享我必须为查询 Hive 的 HBaseStorageHandler 表添加哪些属性。
在 drill 1.9 中,这个问题已经解决。 drill 1.9 直接支持 HbaseStorageHandler 表(Hive 和 hbase 集成表)也带有配置单元存储 plug-in。它直接支持空间查询也像 st_contains() etc.So 如果有人需要这些类型的要求使用 drill 1.9.0.
我可以通过使用 Drill.Now 单独查询 hive、hbase 我正在尝试查询 hive 中的 HbaseStorageHandler 类型表。为此,我在 Drill、Hive Storage Plugin 中添加了这些属性,
{
"type": "hive",
"enabled": true,
"configProps": {
"hive.metastore.uris": "thrift://trinitybdClusterM02.trinitymobility.local:9083",
"javax.jdo.option.ConnectionURL": "jdbc:mysql://localhost:3306/metastore?createDatabaseIfNotExist=true",
"hive.metastore.warehouse.dir": "/tmp/drill_hive_wh",
"fs.default.name": "hdfs://trinitybdClusterM02.trinitymobility.local:9000",
"hive.metastore.sasl.enabled": "false",
"hbase.zookeeper.quorum": "localhost",
"hbase.zookeeper.property.clientPort": "2181"
}
}
我试过这样查询,
0: jdbc:drill:zk=localhost> 使用 hive.test; 0: jdbc:drill:zk=localhost> select * 来自 twitter_test_nlp 限制 1;
它给出的错误是,
Error: SYSTEM ERROR: NoSuchMethodError: org.apache.hadoop.hbase.client.Scan.setAttribute(Ljava/lang/String;[B)V
Fragment 0:0
[Error Id: fc3994f4-7d7e-475e-870b-259ac91ea81a on trinitybdClusterM02.trinitymobility.local:31010] (state=,code=0)
有人在使用这种类型,请与我分享我必须为查询 Hive 的 HBaseStorageHandler 表添加哪些属性。
在 drill 1.9 中,这个问题已经解决。 drill 1.9 直接支持 HbaseStorageHandler 表(Hive 和 hbase 集成表)也带有配置单元存储 plug-in。它直接支持空间查询也像 st_contains() etc.So 如果有人需要这些类型的要求使用 drill 1.9.0.