kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mj...@apache.org
Subject [kafka] branch 2.2 updated: KAFKA-8913: Document topic based configs & ISR settings for Streams apps (#7346)
Date Wed, 18 Sep 2019 00:38:46 GMT
This is an automated email from the ASF dual-hosted git repository.

mjsax pushed a commit to branch 2.2
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/2.2 by this push:
     new bf0e10e  KAFKA-8913: Document topic based configs & ISR settings for Streams
apps (#7346)
bf0e10e is described below

commit bf0e10e5a79b4652bf630c48d488065837170f01
Author: vinoth chandar <vinothchandar@users.noreply.github.com>
AuthorDate: Tue Sep 17 17:36:59 2019 -0700

    KAFKA-8913: Document topic based configs & ISR settings for Streams apps (#7346)
    
    Reviewer: Matthias J. Sax <matthias@confluent.io>
---
 docs/streams/developer-guide/config-streams.html | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/docs/streams/developer-guide/config-streams.html b/docs/streams/developer-guide/config-streams.html
index d143752..678253f 100644
--- a/docs/streams/developer-guide/config-streams.html
+++ b/docs/streams/developer-guide/config-streams.html
@@ -615,6 +615,14 @@
 </pre></div>
           </div>
           <p> Same applied to <code class="docutils literal"><span class="pre">main.consumer.</span></code>
and <code class="docutils literal"><span class="pre">main.consumer.</span></code>,
if you only want to specify one consumer type config.</p>
+          <p> Additionally, to configure the internal repartition/changelog topics,
you could use the <code class="docutils literal"><span class="pre">topic.</span></code>
prefix, followed by any of the standard topic configs.</p>
+            <div class="highlight-java"><div class="highlight"><pre><span></span><span
class="n">Properties</span> <span class="n">streamsSettings</span> <span
class="o">=</span> <span class="k">new</span> <span class="n">Properties</span><span
class="o">();</span>
+<span class="c1">// Override default for both changelog and repartition topics</span>
+<span class="n">streamsSettings</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="s">&quot;topic.PARAMETER_NAME&quot;</span><span
class="o">,</span> <span class="s">&quot;topic-value&quot;</span><span
class="o">);</span>
+<span class="c1">// alternatively, you can use</span>
+<span class="n">streamsSettings</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">StreamsConfig</span><span
class="o">.</span><span class="na">topicPrefix</span><span class="o">(</span><span
class="s">&quot;PARAMETER_NAME&quot;</span><span class="o">),</span>
<span class="s">&quot;topic-value&quot;</span><span class="o">);</span>
+</pre></div>
+            </div>
           </div>
         </div>
         <div class="section" id="default-values">
@@ -763,6 +771,7 @@
             <div>See the <a class="reference internal" href="#replication-factor-parm"><span
class="std std-ref">description here</span></a>.</div></blockquote>
           <div class="highlight-java"><div class="highlight"><pre><span></span><span
class="n">Properties</span> <span class="n">streamsSettings</span> <span
class="o">=</span> <span class="k">new</span> <span class="n">Properties</span><span
class="o">();</span>
 <span class="n">streamsSettings</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">StreamsConfig</span><span
class="o">.</span><span class="na">REPLICATION_FACTOR_CONFIG</span><span
class="o">,</span> <span class="mi">3</span><span class="o">);</span>
+<span class="n">streamsSettings</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">StreamsConfig</span><span
class="o">.</span><span class="na">topicPrefix</span><span class="o">(</span><span
class="n">TopicConfig</span><span class="o">.</span><span class="na">MIN_IN_SYNC_REPLICAS_CONFIG</span><span
class="o">),</span> <span class="mi">2</span><span class="o">);</span>
 <span class="n">streamsSettings</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">StreamsConfig</span><span
class="o">.</span><span class="na">producerPrefix</span><span class="o">(</span><span
class="n">ProducerConfig</span><span class="o">.</span><span class="na">ACKS_CONFIG</span><span
class="o">),</span> <span class="s">&quot;all&quot;</span><span
class="o">);</span>
 </pre></div>
           </div>


Mime
View raw message