[
https://issues.apache.org/jira/browse/CAMEL-27845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-27845:
--------------------------------
Description:
Found while improving the option descriptions of camel-drill for CAMEL-23832
(commit
https://github.com/apache/camel/commit/387f7ff0b6ea13b1acc5d8ca1e8ae0ec8dbee737,
pull request https://github.com/apache/camel/pull/31143).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. directory or clusterId alone is misread
{{DrillEndpoint.toJDBCUri}} with only directory or only clusterId builds
zk=host:port/value (one slash), which does not match Drill's
(^.*?)/(.*)/([^/]*)$ pattern, so ZooKeeper takes /value as a chroot and Drill
looks for its default /drill/drillbits1 under it. clusterId alone is never used
as a cluster id.
Proposed change: default the missing one ("drill" / "drillbits1"), or fail and
say both are needed.
h4. 2. host=local never works
Camel always adds :port, so the URL has zk=local:2181, while the Drill driver
needs exactly zk=local for a local Drillbit (the old text promised this).
Proposed change: leave out the port for local, or drop the idea.
_Claude Code on behalf of davsclaus_
was:
Found while improving the option descriptions of camel-drill for CAMEL-23832
(pull request https://github.com/apache/camel/pull/31143).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. directory or clusterId alone is misread
{{DrillEndpoint.toJDBCUri}} with only directory or only clusterId builds
zk=host:port/value (one slash), which does not match Drill's
(^.*?)/(.*)/([^/]*)$ pattern, so ZooKeeper takes /value as a chroot and Drill
looks for its default /drill/drillbits1 under it. clusterId alone is never used
as a cluster id.
Proposed change: default the missing one ("drill" / "drillbits1"), or fail and
say both are needed.
h4. 2. host=local never works
Camel always adds :port, so the URL has zk=local:2181, while the Drill driver
needs exactly zk=local for a local Drillbit (the old text promised this).
Proposed change: leave out the port for local, or drop the idea.
_Claude Code on behalf of davsclaus_
> camel-drill: directory or clusterId alone is taken as a ZooKeeper chroot
> ------------------------------------------------------------------------
>
> Key: CAMEL-27845
> URL: https://issues.apache.org/jira/browse/CAMEL-27845
> Project: Camel
> Issue Type: Bug
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-drill for CAMEL-23832
> (commit
> https://github.com/apache/camel/commit/387f7ff0b6ea13b1acc5d8ca1e8ae0ec8dbee737,
> pull request https://github.com/apache/camel/pull/31143).
> These are separate problems of the component; the descriptions change only
> documents the current behavior.
> h4. 1. directory or clusterId alone is misread
> {{DrillEndpoint.toJDBCUri}} with only directory or only clusterId builds
> zk=host:port/value (one slash), which does not match Drill's
> (^.*?)/(.*)/([^/]*)$ pattern, so ZooKeeper takes /value as a chroot and Drill
> looks for its default /drill/drillbits1 under it. clusterId alone is never
> used as a cluster id.
> Proposed change: default the missing one ("drill" / "drillbits1"), or fail
> and say both are needed.
> h4. 2. host=local never works
> Camel always adds :port, so the URL has zk=local:2181, while the Drill driver
> needs exactly zk=local for a local Drillbit (the old text promised this).
> Proposed change: leave out the port for local, or drop the idea.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)