You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Sanjeet Malhotra (Jira)" <ji...@apache.org> on 2022/10/08 12:30:00 UTC

[jira] [Comment Edited] (HBASE-27420) Failure while connecting to zk if HBase is running in standalone mode in a container

    [ https://issues.apache.org/jira/browse/HBASE-27420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17614476#comment-17614476 ] 

Sanjeet Malhotra edited comment on HBASE-27420 at 10/8/22 12:29 PM:
--------------------------------------------------------------------

[~apurtell] shall I also update the HBase guide to highlight that by default in standalone mode zk listens for client connections on loopback IP unless above config is specified as for distributed mode, zk listens for all client connections by default.


was (Author: JIRAUSER296184):
[~apurtell] shall I also update the HBase guide to highlight that by default zk listens for client connections on loopback IP unless above config is specified as for distributed mode, zk listens for all client connections by default.

> Failure while connecting to zk if HBase is running in standalone mode in a container
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-27420
>                 URL: https://issues.apache.org/jira/browse/HBASE-27420
>             Project: HBase
>          Issue Type: Bug
>          Components: Zookeeper
>            Reporter: Sanjeet Malhotra
>            Assignee: Sanjeet Malhotra
>            Priority: Major
>             Fix For: 3.0.0-alpha-4
>
>
> With [this change|https://issues.apache.org/jira/browse/HBASE-23993] zookeeper will only listen for client connections on 127.0.0.1 in standalone mode. If HBase is running in standalone mode inside a docker container and docker port forwarding is being used to connect to HBase inside container then, any client trying to connect to zk will have destination IP as container's private IP rather than loopback IP. This will cause zk to reject all client connections being initiated from outside the container. 
> Thus, we need a way to make zk listen for client connections on IP other than loopback. zk already provides a property named `clientPortAddress` to specify the address to listen for client connections. And, we can specify zk properties using `hbase.zookeeper.property.` prefix. Thus, the proposal is to allow user to specify the IP address that zk will listen on using `hbase.zookeeper.property.clientPortAddress` and if its not specified then default to loopback as per current behaviour.
> This way, the tests will still remain unimpacted and HBase can also be used in standalone mode in a container.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)