Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Configure CLI with YAML Files #62988

Open
xyu opened this issue Apr 25, 2024 · 0 comments
Open

Unable to Configure CLI with YAML Files #62988

xyu opened this issue Apr 25, 2024 · 0 comments

Comments

@xyu
Copy link

xyu commented Apr 25, 2024

Howdy!

The current CLI docs indicates that it should be possible to configure clickhouse-client with YAML as well as XML:

Or the same config in a YAML format:

user: username
password: 'password'
secure: true
openSSL:
  client:
    caConfig: '/etc/ssl/cert.pem'

However this does not seem to work because the YAML parser transforms the config into XML before merging and it always appends a clickhouse root element:

Poco::AutoPtr<Poco::XML::Document> xml = new Document;
Poco::AutoPtr<Poco::XML::Element> root_node = xml->createElement("clickhouse");
xml->appendChild(root_node);

Which does not match the requisite config root element that the CLI configs normally use resulting in errors like:

Merging bypassed - configuration file '/etc/clickhouse-client/config.d/xyu.yaml' doesn't belong to configuration '/etc/clickhouse-client/config.xml' - merging root node name 'clickhouse' doesn't match 'config'

When starting up the CLI with trace logging (clickhouse-client --log-level trace).

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

No branches or pull requests

2 participants