Skip to content

KAFKA-7455: Support JmxTool to connect to a secured RMI port.#5968

Merged
omkreddy merged 3 commits intoapache:trunkfrom
murong00:branch-7455
May 6, 2019
Merged

KAFKA-7455: Support JmxTool to connect to a secured RMI port.#5968
omkreddy merged 3 commits intoapache:trunkfrom
murong00:branch-7455

Conversation

@murong00
Copy link
Copy Markdown
Contributor

To connect to a secured RMI port (enabling remote JMX with password authentication and SSL), JmxTool should pass an envionrment map that contains relevant certification entry.

Copy link
Copy Markdown
Contributor

@asasvari asasvari left a comment

Choose a reason for hiding this comment

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

@murong00 Many thanks! I tested that JmxTool now can connect to SSL-enabled JMX port. I only left some minor comments.

@omkreddy can you take a look?

// password authentication enable
if (enablePasswordAuth) {
val userPassword = options.valueOf(jmxAuthPropOpt).split("=", 2)
val credentials = Array(userPassword(0), userPassword(1))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

userPassword is not needed, you can have something like

val credentials = options.valueOf(jmxAuthPropOpt).split("=", 2)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changed, thanks!

@murong00
Copy link
Copy Markdown
Contributor Author

@omkreddy PTAL, thanks!

@omkreddy
Copy link
Copy Markdown
Contributor

This may require a minor KIP.
@ijuma What do you think?

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Jan 15, 2019

Yes, that's correct.

@murong00
Copy link
Copy Markdown
Contributor Author

@omkreddy See more details in KIP-417, thanks!

@tal705
Copy link
Copy Markdown

tal705 commented Apr 3, 2019

@omkreddy Are there any plans to have this pull request being merged soon?

@murong00
Copy link
Copy Markdown
Contributor Author

retest this please

@murong00
Copy link
Copy Markdown
Contributor Author

@ijuma @omkreddy Could you help to review this minor improvement when you are available, thanks!

@omkreddy
Copy link
Copy Markdown
Contributor

@murong00 Thanks for the PR. LGTM. Can you bump up the KIP-417 vote thread? We need one more binding vote to pass the KIP.

@murong00
Copy link
Copy Markdown
Contributor Author

@omkreddy Binding vote via this thread, but I'm not sure whether it works.

@omkreddy
Copy link
Copy Markdown
Contributor

retest this please

@omkreddy
Copy link
Copy Markdown
Contributor

omkreddy commented May 6, 2019

@murong00 Sorry for the delay. Merging to trunk.

@omkreddy omkreddy merged commit 0c62f5e into apache:trunk May 6, 2019
ijuma added a commit to ijuma/kafka that referenced this pull request May 8, 2019
…s-hashcode

* apache-github/trunk:
  KAFKA-8158: Add EntityType for Kafka RPC fields (apache#6503)
  MINOR: correctly parse version OffsetCommitResponse version < 3
  KAFKA-8284: enable static membership on KStream (apache#6673)
  KAFKA-8304: Fix registration of Connect REST extensions (apache#6651)
  KAFKA-8275; Take throttling into account when choosing least loaded node (apache#6619)
  KAFKA-3522: Interactive Queries must return timestamped stores (apache#6661)
  MINOR: MetricsIntegrationTest should set StreamsConfig.STATE_DIR_CONFIG (apache#6687)
  MINOR: Remove unused field in `ListenerConnectionQuota`
  KAFKA-8131; Move --version implementation into CommandLineUtils (apache#6481)
  KAFKA-8056; Use automatic RPC generation for FindCoordinator (apache#6408)
  MINOR: Remove workarounds for lz4-java bug affecting byte buffers (apache#6679)
  KAFKA-7455: Support JmxTool to connect to a secured RMI port. (apache#5968)
  MINOR: Document improvement (apache#6682)
  MINOR: Fix ThrottledReplicaListValidator doc error. (apache#6537)
  KAFKA-8306; Initialize log end offset accurately when start offset is non-zero (apache#6652)
pengxiaolong pushed a commit to pengxiaolong/kafka that referenced this pull request Jun 14, 2019
…#5968)

Reviewers: Attila Sasvari <asasvari@apache.org>, Manikumar Reddy <manikumar.reddy@gmail.com>
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.

5 participants