[
https://issues.apache.org/jira/browse/KAFKA-8741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16898643#comment-16898643
]
ASF GitHub Bot commented on KAFKA-8741:
---------------------------------------
maohong commented on pull request #7153: KAFKA-8741: optimize the use of mx4j
web interface
URL: https://github.com/apache/kafka/pull/7153
1. Since mx4j-tools.jar is not packaged into the final released tgz file by
default, we can't monitor kafka brokers by web inferface. If we want to do it,
we must find a mx4j-tools.jar in the maven repository by our own and put it
under the directory $KAFKA_HOME/libs, which is very inconvenient.
2. In Mx4jLoader, we read the property values of 'kafka_mx4jenable' and
'mx4jport' from system properties, but there is no way for us to set the switch
and customize the port of mx4j-tools. We could add a configuration item in
kafka-run-class.sh. For example, if MX4J_PORT is set, we add
-Dkafka_mx4jenable=true -Dmx4jport=$MX4J_PORT into the start command.
testing strategy:
1. build the release tar.gz file
2. check if mx4j-tools.jar is under the directory of $kAFKA_HOME/libs
3. start broker, and check if http://$broker_ip:$MX4J_PORT works.
### Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> We should optimize the use of mx4j web interface
> ------------------------------------------------
>
> Key: KAFKA-8741
> URL: https://issues.apache.org/jira/browse/KAFKA-8741
> Project: Kafka
> Issue Type: Wish
> Components: core
> Affects Versions: 2.4.0
> Reporter: maohong
> Priority: Minor
> Labels: mx4j-tools
>
> # Since mx4j-tools.jar is not packaged into the final released tgz file by
> default, we can't monitor kafka brokers by web inferface. If we want to do
> it, we must find a mx4j-tools.jar in the maven repository by our own and put
> it under the directory $KAFKA_HOME/libs, which is very inconvenient.
> # In Mx4jLoader, we read the property values of 'kafka_mx4jenable' and
> 'mx4jport' from system properties, but there is no way for us to set the
> switch and customize the port of mx4j-tools. We could add a configuration
> item in kafka-run-class.sh. For example, if MX4J_PORT is set, we add
> -Dkafka_mx4jenable=true -Dmx4jport=$MX4J_PORT into the start command.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)