[
https://issues.apache.org/jira/browse/PHOENIX-6523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17752009#comment-17752009
]
Istvan Toth edited comment on PHOENIX-6523 at 8/10/23 6:08 AM:
---------------------------------------------------------------
Looking at org.apache.hadoop.hbase.client.MasterRegistry, the current Phoenix
URL format is a particulary bad match.
At least the host1,host2,host3:port format for ZK is historically approriate,
as that used to be only format supported by HBase.
However, HBase has never supported the same host1,host2,host3:port format for
HRPC, so we are making up a new format just for Phoenix.
We REALLY should implement the native HBase format for HRPC, and support
HBASE-12706 for ZK (which is basically the same thing).
was (Author: stoty):
Looking at org.apache.hadoop.hbase.client.MasterRegistry, the current Phoenix
URL format is a particulary bad match.
At least the host1,host2,host3:port format for ZK is historically approriate,
as that used to be only format supported by ZK.
However, HBase has never supported the same host1,host2,host3:port format for
HRPC, so we are making up a new format just for Phoenix.
We REALLY should implement the native HBase format for HRPC, and support
HBASE-12706 for ZK (which is basically the same thing).
> Support for HBase Registry Implementations through Phoenix connection URL
> -------------------------------------------------------------------------
>
> Key: PHOENIX-6523
> URL: https://issues.apache.org/jira/browse/PHOENIX-6523
> Project: Phoenix
> Issue Type: Improvement
> Components: core
> Reporter: Ramie Raufdeen
> Assignee: Istvan Toth
> Priority: Major
>
> https://issues.apache.org/jira/browse/HBASE-23305
> https://issues.apache.org/jira/browse/HBASE-18095
>
> HBase now supports a zookeeper-less connection strategy using a Master
> Registry implementation.
>
> For this to work, the client simply needs to set a list of <host:port>s of
> the HMaster quorum
>
> {code:java}
> <property>
> <name>hbase.masters</name>
> <value>master1:16000,master2:16001,master3:16000</value>
> </property>
> {code}
>
> To support opting into this from a Phoenix connection URL, we can introduce a
> "connector type". We'll leverage the *+* char of [JDBC URL
> grammar|https://docs.oracle.com/cd/E17952_01/connector-j-8.0-en/connector-j-reference-jdbc-url-format.html]
> to specify the connection type. Connections will start to look something
> like this:
> {code:java}
> jdbc:phoenix+zk:hostname1,2,3...:<properties>
> jdbc:phoenix+hrpc:hostname1,2,3...:<properties>
> jdbc:phoenix+bigtable:hostname1,2,3...:<properties>{code}
> Above are examples of opting into hrpc/zk/bigtable registry implementations
> of HBase.
>
> If no connector is specified, the driver will default to a Zookeeper based
> connection.
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)