简体   繁体   English

在HappyBase HBase客户端中设置Zookeeper节点(znode)设置

[英]Set Zookeeper Node (znode) setting in HappyBase HBase client

I want to connect to a Kerberos secured HBase database via HappyBase (python). 我想通过HappyBase(python)连接到受Kerberos 保护的 HBase数据库。

The connection worked for another unsecured cluster with this settings: 使用以下设置,该连接可用于另一个不安全的群集:

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

Now I want to connect to my secured database via the Zookeeper quorum (let's say host2.domain.de ) and the port 2181 . 现在,我想通过Zookeeper仲裁(例如host2.domain.de )和端口2181连接到我的安全数据库。 The zookeper node is /hbase-secured zookeper节点受/hbase-secured

I try to connect to my db with the same code as shown above (after making a kinit via console). 我尝试使用与上面所示相同的代码连接到我的数据库(通过控制台创建一个kinit之后)。 But I can't connect. 但是我无法连接。 It seems to be a problem with the changed /hbase-secured zookeeper node. 更改后的/hbase-secured zookeeper节点似乎存在问题。

Is there a possibility to change this zookeeper node setting? 是否可以更改此Zookeeper节点设置? Or can't HappyBase connect to a Kerberized cluster yet? 还是HappyBase不能连接到Kerberized集群? Do I need to make the Kerberos settings in another way? 我是否需要以其他方式进行Kerberos设置?

I'm using HBase 1.1.2 in a Hortonworks Data Platform 2.6 environment, trying to connect with HappyBase 1.1.0. 我在Hortonworks Data Platform 2.6环境中使用HBase 1.1.2,试图与HappyBase 1.1.0连接。

It's not supported. 不支持。

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

The host and port arguments specify the host name and TCP port of the HBase Thrift server to connect to. host和port参数指定要连接的HBase Thrift服务器的主机名和TCP端口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM