Skip to content

Commit 2135834

Browse files
authored
MINOR: Improve the example of kafka-metadata-shell.sh (#19107)
Reviewers: Jhen-Yung Hsu <[email protected]>, TengYao Chi <[email protected]>, Ken Huang <[email protected]>, Chia-Ping Tsai <[email protected]>
1 parent 041d801 commit 2135834

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/ops.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3965,7 +3965,7 @@ <h5 class="anchor-heading"><a id="kraft_shell_tool" class="anchor-link"></a><a h
39653965

39663966
<p>The kafka-metadata-shell.sh tool can be used to interactively inspect the state of the cluster metadata partition:</p>
39673967

3968-
<pre><code class="language-bash">$ bin/kafka-metadata-shell.sh --snapshot metadata_log_dir/__cluster_metadata-0/00000000000000000000.checkpoint
3968+
<pre><code class="language-bash">$ bin/kafka-metadata-shell.sh --snapshot metadata_log_dir/__cluster_metadata-0/00000000000000007228-0000000001.checkpoint
39693969
&gt;&gt; ls /
39703970
brokers local metadataQuorum topicIds topics
39713971
&gt;&gt; ls /topics
@@ -3983,7 +3983,7 @@ <h5 class="anchor-heading"><a id="kraft_shell_tool" class="anchor-link"></a><a h
39833983
"partitionEpoch" : 0
39843984
}
39853985
&gt;&gt; exit</code></pre>
3986-
3986+
Note: <code>00000000000000000000-0000000000.checkpoint</code> does not contain cluster metadata. Use a valid snapshot file when examining metadata with the <code>kafka-metadata-shell.sh</code> tool.
39873987
<h4 class="anchor-heading"><a id="kraft_deployment" class="anchor-link"></a><a href="#kraft_deployment">Deploying Considerations</a></h4>
39883988

39893989
<ul>

0 commit comments

Comments
 (0)