【问题标题】:Set Zookeeper Node (znode) setting in HappyBase HBase client在 HappyBase HBase 客户端中设置 Zookeeper 节点(znode)设置
【发布时间】:2017-08-09 15:27:55
【问题描述】:

我想通过 HappyBase (python) 连接到 Kerberos 安全 HBase 数据库。

该连接适用于具有此设置的另一个不安全集群:

import happybase
connection = happybase.Connection("host1.domain.de", port=9090)
connection.open()
print(connection.tables())

现在我想通过 Zookeeper quorum(比如说host2.domain.de)和端口2181 连接到我的安全数据库。 zookeper 节点为/hbase-secured

我尝试使用与上面所示相同的代码连接到我的数据库(在通过控制台创建kinit 之后)。但我无法连接。改了/hbase-securedzookeeper节点好像有问题。

是否有可能更改此 zookeeper 节点设置?或者,HappyBase 还不能连接到 Kerberized 集群吗?我需要以其他方式进行 Kerberos 设置吗?

我在 Hortonworks Data Platform 2.6 环境中使用 HBase 1.1.2,尝试连接 HappyBase 1.1.0。

【问题讨论】:

    标签: python hbase kerberos hortonworks-data-platform happybase


    【解决方案1】:

    不支持。

    https://happybase.readthedocs.io/en/latest/api.html#connection

    host 和 port 参数指定要连接的 HBase Thrift 服务器 的主机名和 TCP 端口。

    【讨论】:

      猜你喜欢
      • 2017-11-11
      • 2016-02-20
      • 2015-12-21
      • 2015-09-25
      • 2012-11-03
      • 2018-06-04
      • 2019-02-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多