Skip to content

Commit

Permalink
KAFKA-14576: Move ConsoleConsumer to tools (apache#15274)
Browse files Browse the repository at this point in the history
Reviewers: Josep Prat <[email protected]>, Omnia Ibrahim <[email protected]>
  • Loading branch information
mimaison authored Feb 13, 2024
1 parent 8c0488b commit 0bf830f
Show file tree
Hide file tree
Showing 22 changed files with 1,996 additions and 1,641 deletions.
2 changes: 1 addition & 1 deletion bin/kafka-console-consumer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then
export KAFKA_HEAP_OPTS="-Xmx512M"
fi

exec $(dirname $0)/kafka-run-class.sh kafka.tools.ConsoleConsumer "$@"
exec $(dirname $0)/kafka-run-class.sh org.apache.kafka.tools.consumer.ConsoleConsumer "$@"
2 changes: 1 addition & 1 deletion bin/windows/kafka-console-consumer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ rem limitations under the License.

SetLocal
set KAFKA_HEAP_OPTS=-Xmx512M
"%~dp0kafka-run-class.bat" kafka.tools.ConsoleConsumer %*
"%~dp0kafka-run-class.bat" org.apache.kafka.tools.consumer.ConsoleConsumer %*
EndLocal
18 changes: 11 additions & 7 deletions checkstyle/import-control.xml
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,17 @@
<allow pkg="kafka.utils" />
<allow pkg="scala.collection" />

<subpackage name="consumer">
<allow pkg="org.apache.kafka.tools"/>

<subpackage name="group">
<allow pkg="kafka.api"/>
<allow pkg="org.apache.kafka.tools"/>
<allow pkg="org.apache.kafka.server.config" />
<allow pkg="scala"/>
</subpackage>
</subpackage>

<subpackage name="reassign">
<allow pkg="org.apache.kafka.admin"/>
<allow pkg="org.apache.kafka.tools"/>
Expand All @@ -331,13 +342,6 @@
<allow pkg="scala" />
</subpackage>

<subpackage name="consumer.group">
<allow pkg="kafka.api"/>
<allow pkg="org.apache.kafka.tools"/>
<allow pkg="org.apache.kafka.server.config" />
<allow pkg="scala"/>
</subpackage>

<subpackage name="other">
<allow pkg="org.apache.kafka.tools.reassign"/>
<allow pkg="kafka.log" />
Expand Down
4 changes: 2 additions & 2 deletions checkstyle/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,11 @@
<suppress checks="ClassDataAbstractionCoupling"
files="VerifiableConsumer.java"/>
<suppress checks="CyclomaticComplexity"
files="(StreamsResetter|ProducerPerformance|Agent).java"/>
files="(ConsoleConsumer|DefaultMessageFormatter|StreamsResetter|ProducerPerformance|Agent).java"/>
<suppress checks="BooleanExpressionComplexity"
files="StreamsResetter.java"/>
<suppress checks="NPathComplexity"
files="(ProducerPerformance|StreamsResetter|Agent|TransactionalMessageCopier|ReplicaVerificationTool).java"/>
files="(DefaultMessageFormatter|ProducerPerformance|StreamsResetter|Agent|TransactionalMessageCopier|ReplicaVerificationTool).java"/>
<suppress checks="ImportControl"
files="SignalLogger.java"/>
<suppress checks="IllegalImport"
Expand Down
Loading

0 comments on commit 0bf830f

Please sign in to comment.