Skip to content

PHOENIX-7848. Use ZK TLS properties from HBase config if present#2467

Open
anmolnar wants to merge 3 commits into
apache:masterfrom
anmolnar:PHOENIX-7848
Open

PHOENIX-7848. Use ZK TLS properties from HBase config if present#2467
anmolnar wants to merge 3 commits into
apache:masterfrom
anmolnar:PHOENIX-7848

Conversation

@anmolnar
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Parse ZooKeeper TLS properties from hbase-site.xml and add them to sqlline command line args.

Why are the changes needed?

Phoenix sqlline thick client is unable to connect to TLS-only ZooKeeper ensemble.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Locally.

Was this patch authored or co-authored using generative AI tooling?

No.

Comment thread bin/phoenix_utils.py
Comment thread bin/sqlline.py Outdated
@anmolnar
Copy link
Copy Markdown
Contributor Author

@richardantal I moved zk_tls_args to module level in order to be defined at all times.

I'm not sure about the exception handler. What should be the logic inside the exception handler? I don't want the error to be swallowed and ignored, because if there's anything wrong with the configuration, the tool should refuse to work.

Comment thread bin/phoenix_utils.py Outdated
Copy link
Copy Markdown
Contributor

@richardantal richardantal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks Andor for this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants