This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 26c98e7 Updated site at revision a16b64a
26c98e7 is described below
commit 26c98e72aa096ead5d53233ef2ea9e9d5032998f
Author: jenkins <[email protected]>
AuthorDate: Sun Aug 26 08:38:26 2018 +0000
Updated site at revision a16b64a
---
content/api/pulsar-functions/index-all.html | 4 ++
.../org/apache/pulsar/functions/api/Record.html | 32 ++++++++++++---
content/docs/zh-CN/client-libraries-cpp.html | 2 +-
content/docs/zh-CN/client-libraries-cpp/index.html | 2 +-
content/docs/zh-CN/client-libraries-go.html | 8 ++--
content/docs/zh-CN/client-libraries-go/index.html | 8 ++--
content/docs/zh-CN/client-libraries-java.html | 38 +++++++++---------
.../docs/zh-CN/client-libraries-java/index.html | 38 +++++++++---------
content/docs/zh-CN/next/client-libraries-cpp.html | 2 +-
.../zh-CN/next/client-libraries-cpp/index.html | 2 +-
content/docs/zh-CN/next/client-libraries-go.html | 8 ++--
.../docs/zh-CN/next/client-libraries-go/index.html | 8 ++--
content/docs/zh-CN/next/client-libraries-java.html | 38 +++++++++---------
.../zh-CN/next/client-libraries-java/index.html | 38 +++++++++---------
content/docs/zh-CN/next/security-extending.html | 2 +-
.../docs/zh-CN/next/security-extending/index.html | 2 +-
content/docs/zh-CN/security-extending.html | 2 +-
content/docs/zh-CN/security-extending/index.html | 2 +-
.../docs/zh-CN/security-tls-authentication.html | 4 +-
.../zh-CN/security-tls-authentication/index.html | 4 +-
content/docs/zh-CN/security-tls-transport.html | 4 +-
.../docs/zh-CN/security-tls-transport/index.html | 4 +-
content/swagger/swagger.json | 46 +++++++++++-----------
23 files changed, 161 insertions(+), 137 deletions(-)
diff --git a/content/api/pulsar-functions/index-all.html
b/content/api/pulsar-functions/index-all.html
index 9377c11..d40daca 100644
--- a/content/api/pulsar-functions/index-all.html
+++ b/content/api/pulsar-functions/index-all.html
@@ -126,6 +126,10 @@
<dd>
<div class="block">Access the record associated with the current input
value</div>
</dd>
+<dt><span class="memberNameLink"><a
href="org/apache/pulsar/functions/api/Record.html#getEventTime--">getEventTime()</a></span>
- Method in interface org.apache.pulsar.functions.api.<a
href="org/apache/pulsar/functions/api/Record.html" title="interface in
org.apache.pulsar.functions.api">Record</a></dt>
+<dd>
+<div class="block">Retrieves the event time of the record from the
source.</div>
+</dd>
<dt><span class="memberNameLink"><a
href="org/apache/pulsar/functions/api/Context.html#getFunctionId--">getFunctionId()</a></span>
- Method in interface org.apache.pulsar.functions.api.<a
href="org/apache/pulsar/functions/api/Context.html" title="interface in
org.apache.pulsar.functions.api">Context</a></dt>
<dd>
<div class="block">The id of the function that we are executing</div>
diff --git
a/content/api/pulsar-functions/org/apache/pulsar/functions/api/Record.html
b/content/api/pulsar-functions/org/apache/pulsar/functions/api/Record.html
index 93bc5f3..638db51 100644
--- a/content/api/pulsar-functions/org/apache/pulsar/functions/api/Record.html
+++ b/content/api/pulsar-functions/org/apache/pulsar/functions/api/Record.html
@@ -17,7 +17,7 @@
catch(err) {
}
//-->
-var methods = {"i0":18,"i1":18,"i2":6,"i3":18,"i4":18,"i5":18,"i6":18,"i7":6};
+var methods =
{"i0":18,"i1":18,"i2":18,"i3":6,"i4":18,"i5":18,"i6":18,"i7":18,"i8":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance
Methods"],4:["t3","Abstract Methods"],16:["t5","Default Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
@@ -132,36 +132,42 @@ var activeTableTab = "activeTableTab";
</td>
</tr>
<tr id="i2" class="altColor">
+<td class="colFirst"><code>default Optional<Long></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../../org/apache/pulsar/functions/api/Record.html#getEventTime--">getEventTime</a></span>()</code>
+<div class="block">Retrieves the event time of the record from the
source.</div>
+</td>
+</tr>
+<tr id="i3" class="rowColor">
<td class="colFirst"><code>Optional<String></code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../../org/apache/pulsar/functions/api/Record.html#getKey--">getKey</a></span>()</code>
<div class="block">Return a key if the key has one associated</div>
</td>
</tr>
-<tr id="i3" class="rowColor">
+<tr id="i4" class="altColor">
<td class="colFirst"><code>default Optional<String></code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../../org/apache/pulsar/functions/api/Record.html#getPartitionId--">getPartitionId</a></span>()</code>
<div class="block">Retrieves the partition information if any of the
record.</div>
</td>
</tr>
-<tr id="i4" class="altColor">
+<tr id="i5" class="rowColor">
<td class="colFirst"><code>default Map<String,String></code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../../org/apache/pulsar/functions/api/Record.html#getProperties--">getProperties</a></span>()</code>
<div class="block">Retrieves user-defined properties attached to record.</div>
</td>
</tr>
-<tr id="i5" class="rowColor">
+<tr id="i6" class="altColor">
<td class="colFirst"><code>default Optional<Long></code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../../org/apache/pulsar/functions/api/Record.html#getRecordSequence--">getRecordSequence</a></span>()</code>
<div class="block">Retrieves the sequence of the record from a source
partition.</div>
</td>
</tr>
-<tr id="i6" class="altColor">
+<tr id="i7" class="rowColor">
<td class="colFirst"><code>default Optional<String></code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../../org/apache/pulsar/functions/api/Record.html#getTopicName--">getTopicName</a></span>()</code>
<div class="block">If the record originated from a topic, report the topic
name</div>
</td>
</tr>
-<tr id="i7" class="rowColor">
+<tr id="i8" class="altColor">
<td class="colFirst"><code><a
href="../../../../../org/apache/pulsar/functions/api/Record.html" title="type
parameter in Record">T</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../../org/apache/pulsar/functions/api/Record.html#getValue--">getValue</a></span>()</code>
<div class="block">Retrieves the actual data of the record</div>
@@ -216,6 +222,20 @@ var activeTableTab = "activeTableTab";
</dl>
</li>
</ul>
+<a name="getEventTime--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getEventTime</h4>
+<pre>default Optional<Long> getEventTime()</pre>
+<div class="block">Retrieves the event time of the record from the
source.</div>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>millis since epoch</dd>
+</dl>
+</li>
+</ul>
<a name="getPartitionId--">
<!-- -->
</a>
diff --git a/content/docs/zh-CN/client-libraries-cpp.html
b/content/docs/zh-CN/client-libraries-cpp.html
index a7b5de7..6f2709e 100644
--- a/content/docs/zh-CN/client-libraries-cpp.html
+++ b/content/docs/zh-CN/client-libraries-cpp.html
@@ -126,7 +126,7 @@
<p>Pulsar protocol URLs are assigned to specific clusters, use the pulsar
scheme and have a default port of 6650. Here’s an example for localhost:</p>
<pre><code class="hljs css language-http">pulsar://localhost:6650
</code></pre>
-<p>A URL for a production Pulsar cluster may look something like this:</p>
+<p>生产环境的Pulsar 集群URL类似这样:</p>
<pre><code class="hljs css
language-http">pulsar://pulsar.us-west.example.com:6650
</code></pre>
<p>If you’re using TLS authentication, the URL will look like something like
this:</p>
diff --git a/content/docs/zh-CN/client-libraries-cpp/index.html
b/content/docs/zh-CN/client-libraries-cpp/index.html
index a7b5de7..6f2709e 100644
--- a/content/docs/zh-CN/client-libraries-cpp/index.html
+++ b/content/docs/zh-CN/client-libraries-cpp/index.html
@@ -126,7 +126,7 @@
<p>Pulsar protocol URLs are assigned to specific clusters, use the pulsar
scheme and have a default port of 6650. Here’s an example for localhost:</p>
<pre><code class="hljs css language-http">pulsar://localhost:6650
</code></pre>
-<p>A URL for a production Pulsar cluster may look something like this:</p>
+<p>生产环境的Pulsar 集群URL类似这样:</p>
<pre><code class="hljs css
language-http">pulsar://pulsar.us-west.example.com:6650
</code></pre>
<p>If you’re using TLS authentication, the URL will look like something like
this:</p>
diff --git a/content/docs/zh-CN/client-libraries-go.html
b/content/docs/zh-CN/client-libraries-go.html
index 67ce9d6..ddc6b01 100644
--- a/content/docs/zh-CN/client-libraries-go.html
+++ b/content/docs/zh-CN/client-libraries-go.html
@@ -68,11 +68,11 @@
<pre><code class="hljs css language-go"><span
class="hljs-keyword">import</span> <span
class="hljs-string">"github.com/apache/incubator-pulsar/pulsar-client-go/pulsar"</span>
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="connection-urls"></a><a
href="#connection-urls" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 [...]
-<p>To connect to Pulsar using client libraries, you need to specify a <a
href="/docs/zh-CN/develop-binary-protocol">Pulsar protocol</a> URL.</p>
-<p>Pulsar protocol URLs are assigned to specific clusters, use the
<code>pulsar</code> scheme and have a default port of 6650. Here's an example
for <code>localhost</code>:</p>
+<p>要使用客户端连接到Pulsar,你需要指定<a href="/docs/zh-CN/develop-binary-protocol">Pulsar
协议</a>URL。</p>
+<p>Pulsar协议 url 使用 <code>pulsar</code> scheme来指定被连接的集群,默认端口为6650。以下是
<code>localhost</code> 的示例:</p>
<pre><code class="hljs css language-http">pulsar://localhost:6650
</code></pre>
-<p>A URL for a production Pulsar cluster may look something like this:</p>
+<p>生产环境的Pulsar 集群URL类似这样:</p>
<pre><code class="hljs css
language-http">pulsar://pulsar.us-west.example.com:6650
</code></pre>
<p>If you're using <a href="/docs/zh-CN/security-tls-authentication">TLS</a>
authentication, the URL will look like something like this:</p>
@@ -457,7 +457,7 @@ reader, err := client.CreateReader(pulsar.ReaderOptions{
Authentication: NewAuthenticationTLS(<span
class="hljs-string">"my-cert.pem"</span>, <span
class="hljs-string">"my-key.pem"</span>),
}
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/client-libraries-java">← The Pulsar Java client</a><a
class="docs-next button" href="/docs/zh-CN/client-libraries-python">The Pulsar
Python client →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#installation">Installation</a><ul
class="toc-headings"><li><a href="#requirements">Requirements</a></li><li><a
href="#installing-go-package">Installing go pac [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/client-libraries-java">← Pulsar Java客户端</a><a
class="docs-next button" href="/docs/zh-CN/client-libraries-python">The Pulsar
Python client →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#installation">Installation</a><ul
class="toc-headings"><li><a href="#requirements">Requirements</a></li><li><a
href="#installing-go-package">Installing go package</a> [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/client-libraries-go/index.html
b/content/docs/zh-CN/client-libraries-go/index.html
index 67ce9d6..ddc6b01 100644
--- a/content/docs/zh-CN/client-libraries-go/index.html
+++ b/content/docs/zh-CN/client-libraries-go/index.html
@@ -68,11 +68,11 @@
<pre><code class="hljs css language-go"><span
class="hljs-keyword">import</span> <span
class="hljs-string">"github.com/apache/incubator-pulsar/pulsar-client-go/pulsar"</span>
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="connection-urls"></a><a
href="#connection-urls" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 [...]
-<p>To connect to Pulsar using client libraries, you need to specify a <a
href="/docs/zh-CN/develop-binary-protocol">Pulsar protocol</a> URL.</p>
-<p>Pulsar protocol URLs are assigned to specific clusters, use the
<code>pulsar</code> scheme and have a default port of 6650. Here's an example
for <code>localhost</code>:</p>
+<p>要使用客户端连接到Pulsar,你需要指定<a href="/docs/zh-CN/develop-binary-protocol">Pulsar
协议</a>URL。</p>
+<p>Pulsar协议 url 使用 <code>pulsar</code> scheme来指定被连接的集群,默认端口为6650。以下是
<code>localhost</code> 的示例:</p>
<pre><code class="hljs css language-http">pulsar://localhost:6650
</code></pre>
-<p>A URL for a production Pulsar cluster may look something like this:</p>
+<p>生产环境的Pulsar 集群URL类似这样:</p>
<pre><code class="hljs css
language-http">pulsar://pulsar.us-west.example.com:6650
</code></pre>
<p>If you're using <a href="/docs/zh-CN/security-tls-authentication">TLS</a>
authentication, the URL will look like something like this:</p>
@@ -457,7 +457,7 @@ reader, err := client.CreateReader(pulsar.ReaderOptions{
Authentication: NewAuthenticationTLS(<span
class="hljs-string">"my-cert.pem"</span>, <span
class="hljs-string">"my-key.pem"</span>),
}
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/client-libraries-java">← The Pulsar Java client</a><a
class="docs-next button" href="/docs/zh-CN/client-libraries-python">The Pulsar
Python client →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#installation">Installation</a><ul
class="toc-headings"><li><a href="#requirements">Requirements</a></li><li><a
href="#installing-go-package">Installing go pac [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/client-libraries-java">← Pulsar Java客户端</a><a
class="docs-next button" href="/docs/zh-CN/client-libraries-python">The Pulsar
Python client →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#installation">Installation</a><ul
class="toc-headings"><li><a href="#requirements">Requirements</a></li><li><a
href="#installing-go-package">Installing go package</a> [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/client-libraries-java.html
b/content/docs/zh-CN/client-libraries-java.html
index e21bdb6..7fb4811 100644
--- a/content/docs/zh-CN/client-libraries-java.html
+++ b/content/docs/zh-CN/client-libraries-java.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta
http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Java client ·
Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta
name="generator" content="Docusaurus"/><meta name="description" content="The
Pulsar Java client can be used both to create Java producers, consumers, and
[readers](#readers) of messages and to perform [administrative
tasks](/docs/zh-CN/admin-api-overview). The cur [...]
+<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta
http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Java client ·
Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta
name="generator" content="Docusaurus"/><meta name="description" content="Pulsar
Java客户端可用于创建Java生产者、消费者、
[消息读取器](#readers),也可以执行[管理任务](/docs/zh-CN/admin-api-overview)。 Java 客户端的当前版本为
**2.1.0-incubating**。"/><meta name="docsearch:version"
content="2.1.0-incubating" [...]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
@@ -45,26 +45,26 @@
};
}
});
- </script></nav></div><div class="container mainContainer"><div
class="wrapper"><div class="post"><header class="postHeader"><a
class="edit-page-link button"
href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank"
rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar
Java client</h1></header><article><div><span><p>The Pulsar Java client can be
used both to create Java producers, consumers, and <a
href="#readers">readers</a> of messages and to [...]
-<p>Javadoc for the Pulsar client is divided up into two domains, by
package:</p>
+ </script></nav></div><div class="container mainContainer"><div
class="wrapper"><div class="post"><header class="postHeader"><a
class="edit-page-link button"
href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank"
rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar
Java client</h1></header><article><div><span><p>Pulsar Java客户端可用于创建Java生产者、消费者、
<a href="#readers">消息读取器</a>,也可以执行<a
href="/docs/zh-CN/admin-api-overview">管理任务</a>。 Java 客户端的当前版本 [...]
+<p>Pulsar客户端的Javadoc分成了两个包:</p>
<table>
<thead>
-<tr><th style="text-align:left">Package</th><th
style="text-align:left">Description</th><th style="text-align:left">Maven
Artifact</th></tr>
+<tr><th style="text-align:left">包</th><th
style="text-align:left">Description</th><th style="text-align:left">Maven
Artifact</th></tr>
</thead>
<tbody>
-<tr><td style="text-align:left"><a
href="/api/client"><code>org.apache.pulsar.client.api</code></a></td><td
style="text-align:left">The producer and consumer API</td><td
style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client:2.1.0-incubating</a></td></tr>
-<tr><td style="text-align:left"><a
href="/api/admin"><code>org.apache.pulsar.client.admin</code></a></td><td
style="text-align:left">The Java <a href="/docs/zh-CN/admin-api-overview">admin
API</a></td><td style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client-admin%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client-admin:2.1.0-incubating</a></td></tr>
+<tr><td style="text-align:left"><a
href="/api/client"><code>org.apache.pulsar.client.api</code></a></td><td
style="text-align:left">生产者和消费者API</td><td style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client:2.1.0-incubating</a></td></tr>
+<tr><td style="text-align:left"><a
href="/api/admin"><code>org.apache.pulsar.client.admin</code></a></td><td
style="text-align:left">Java <a
href="/docs/zh-CN/admin-api-overview">管理API</a></td><td
style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client-admin%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client-admin:2.1.0-incubating</a></td></tr>
</tbody>
</table>
-<p>This document will focus only on the client API for producing and consuming
messages on Pulsar topics. For a guide to using the Java admin client, see <a
href="/docs/zh-CN/admin-api-overview">The Pulsar admin interface</a>.</p>
+<p>本文档仅关注Pulsar主题消息的生产和消费的客户端API. 关于使用 Java 管理客户端的指南, 请参见 <a
href="/docs/zh-CN/admin-api-overview">Pulsar管理接口</a>。</p>
<h2><a class="anchor" aria-hidden="true" id="installation"></a><a
href="#installation" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83. [...]
-<p>The latest version of the Pulsar Java client library is available via <a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">Maven
Central</a>. To use the latest version, add the <code>pulsar-client</code>
library to your build configuration.</p>
+<p>最新版本的Pulsar Java 客户端库可通过 <a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">Maven中央仓库</a>
使用。 要使用最新版本, 请将 <code>pulsar-client</code> 库添加到构建配置中。</p>
<h3><a class="anchor" aria-hidden="true" id="maven"></a><a href="#maven"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
<p>If you're using Maven, add this to your <code>pom.xml</code>:</p>
-<pre><code class="hljs css language-xml"><span class="hljs-comment"><!-- in
your <properties> block --></span>
+<pre><code class="hljs css language-xml"><span class="hljs-comment"><!--
在你的 <properties> 部分--></span>
<span class="hljs-tag"><<span
class="hljs-name">pulsar.version</span>></span>2.1.0-incubating<span
class="hljs-tag"></<span class="hljs-name">pulsar.version</span>></span>
-<span class="hljs-comment"><!-- in your <dependencies> block
--></span>
+<span class="hljs-comment"><!-- 在你的 <dependencies> 部分--></span>
<span class="hljs-tag"><<span class="hljs-name">dependency</span>></span>
<span class="hljs-tag"><<span
class="hljs-name">groupId</span>></span>org.apache.pulsar<span
class="hljs-tag"></<span class="hljs-name">groupId</span>></span>
<span class="hljs-tag"><<span
class="hljs-name">artifactId</span>></span>pulsar-client<span
class="hljs-tag"></<span class="hljs-name">artifactId</span>></span>
@@ -80,26 +80,26 @@ dependencies {
}
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="connection-urls"></a><a
href="#connection-urls" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 [...]
-<p>To connect to Pulsar using client libraries, you need to specify a <a
href="/docs/zh-CN/develop-binary-protocol">Pulsar protocol</a> URL.</p>
-<p>Pulsar protocol URLs are assigned to specific clusters, use the
<code>pulsar</code> scheme and have a default port of 6650. Here's an example
for <code>localhost</code>:</p>
+<p>要使用客户端连接到Pulsar,你需要指定<a href="/docs/zh-CN/develop-binary-protocol">Pulsar
协议</a>URL。</p>
+<p>Pulsar协议 url 使用 <code>pulsar</code> scheme来指定被连接的集群,默认端口为6650。以下是
<code>localhost</code> 的示例:</p>
<pre><code class="hljs css language-http">pulsar://localhost:6650
</code></pre>
-<p>A URL for a production Pulsar cluster may look something like this:</p>
+<p>生产环境的Pulsar 集群URL类似这样:</p>
<pre><code class="hljs css
language-http">pulsar://pulsar.us-west.example.com:6650
</code></pre>
<p>If you're using <a href="/docs/zh-CN/security-tls-authentication">TLS</a>
authentication, the URL will look like something like this:</p>
<pre><code class="hljs css
language-http">pulsar+ssl://pulsar.us-west.example.com:6651
</code></pre>
-<h2><a class="anchor" aria-hidden="true" id="client-configuration"></a><a
href="#client-configuration" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1 [...]
-<p>You can instantiate a <a
href="https://pulsar.incubator.apache.org/api/client/org/apache/pulsar/client/api/PulsarClient">PulsarClient</a>
- object using just a URL for the target Pulsar <a
href="/docs/zh-CN/reference-terminology#cluster">cluster</a>, like this:</p>
+<h2><a class="anchor" aria-hidden="true" id="客户端配置"></a><a href="#客户端配置"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
+<p>你可以用一个URL来实例化一个连接到指定的Pulsar <a
href="/docs/zh-CN/reference-terminology#cluster">集群</a>的 <a
href="https://pulsar.incubator.apache.org/api/client/org/apache/pulsar/client/api/PulsarClient">PulsarClient</a>
+对象,像这样:</p>
<pre><code class="hljs css language-java">PulsarClient client =
PulsarClient.builder()
.serviceUrl(<span class="hljs-string">"pulsar://localhost:6650"</span>)
.build();
</code></pre>
<blockquote>
-<h4><a class="anchor" aria-hidden="true"
id="default-broker-urls-for-standalone-clusters"></a><a
href="#default-broker-urls-for-standalone-clusters" aria-hidden="true"
class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16"
version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4
9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h [...]
-<p>If you're running a cluster in <a href="/docs/zh-CN/standalone">standalone
mode</a>, the broker will be available at the
<code>pulsar://localhost:6650</code> URL by default.</p>
+<h4><a class="anchor" aria-hidden="true" id="默认的broker-url是单机集群"></a><a
href="#默认的broker-url是单机集群" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22- [...]
+<p>如果你使用<a
href="/docs/zh-CN/standalone">单机模式</a>运行一个集群,broker将默认使用<code>pulsar://localhost:6650</code></p>
</blockquote>
<p>Check out the Javadoc for the <a
href="https://pulsar.incubator.apache.org/api/client/org/apache/pulsar/client/api/PulsarClient">PulsarClient</a>
class for a full listing of configurable parameters.</p>
@@ -398,7 +398,7 @@ PulsarClient client = PulsarClient.builder()
<h4><a class="anchor" aria-hidden="true" id="supported-pattern-formats"></a><a
href="#supported-pattern-formats" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c [...]
<p>The <code>privateKey</code> parameter supports the following three pattern
formats: * <code>file:///path/to/file</code> * <code>file:/path/to/file</code>
* <code>data:application/x-pem-file;base64,<base64-encoded
value></code></p>
</blockquote>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-extending">← Extending Authentication and
Authorization in Pulsar</a><a class="docs-next button"
href="/docs/zh-CN/client-libraries-go">The Pulsar Go client
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#installation">Installation</a><ul class="toc-headings"><li><a
href="#maven">Maven</a></li><li><a href="#gradle">Gradle</a></li></ul></li><l
[...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-extending">← Extending Authentication and
Authorization in Pulsar</a><a class="docs-next button"
href="/docs/zh-CN/client-libraries-go">The Pulsar Go client
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#installation">Installation</a><ul class="toc-headings"><li><a
href="#maven">Maven</a></li><li><a href="#gradle">Gradle</a></li></ul></li><l
[...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/client-libraries-java/index.html
b/content/docs/zh-CN/client-libraries-java/index.html
index e21bdb6..7fb4811 100644
--- a/content/docs/zh-CN/client-libraries-java/index.html
+++ b/content/docs/zh-CN/client-libraries-java/index.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta
http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Java client ·
Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta
name="generator" content="Docusaurus"/><meta name="description" content="The
Pulsar Java client can be used both to create Java producers, consumers, and
[readers](#readers) of messages and to perform [administrative
tasks](/docs/zh-CN/admin-api-overview). The cur [...]
+<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta
http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Java client ·
Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta
name="generator" content="Docusaurus"/><meta name="description" content="Pulsar
Java客户端可用于创建Java生产者、消费者、
[消息读取器](#readers),也可以执行[管理任务](/docs/zh-CN/admin-api-overview)。 Java 客户端的当前版本为
**2.1.0-incubating**。"/><meta name="docsearch:version"
content="2.1.0-incubating" [...]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
@@ -45,26 +45,26 @@
};
}
});
- </script></nav></div><div class="container mainContainer"><div
class="wrapper"><div class="post"><header class="postHeader"><a
class="edit-page-link button"
href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank"
rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar
Java client</h1></header><article><div><span><p>The Pulsar Java client can be
used both to create Java producers, consumers, and <a
href="#readers">readers</a> of messages and to [...]
-<p>Javadoc for the Pulsar client is divided up into two domains, by
package:</p>
+ </script></nav></div><div class="container mainContainer"><div
class="wrapper"><div class="post"><header class="postHeader"><a
class="edit-page-link button"
href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank"
rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar
Java client</h1></header><article><div><span><p>Pulsar Java客户端可用于创建Java生产者、消费者、
<a href="#readers">消息读取器</a>,也可以执行<a
href="/docs/zh-CN/admin-api-overview">管理任务</a>。 Java 客户端的当前版本 [...]
+<p>Pulsar客户端的Javadoc分成了两个包:</p>
<table>
<thead>
-<tr><th style="text-align:left">Package</th><th
style="text-align:left">Description</th><th style="text-align:left">Maven
Artifact</th></tr>
+<tr><th style="text-align:left">包</th><th
style="text-align:left">Description</th><th style="text-align:left">Maven
Artifact</th></tr>
</thead>
<tbody>
-<tr><td style="text-align:left"><a
href="/api/client"><code>org.apache.pulsar.client.api</code></a></td><td
style="text-align:left">The producer and consumer API</td><td
style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client:2.1.0-incubating</a></td></tr>
-<tr><td style="text-align:left"><a
href="/api/admin"><code>org.apache.pulsar.client.admin</code></a></td><td
style="text-align:left">The Java <a href="/docs/zh-CN/admin-api-overview">admin
API</a></td><td style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client-admin%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client-admin:2.1.0-incubating</a></td></tr>
+<tr><td style="text-align:left"><a
href="/api/client"><code>org.apache.pulsar.client.api</code></a></td><td
style="text-align:left">生产者和消费者API</td><td style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client:2.1.0-incubating</a></td></tr>
+<tr><td style="text-align:left"><a
href="/api/admin"><code>org.apache.pulsar.client.admin</code></a></td><td
style="text-align:left">Java <a
href="/docs/zh-CN/admin-api-overview">管理API</a></td><td
style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client-admin%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client-admin:2.1.0-incubating</a></td></tr>
</tbody>
</table>
-<p>This document will focus only on the client API for producing and consuming
messages on Pulsar topics. For a guide to using the Java admin client, see <a
href="/docs/zh-CN/admin-api-overview">The Pulsar admin interface</a>.</p>
+<p>本文档仅关注Pulsar主题消息的生产和消费的客户端API. 关于使用 Java 管理客户端的指南, 请参见 <a
href="/docs/zh-CN/admin-api-overview">Pulsar管理接口</a>。</p>
<h2><a class="anchor" aria-hidden="true" id="installation"></a><a
href="#installation" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83. [...]
-<p>The latest version of the Pulsar Java client library is available via <a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">Maven
Central</a>. To use the latest version, add the <code>pulsar-client</code>
library to your build configuration.</p>
+<p>最新版本的Pulsar Java 客户端库可通过 <a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">Maven中央仓库</a>
使用。 要使用最新版本, 请将 <code>pulsar-client</code> 库添加到构建配置中。</p>
<h3><a class="anchor" aria-hidden="true" id="maven"></a><a href="#maven"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
<p>If you're using Maven, add this to your <code>pom.xml</code>:</p>
-<pre><code class="hljs css language-xml"><span class="hljs-comment"><!-- in
your <properties> block --></span>
+<pre><code class="hljs css language-xml"><span class="hljs-comment"><!--
在你的 <properties> 部分--></span>
<span class="hljs-tag"><<span
class="hljs-name">pulsar.version</span>></span>2.1.0-incubating<span
class="hljs-tag"></<span class="hljs-name">pulsar.version</span>></span>
-<span class="hljs-comment"><!-- in your <dependencies> block
--></span>
+<span class="hljs-comment"><!-- 在你的 <dependencies> 部分--></span>
<span class="hljs-tag"><<span class="hljs-name">dependency</span>></span>
<span class="hljs-tag"><<span
class="hljs-name">groupId</span>></span>org.apache.pulsar<span
class="hljs-tag"></<span class="hljs-name">groupId</span>></span>
<span class="hljs-tag"><<span
class="hljs-name">artifactId</span>></span>pulsar-client<span
class="hljs-tag"></<span class="hljs-name">artifactId</span>></span>
@@ -80,26 +80,26 @@ dependencies {
}
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="connection-urls"></a><a
href="#connection-urls" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 [...]
-<p>To connect to Pulsar using client libraries, you need to specify a <a
href="/docs/zh-CN/develop-binary-protocol">Pulsar protocol</a> URL.</p>
-<p>Pulsar protocol URLs are assigned to specific clusters, use the
<code>pulsar</code> scheme and have a default port of 6650. Here's an example
for <code>localhost</code>:</p>
+<p>要使用客户端连接到Pulsar,你需要指定<a href="/docs/zh-CN/develop-binary-protocol">Pulsar
协议</a>URL。</p>
+<p>Pulsar协议 url 使用 <code>pulsar</code> scheme来指定被连接的集群,默认端口为6650。以下是
<code>localhost</code> 的示例:</p>
<pre><code class="hljs css language-http">pulsar://localhost:6650
</code></pre>
-<p>A URL for a production Pulsar cluster may look something like this:</p>
+<p>生产环境的Pulsar 集群URL类似这样:</p>
<pre><code class="hljs css
language-http">pulsar://pulsar.us-west.example.com:6650
</code></pre>
<p>If you're using <a href="/docs/zh-CN/security-tls-authentication">TLS</a>
authentication, the URL will look like something like this:</p>
<pre><code class="hljs css
language-http">pulsar+ssl://pulsar.us-west.example.com:6651
</code></pre>
-<h2><a class="anchor" aria-hidden="true" id="client-configuration"></a><a
href="#client-configuration" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1 [...]
-<p>You can instantiate a <a
href="https://pulsar.incubator.apache.org/api/client/org/apache/pulsar/client/api/PulsarClient">PulsarClient</a>
- object using just a URL for the target Pulsar <a
href="/docs/zh-CN/reference-terminology#cluster">cluster</a>, like this:</p>
+<h2><a class="anchor" aria-hidden="true" id="客户端配置"></a><a href="#客户端配置"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
+<p>你可以用一个URL来实例化一个连接到指定的Pulsar <a
href="/docs/zh-CN/reference-terminology#cluster">集群</a>的 <a
href="https://pulsar.incubator.apache.org/api/client/org/apache/pulsar/client/api/PulsarClient">PulsarClient</a>
+对象,像这样:</p>
<pre><code class="hljs css language-java">PulsarClient client =
PulsarClient.builder()
.serviceUrl(<span class="hljs-string">"pulsar://localhost:6650"</span>)
.build();
</code></pre>
<blockquote>
-<h4><a class="anchor" aria-hidden="true"
id="default-broker-urls-for-standalone-clusters"></a><a
href="#default-broker-urls-for-standalone-clusters" aria-hidden="true"
class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16"
version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4
9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h [...]
-<p>If you're running a cluster in <a href="/docs/zh-CN/standalone">standalone
mode</a>, the broker will be available at the
<code>pulsar://localhost:6650</code> URL by default.</p>
+<h4><a class="anchor" aria-hidden="true" id="默认的broker-url是单机集群"></a><a
href="#默认的broker-url是单机集群" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22- [...]
+<p>如果你使用<a
href="/docs/zh-CN/standalone">单机模式</a>运行一个集群,broker将默认使用<code>pulsar://localhost:6650</code></p>
</blockquote>
<p>Check out the Javadoc for the <a
href="https://pulsar.incubator.apache.org/api/client/org/apache/pulsar/client/api/PulsarClient">PulsarClient</a>
class for a full listing of configurable parameters.</p>
@@ -398,7 +398,7 @@ PulsarClient client = PulsarClient.builder()
<h4><a class="anchor" aria-hidden="true" id="supported-pattern-formats"></a><a
href="#supported-pattern-formats" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c [...]
<p>The <code>privateKey</code> parameter supports the following three pattern
formats: * <code>file:///path/to/file</code> * <code>file:/path/to/file</code>
* <code>data:application/x-pem-file;base64,<base64-encoded
value></code></p>
</blockquote>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-extending">← Extending Authentication and
Authorization in Pulsar</a><a class="docs-next button"
href="/docs/zh-CN/client-libraries-go">The Pulsar Go client
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#installation">Installation</a><ul class="toc-headings"><li><a
href="#maven">Maven</a></li><li><a href="#gradle">Gradle</a></li></ul></li><l
[...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-extending">← Extending Authentication and
Authorization in Pulsar</a><a class="docs-next button"
href="/docs/zh-CN/client-libraries-go">The Pulsar Go client
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#installation">Installation</a><ul class="toc-headings"><li><a
href="#maven">Maven</a></li><li><a href="#gradle">Gradle</a></li></ul></li><l
[...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/next/client-libraries-cpp.html
b/content/docs/zh-CN/next/client-libraries-cpp.html
index 2261c89..78b5a9f 100644
--- a/content/docs/zh-CN/next/client-libraries-cpp.html
+++ b/content/docs/zh-CN/next/client-libraries-cpp.html
@@ -126,7 +126,7 @@
<p>Pulsar protocol URLs are assigned to specific clusters, use the pulsar URI
scheme and have a default port of 6650. Here’s an example for localhost:</p>
<pre><code class="hljs css language-http">pulsar://localhost:6650
</code></pre>
-<p>A URL for a production Pulsar cluster may look something like this:</p>
+<p>生产环境的Pulsar 集群URL类似这样:</p>
<pre><code class="hljs css
language-http">pulsar://pulsar.us-west.example.com:6650
</code></pre>
<p>If you’re using TLS authentication, the URL will look like something like
this:</p>
diff --git a/content/docs/zh-CN/next/client-libraries-cpp/index.html
b/content/docs/zh-CN/next/client-libraries-cpp/index.html
index 2261c89..78b5a9f 100644
--- a/content/docs/zh-CN/next/client-libraries-cpp/index.html
+++ b/content/docs/zh-CN/next/client-libraries-cpp/index.html
@@ -126,7 +126,7 @@
<p>Pulsar protocol URLs are assigned to specific clusters, use the pulsar URI
scheme and have a default port of 6650. Here’s an example for localhost:</p>
<pre><code class="hljs css language-http">pulsar://localhost:6650
</code></pre>
-<p>A URL for a production Pulsar cluster may look something like this:</p>
+<p>生产环境的Pulsar 集群URL类似这样:</p>
<pre><code class="hljs css
language-http">pulsar://pulsar.us-west.example.com:6650
</code></pre>
<p>If you’re using TLS authentication, the URL will look like something like
this:</p>
diff --git a/content/docs/zh-CN/next/client-libraries-go.html
b/content/docs/zh-CN/next/client-libraries-go.html
index 208f53a..e60a0b6 100644
--- a/content/docs/zh-CN/next/client-libraries-go.html
+++ b/content/docs/zh-CN/next/client-libraries-go.html
@@ -68,11 +68,11 @@
<pre><code class="hljs css language-go"><span
class="hljs-keyword">import</span> <span
class="hljs-string">"github.com/apache/incubator-pulsar/pulsar-client-go/pulsar"</span>
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="connection-urls"></a><a
href="#connection-urls" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 [...]
-<p>To connect to Pulsar using client libraries, you need to specify a <a
href="/docs/zh-CN/next/develop-binary-protocol">Pulsar protocol</a> URL.</p>
-<p>Pulsar protocol URLs are assigned to specific clusters, use the
<code>pulsar</code> scheme and have a default port of 6650. Here's an example
for <code>localhost</code>:</p>
+<p>要使用客户端连接到Pulsar,你需要指定<a
href="/docs/zh-CN/next/develop-binary-protocol">Pulsar 协议</a>URL。</p>
+<p>Pulsar协议 url 使用 <code>pulsar</code> scheme来指定被连接的集群,默认端口为6650。以下是
<code>localhost</code> 的示例:</p>
<pre><code class="hljs css language-http">pulsar://localhost:6650
</code></pre>
-<p>A URL for a production Pulsar cluster may look something like this:</p>
+<p>生产环境的Pulsar 集群URL类似这样:</p>
<pre><code class="hljs css
language-http">pulsar://pulsar.us-west.example.com:6650
</code></pre>
<p>If you're using <a
href="/docs/zh-CN/next/security-tls-authentication">TLS</a> authentication, the
URL will look like something like this:</p>
@@ -457,7 +457,7 @@ reader, err := client.CreateReader(pulsar.ReaderOptions{
Authentication: NewAuthenticationTLS(<span
class="hljs-string">"my-cert.pem"</span>, <span
class="hljs-string">"my-key.pem"</span>),
}
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/next/client-libraries-java">← The Pulsar Java
client</a><a class="docs-next button"
href="/docs/zh-CN/next/client-libraries-python">The Pulsar Python client
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#installation">Installation</a><ul class="toc-headings"><li><a
href="#requirements">Requirements</a></li><li><a
href="#installing-go-package">Install [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/next/client-libraries-java">← Pulsar Java客户端</a><a
class="docs-next button" href="/docs/zh-CN/next/client-libraries-python">The
Pulsar Python client →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#installation">Installation</a><ul
class="toc-headings"><li><a href="#requirements">Requirements</a></li><li><a
href="#installing-go-package">Installing go p [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/next/client-libraries-go/index.html
b/content/docs/zh-CN/next/client-libraries-go/index.html
index 208f53a..e60a0b6 100644
--- a/content/docs/zh-CN/next/client-libraries-go/index.html
+++ b/content/docs/zh-CN/next/client-libraries-go/index.html
@@ -68,11 +68,11 @@
<pre><code class="hljs css language-go"><span
class="hljs-keyword">import</span> <span
class="hljs-string">"github.com/apache/incubator-pulsar/pulsar-client-go/pulsar"</span>
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="connection-urls"></a><a
href="#connection-urls" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 [...]
-<p>To connect to Pulsar using client libraries, you need to specify a <a
href="/docs/zh-CN/next/develop-binary-protocol">Pulsar protocol</a> URL.</p>
-<p>Pulsar protocol URLs are assigned to specific clusters, use the
<code>pulsar</code> scheme and have a default port of 6650. Here's an example
for <code>localhost</code>:</p>
+<p>要使用客户端连接到Pulsar,你需要指定<a
href="/docs/zh-CN/next/develop-binary-protocol">Pulsar 协议</a>URL。</p>
+<p>Pulsar协议 url 使用 <code>pulsar</code> scheme来指定被连接的集群,默认端口为6650。以下是
<code>localhost</code> 的示例:</p>
<pre><code class="hljs css language-http">pulsar://localhost:6650
</code></pre>
-<p>A URL for a production Pulsar cluster may look something like this:</p>
+<p>生产环境的Pulsar 集群URL类似这样:</p>
<pre><code class="hljs css
language-http">pulsar://pulsar.us-west.example.com:6650
</code></pre>
<p>If you're using <a
href="/docs/zh-CN/next/security-tls-authentication">TLS</a> authentication, the
URL will look like something like this:</p>
@@ -457,7 +457,7 @@ reader, err := client.CreateReader(pulsar.ReaderOptions{
Authentication: NewAuthenticationTLS(<span
class="hljs-string">"my-cert.pem"</span>, <span
class="hljs-string">"my-key.pem"</span>),
}
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/next/client-libraries-java">← The Pulsar Java
client</a><a class="docs-next button"
href="/docs/zh-CN/next/client-libraries-python">The Pulsar Python client
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#installation">Installation</a><ul class="toc-headings"><li><a
href="#requirements">Requirements</a></li><li><a
href="#installing-go-package">Install [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/next/client-libraries-java">← Pulsar Java客户端</a><a
class="docs-next button" href="/docs/zh-CN/next/client-libraries-python">The
Pulsar Python client →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#installation">Installation</a><ul
class="toc-headings"><li><a href="#requirements">Requirements</a></li><li><a
href="#installing-go-package">Installing go p [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/next/client-libraries-java.html
b/content/docs/zh-CN/next/client-libraries-java.html
index 6dac278..df24a4f 100644
--- a/content/docs/zh-CN/next/client-libraries-java.html
+++ b/content/docs/zh-CN/next/client-libraries-java.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta
http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Java client ·
Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta
name="generator" content="Docusaurus"/><meta name="description" content="The
Pulsar Java client can be used both to create Java producers, consumers, and
[readers](#readers) of messages and to perform [administrative
tasks](/docs/zh-CN/next/admin-api-overview). Th [...]
+<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta
http-equiv="X-UA-Compatible" content="IE=edge"/><title>Pulsar Java客户端 · Apache
Pulsar</title><meta name="viewport" content="width=device-width"/><meta
name="generator" content="Docusaurus"/><meta name="description" content="Pulsar
Java客户端可用于创建Java生产者、消费者、
[消息读取器](#readers),也可以执行[管理任务](/docs/zh-CN/next/admin-api-overview)。 Java
客户端的当前版本为 **2.1.0-incubating**。"/><meta name="docsearch:version"
content="next"/><meta name="d [...]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
@@ -45,26 +45,26 @@
};
}
});
- </script></nav></div><div class="container mainContainer"><div
class="wrapper"><div class="post"><header class="postHeader"><a
class="edit-page-link button"
href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank"
rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar
Java client</h1></header><article><div><span><p>The Pulsar Java client can be
used both to create Java producers, consumers, and <a
href="#readers">readers</a> of messages and to [...]
-<p>Javadoc for the Pulsar client is divided up into two domains, by
package:</p>
+ </script></nav></div><div class="container mainContainer"><div
class="wrapper"><div class="post"><header class="postHeader"><a
class="edit-page-link button"
href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank"
rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">Pulsar
Java客户端</h1></header><article><div><span><p>Pulsar Java客户端可用于创建Java生产者、消费者、 <a
href="#readers">消息读取器</a>,也可以执行<a
href="/docs/zh-CN/next/admin-api-overview">管理任务</a>。 Java 客户端的当前版本为 < [...]
+<p>Pulsar客户端的Javadoc分成了两个包:</p>
<table>
<thead>
-<tr><th style="text-align:left">Package</th><th
style="text-align:left">Description</th><th style="text-align:left">Maven
Artifact</th></tr>
+<tr><th style="text-align:left">包</th><th
style="text-align:left">Description</th><th style="text-align:left">Maven
Artifact</th></tr>
</thead>
<tbody>
-<tr><td style="text-align:left"><a
href="/api/client"><code>org.apache.pulsar.client.api</code></a></td><td
style="text-align:left">The producer and consumer API</td><td
style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client:2.1.0-incubating</a></td></tr>
-<tr><td style="text-align:left"><a
href="/api/admin"><code>org.apache.pulsar.client.admin</code></a></td><td
style="text-align:left">The Java <a
href="/docs/zh-CN/next/admin-api-overview">admin API</a></td><td
style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client-admin%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client-admin:2.1.0-incubating</a></td></tr>
+<tr><td style="text-align:left"><a
href="/api/client"><code>org.apache.pulsar.client.api</code></a></td><td
style="text-align:left">生产者和消费者API</td><td style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client:2.1.0-incubating</a></td></tr>
+<tr><td style="text-align:left"><a
href="/api/admin"><code>org.apache.pulsar.client.admin</code></a></td><td
style="text-align:left">Java <a
href="/docs/zh-CN/next/admin-api-overview">管理API</a></td><td
style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client-admin%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client-admin:2.1.0-incubating</a></td></tr>
</tbody>
</table>
-<p>This document will focus only on the client API for producing and consuming
messages on Pulsar topics. For a guide to using the Java admin client, see <a
href="/docs/zh-CN/next/admin-api-overview">The Pulsar admin interface</a>.</p>
+<p>本文档仅关注Pulsar主题消息的生产和消费的客户端API. 关于使用 Java 管理客户端的指南, 请参见 <a
href="/docs/zh-CN/next/admin-api-overview">Pulsar管理接口</a>。</p>
<h2><a class="anchor" aria-hidden="true" id="installation"></a><a
href="#installation" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83. [...]
-<p>The latest version of the Pulsar Java client library is available via <a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">Maven
Central</a>. To use the latest version, add the <code>pulsar-client</code>
library to your build configuration.</p>
+<p>最新版本的Pulsar Java 客户端库可通过 <a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">Maven中央仓库</a>
使用。 要使用最新版本, 请将 <code>pulsar-client</code> 库添加到构建配置中。</p>
<h3><a class="anchor" aria-hidden="true" id="maven"></a><a href="#maven"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
<p>If you're using Maven, add this to your <code>pom.xml</code>:</p>
-<pre><code class="hljs css language-xml"><span class="hljs-comment"><!-- in
your <properties> block --></span>
+<pre><code class="hljs css language-xml"><span class="hljs-comment"><!--
在你的 <properties> 部分--></span>
<span class="hljs-tag"><<span
class="hljs-name">pulsar.version</span>></span>2.1.0-incubating<span
class="hljs-tag"></<span class="hljs-name">pulsar.version</span>></span>
-<span class="hljs-comment"><!-- in your <dependencies> block
--></span>
+<span class="hljs-comment"><!-- 在你的 <dependencies> 部分--></span>
<span class="hljs-tag"><<span class="hljs-name">dependency</span>></span>
<span class="hljs-tag"><<span
class="hljs-name">groupId</span>></span>org.apache.pulsar<span
class="hljs-tag"></<span class="hljs-name">groupId</span>></span>
<span class="hljs-tag"><<span
class="hljs-name">artifactId</span>></span>pulsar-client<span
class="hljs-tag"></<span class="hljs-name">artifactId</span>></span>
@@ -80,26 +80,26 @@ dependencies {
}
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="connection-urls"></a><a
href="#connection-urls" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 [...]
-<p>To connect to Pulsar using client libraries, you need to specify a <a
href="/docs/zh-CN/next/develop-binary-protocol">Pulsar protocol</a> URL.</p>
-<p>Pulsar protocol URLs are assigned to specific clusters, use the
<code>pulsar</code> scheme and have a default port of 6650. Here's an example
for <code>localhost</code>:</p>
+<p>要使用客户端连接到Pulsar,你需要指定<a
href="/docs/zh-CN/next/develop-binary-protocol">Pulsar 协议</a>URL。</p>
+<p>Pulsar协议 url 使用 <code>pulsar</code> scheme来指定被连接的集群,默认端口为6650。以下是
<code>localhost</code> 的示例:</p>
<pre><code class="hljs css language-http">pulsar://localhost:6650
</code></pre>
-<p>A URL for a production Pulsar cluster may look something like this:</p>
+<p>生产环境的Pulsar 集群URL类似这样:</p>
<pre><code class="hljs css
language-http">pulsar://pulsar.us-west.example.com:6650
</code></pre>
<p>If you're using <a
href="/docs/zh-CN/next/security-tls-authentication">TLS</a> authentication, the
URL will look like something like this:</p>
<pre><code class="hljs css
language-http">pulsar+ssl://pulsar.us-west.example.com:6651
</code></pre>
-<h2><a class="anchor" aria-hidden="true" id="client-configuration"></a><a
href="#client-configuration" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1 [...]
-<p>You can instantiate a <a
href="https://pulsar.incubator.apache.org/api/client/org/apache/pulsar/client/api/PulsarClient">PulsarClient</a>
- object using just a URL for the target Pulsar <a
href="/docs/zh-CN/next/reference-terminology#cluster">cluster</a>, like
this:</p>
+<h2><a class="anchor" aria-hidden="true" id="客户端配置"></a><a href="#客户端配置"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
+<p>你可以用一个URL来实例化一个连接到指定的Pulsar <a
href="/docs/zh-CN/next/reference-terminology#cluster">集群</a>的 <a
href="https://pulsar.incubator.apache.org/api/client/org/apache/pulsar/client/api/PulsarClient">PulsarClient</a>
+对象,像这样:</p>
<pre><code class="hljs css language-java">PulsarClient client =
PulsarClient.builder()
.serviceUrl(<span class="hljs-string">"pulsar://localhost:6650"</span>)
.build();
</code></pre>
<blockquote>
-<h4><a class="anchor" aria-hidden="true"
id="default-broker-urls-for-standalone-clusters"></a><a
href="#default-broker-urls-for-standalone-clusters" aria-hidden="true"
class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16"
version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4
9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h [...]
-<p>If you're running a cluster in <a
href="/docs/zh-CN/next/standalone">standalone mode</a>, the broker will be
available at the <code>pulsar://localhost:6650</code> URL by default.</p>
+<h4><a class="anchor" aria-hidden="true" id="默认的broker-url是单机集群"></a><a
href="#默认的broker-url是单机集群" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22- [...]
+<p>如果你使用<a
href="/docs/zh-CN/next/standalone">单机模式</a>运行一个集群,broker将默认使用<code>pulsar://localhost:6650</code></p>
</blockquote>
<p>Check out the Javadoc for the <a
href="https://pulsar.incubator.apache.org/api/client/org/apache/pulsar/client/api/PulsarClient">PulsarClient</a>
class for a full listing of configurable parameters.</p>
@@ -398,7 +398,7 @@ PulsarClient client = PulsarClient.builder()
<h4><a class="anchor" aria-hidden="true" id="supported-pattern-formats"></a><a
href="#supported-pattern-formats" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c [...]
<p>The <code>privateKey</code> parameter supports the following three pattern
formats: * <code>file:///path/to/file</code> * <code>file:/path/to/file</code>
* <code>data:application/x-pem-file;base64,<base64-encoded
value></code></p>
</blockquote>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/next/security-extending">← Extending Authentication
and Authorization in Pulsar</a><a class="docs-next button"
href="/docs/zh-CN/next/client-libraries-go">The Pulsar Go client
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#installation">Installation</a><ul class="toc-headings"><li><a
href="#maven">Maven</a></li><li><a href="#gradle">Gradle</a></li></ [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/next/security-extending">← Extending Authentication
and Authorization in Pulsar</a><a class="docs-next button"
href="/docs/zh-CN/next/client-libraries-go">The Pulsar Go client
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#installation">Installation</a><ul class="toc-headings"><li><a
href="#maven">Maven</a></li><li><a href="#gradle">Gradle</a></li></ [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/next/client-libraries-java/index.html
b/content/docs/zh-CN/next/client-libraries-java/index.html
index 6dac278..df24a4f 100644
--- a/content/docs/zh-CN/next/client-libraries-java/index.html
+++ b/content/docs/zh-CN/next/client-libraries-java/index.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta
http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Java client ·
Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta
name="generator" content="Docusaurus"/><meta name="description" content="The
Pulsar Java client can be used both to create Java producers, consumers, and
[readers](#readers) of messages and to perform [administrative
tasks](/docs/zh-CN/next/admin-api-overview). Th [...]
+<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta
http-equiv="X-UA-Compatible" content="IE=edge"/><title>Pulsar Java客户端 · Apache
Pulsar</title><meta name="viewport" content="width=device-width"/><meta
name="generator" content="Docusaurus"/><meta name="description" content="Pulsar
Java客户端可用于创建Java生产者、消费者、
[消息读取器](#readers),也可以执行[管理任务](/docs/zh-CN/next/admin-api-overview)。 Java
客户端的当前版本为 **2.1.0-incubating**。"/><meta name="docsearch:version"
content="next"/><meta name="d [...]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
@@ -45,26 +45,26 @@
};
}
});
- </script></nav></div><div class="container mainContainer"><div
class="wrapper"><div class="post"><header class="postHeader"><a
class="edit-page-link button"
href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank"
rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar
Java client</h1></header><article><div><span><p>The Pulsar Java client can be
used both to create Java producers, consumers, and <a
href="#readers">readers</a> of messages and to [...]
-<p>Javadoc for the Pulsar client is divided up into two domains, by
package:</p>
+ </script></nav></div><div class="container mainContainer"><div
class="wrapper"><div class="post"><header class="postHeader"><a
class="edit-page-link button"
href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank"
rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">Pulsar
Java客户端</h1></header><article><div><span><p>Pulsar Java客户端可用于创建Java生产者、消费者、 <a
href="#readers">消息读取器</a>,也可以执行<a
href="/docs/zh-CN/next/admin-api-overview">管理任务</a>。 Java 客户端的当前版本为 < [...]
+<p>Pulsar客户端的Javadoc分成了两个包:</p>
<table>
<thead>
-<tr><th style="text-align:left">Package</th><th
style="text-align:left">Description</th><th style="text-align:left">Maven
Artifact</th></tr>
+<tr><th style="text-align:left">包</th><th
style="text-align:left">Description</th><th style="text-align:left">Maven
Artifact</th></tr>
</thead>
<tbody>
-<tr><td style="text-align:left"><a
href="/api/client"><code>org.apache.pulsar.client.api</code></a></td><td
style="text-align:left">The producer and consumer API</td><td
style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client:2.1.0-incubating</a></td></tr>
-<tr><td style="text-align:left"><a
href="/api/admin"><code>org.apache.pulsar.client.admin</code></a></td><td
style="text-align:left">The Java <a
href="/docs/zh-CN/next/admin-api-overview">admin API</a></td><td
style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client-admin%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client-admin:2.1.0-incubating</a></td></tr>
+<tr><td style="text-align:left"><a
href="/api/client"><code>org.apache.pulsar.client.api</code></a></td><td
style="text-align:left">生产者和消费者API</td><td style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client:2.1.0-incubating</a></td></tr>
+<tr><td style="text-align:left"><a
href="/api/admin"><code>org.apache.pulsar.client.admin</code></a></td><td
style="text-align:left">Java <a
href="/docs/zh-CN/next/admin-api-overview">管理API</a></td><td
style="text-align:left"><a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client-admin%7C2.1.0-incubating%7Cjar">org.apache.pulsar:pulsar-client-admin:2.1.0-incubating</a></td></tr>
</tbody>
</table>
-<p>This document will focus only on the client API for producing and consuming
messages on Pulsar topics. For a guide to using the Java admin client, see <a
href="/docs/zh-CN/next/admin-api-overview">The Pulsar admin interface</a>.</p>
+<p>本文档仅关注Pulsar主题消息的生产和消费的客户端API. 关于使用 Java 管理客户端的指南, 请参见 <a
href="/docs/zh-CN/next/admin-api-overview">Pulsar管理接口</a>。</p>
<h2><a class="anchor" aria-hidden="true" id="installation"></a><a
href="#installation" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83. [...]
-<p>The latest version of the Pulsar Java client library is available via <a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">Maven
Central</a>. To use the latest version, add the <code>pulsar-client</code>
library to your build configuration.</p>
+<p>最新版本的Pulsar Java 客户端库可通过 <a
href="http://search.maven.org/#artifactdetails%7Corg.apache.pulsar%7Cpulsar-client%7C2.1.0-incubating%7Cjar">Maven中央仓库</a>
使用。 要使用最新版本, 请将 <code>pulsar-client</code> 库添加到构建配置中。</p>
<h3><a class="anchor" aria-hidden="true" id="maven"></a><a href="#maven"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
<p>If you're using Maven, add this to your <code>pom.xml</code>:</p>
-<pre><code class="hljs css language-xml"><span class="hljs-comment"><!-- in
your <properties> block --></span>
+<pre><code class="hljs css language-xml"><span class="hljs-comment"><!--
在你的 <properties> 部分--></span>
<span class="hljs-tag"><<span
class="hljs-name">pulsar.version</span>></span>2.1.0-incubating<span
class="hljs-tag"></<span class="hljs-name">pulsar.version</span>></span>
-<span class="hljs-comment"><!-- in your <dependencies> block
--></span>
+<span class="hljs-comment"><!-- 在你的 <dependencies> 部分--></span>
<span class="hljs-tag"><<span class="hljs-name">dependency</span>></span>
<span class="hljs-tag"><<span
class="hljs-name">groupId</span>></span>org.apache.pulsar<span
class="hljs-tag"></<span class="hljs-name">groupId</span>></span>
<span class="hljs-tag"><<span
class="hljs-name">artifactId</span>></span>pulsar-client<span
class="hljs-tag"></<span class="hljs-name">artifactId</span>></span>
@@ -80,26 +80,26 @@ dependencies {
}
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="connection-urls"></a><a
href="#connection-urls" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 [...]
-<p>To connect to Pulsar using client libraries, you need to specify a <a
href="/docs/zh-CN/next/develop-binary-protocol">Pulsar protocol</a> URL.</p>
-<p>Pulsar protocol URLs are assigned to specific clusters, use the
<code>pulsar</code> scheme and have a default port of 6650. Here's an example
for <code>localhost</code>:</p>
+<p>要使用客户端连接到Pulsar,你需要指定<a
href="/docs/zh-CN/next/develop-binary-protocol">Pulsar 协议</a>URL。</p>
+<p>Pulsar协议 url 使用 <code>pulsar</code> scheme来指定被连接的集群,默认端口为6650。以下是
<code>localhost</code> 的示例:</p>
<pre><code class="hljs css language-http">pulsar://localhost:6650
</code></pre>
-<p>A URL for a production Pulsar cluster may look something like this:</p>
+<p>生产环境的Pulsar 集群URL类似这样:</p>
<pre><code class="hljs css
language-http">pulsar://pulsar.us-west.example.com:6650
</code></pre>
<p>If you're using <a
href="/docs/zh-CN/next/security-tls-authentication">TLS</a> authentication, the
URL will look like something like this:</p>
<pre><code class="hljs css
language-http">pulsar+ssl://pulsar.us-west.example.com:6651
</code></pre>
-<h2><a class="anchor" aria-hidden="true" id="client-configuration"></a><a
href="#client-configuration" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1 [...]
-<p>You can instantiate a <a
href="https://pulsar.incubator.apache.org/api/client/org/apache/pulsar/client/api/PulsarClient">PulsarClient</a>
- object using just a URL for the target Pulsar <a
href="/docs/zh-CN/next/reference-terminology#cluster">cluster</a>, like
this:</p>
+<h2><a class="anchor" aria-hidden="true" id="客户端配置"></a><a href="#客户端配置"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
+<p>你可以用一个URL来实例化一个连接到指定的Pulsar <a
href="/docs/zh-CN/next/reference-terminology#cluster">集群</a>的 <a
href="https://pulsar.incubator.apache.org/api/client/org/apache/pulsar/client/api/PulsarClient">PulsarClient</a>
+对象,像这样:</p>
<pre><code class="hljs css language-java">PulsarClient client =
PulsarClient.builder()
.serviceUrl(<span class="hljs-string">"pulsar://localhost:6650"</span>)
.build();
</code></pre>
<blockquote>
-<h4><a class="anchor" aria-hidden="true"
id="default-broker-urls-for-standalone-clusters"></a><a
href="#default-broker-urls-for-standalone-clusters" aria-hidden="true"
class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16"
version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4
9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h [...]
-<p>If you're running a cluster in <a
href="/docs/zh-CN/next/standalone">standalone mode</a>, the broker will be
available at the <code>pulsar://localhost:6650</code> URL by default.</p>
+<h4><a class="anchor" aria-hidden="true" id="默认的broker-url是单机集群"></a><a
href="#默认的broker-url是单机集群" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22- [...]
+<p>如果你使用<a
href="/docs/zh-CN/next/standalone">单机模式</a>运行一个集群,broker将默认使用<code>pulsar://localhost:6650</code></p>
</blockquote>
<p>Check out the Javadoc for the <a
href="https://pulsar.incubator.apache.org/api/client/org/apache/pulsar/client/api/PulsarClient">PulsarClient</a>
class for a full listing of configurable parameters.</p>
@@ -398,7 +398,7 @@ PulsarClient client = PulsarClient.builder()
<h4><a class="anchor" aria-hidden="true" id="supported-pattern-formats"></a><a
href="#supported-pattern-formats" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c [...]
<p>The <code>privateKey</code> parameter supports the following three pattern
formats: * <code>file:///path/to/file</code> * <code>file:/path/to/file</code>
* <code>data:application/x-pem-file;base64,<base64-encoded
value></code></p>
</blockquote>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/next/security-extending">← Extending Authentication
and Authorization in Pulsar</a><a class="docs-next button"
href="/docs/zh-CN/next/client-libraries-go">The Pulsar Go client
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#installation">Installation</a><ul class="toc-headings"><li><a
href="#maven">Maven</a></li><li><a href="#gradle">Gradle</a></li></ [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/next/security-extending">← Extending Authentication
and Authorization in Pulsar</a><a class="docs-next button"
href="/docs/zh-CN/next/client-libraries-go">The Pulsar Go client
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#installation">Installation</a><ul class="toc-headings"><li><a
href="#maven">Maven</a></li><li><a href="#gradle">Gradle</a></li></ [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/next/security-extending.html
b/content/docs/zh-CN/next/security-extending.html
index f5e0a57..40a6d43 100644
--- a/content/docs/zh-CN/next/security-extending.html
+++ b/content/docs/zh-CN/next/security-extending.html
@@ -205,7 +205,7 @@ authenticationProviders=
}
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/next/security-encryption">← Pulsar Encryption</a><a
class="docs-next button" href="/docs/zh-CN/next/client-libraries-java">The
Pulsar Java client →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#authentication">Authentication</a><ul
class="toc-headings"><li><a href="#client-authentication-plugin">Client
authentication plugin</a></li><li><a href="#broke [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/next/security-encryption">← Pulsar Encryption</a><a
class="docs-next button" href="/docs/zh-CN/next/client-libraries-java">Pulsar
Java客户端 →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#authentication">Authentication</a><ul
class="toc-headings"><li><a href="#client-authentication-plugin">Client
authentication plugin</a></li><li><a href="#broker-authen [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/next/security-extending/index.html
b/content/docs/zh-CN/next/security-extending/index.html
index f5e0a57..40a6d43 100644
--- a/content/docs/zh-CN/next/security-extending/index.html
+++ b/content/docs/zh-CN/next/security-extending/index.html
@@ -205,7 +205,7 @@ authenticationProviders=
}
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/next/security-encryption">← Pulsar Encryption</a><a
class="docs-next button" href="/docs/zh-CN/next/client-libraries-java">The
Pulsar Java client →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#authentication">Authentication</a><ul
class="toc-headings"><li><a href="#client-authentication-plugin">Client
authentication plugin</a></li><li><a href="#broke [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/next/security-encryption">← Pulsar Encryption</a><a
class="docs-next button" href="/docs/zh-CN/next/client-libraries-java">Pulsar
Java客户端 →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#authentication">Authentication</a><ul
class="toc-headings"><li><a href="#client-authentication-plugin">Client
authentication plugin</a></li><li><a href="#broker-authen [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/security-extending.html
b/content/docs/zh-CN/security-extending.html
index 0772a3b..9baa8e6 100644
--- a/content/docs/zh-CN/security-extending.html
+++ b/content/docs/zh-CN/security-extending.html
@@ -205,7 +205,7 @@ authenticationProviders=
}
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-encryption">← Pulsar Encryption</a><a
class="docs-next button" href="/docs/zh-CN/client-libraries-java">The Pulsar
Java client →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#authentication">Authentication</a><ul
class="toc-headings"><li><a href="#client-authentication-plugin">Client
authentication plugin</a></li><li><a href="#broker-authenti [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-encryption">← Pulsar Encryption</a><a
class="docs-next button" href="/docs/zh-CN/client-libraries-java">Pulsar
Java客户端 →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#authentication">Authentication</a><ul
class="toc-headings"><li><a href="#client-authentication-plugin">Client
authentication plugin</a></li><li><a href="#broker-authentication-p [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/security-extending/index.html
b/content/docs/zh-CN/security-extending/index.html
index 0772a3b..9baa8e6 100644
--- a/content/docs/zh-CN/security-extending/index.html
+++ b/content/docs/zh-CN/security-extending/index.html
@@ -205,7 +205,7 @@ authenticationProviders=
}
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-encryption">← Pulsar Encryption</a><a
class="docs-next button" href="/docs/zh-CN/client-libraries-java">The Pulsar
Java client →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#authentication">Authentication</a><ul
class="toc-headings"><li><a href="#client-authentication-plugin">Client
authentication plugin</a></li><li><a href="#broker-authenti [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-encryption">← Pulsar Encryption</a><a
class="docs-next button" href="/docs/zh-CN/client-libraries-java">Pulsar
Java客户端 →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#authentication">Authentication</a><ul
class="toc-headings"><li><a href="#client-authentication-plugin">Client
authentication plugin</a></li><li><a href="#broker-authentication-p [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/security-tls-authentication.html
b/content/docs/zh-CN/security-tls-authentication.html
index e14bf43..5b90d10 100644
--- a/content/docs/zh-CN/security-tls-authentication.html
+++ b/content/docs/zh-CN/security-tls-authentication.html
@@ -85,7 +85,7 @@
<span
class="hljs-attr">brokerClientAuthenticationPlugin</span>=org.apache.pulsar.client.impl.auth.AuthenticationTls
<span
class="hljs-attr">brokerClientAuthenticationParameters</span>=tlsCertFile:/path/to/proxy.cert.pem,tlsKeyFile:/path/to/proxy.key-pk8.pem
</code></pre>
-<h2><a class="anchor" aria-hidden="true" id="client-configuration"></a><a
href="#client-configuration" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1 [...]
+<h2><a class="anchor" aria-hidden="true" id="客户端配置"></a><a href="#客户端配置"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
<p>When TLS authentication, the client needs to connect via TLS transport, so
you need to configure the client to use <code>https://</code> and port 8443 for
the web service URL, and <code>pulsar+ssl://</code> and port 6651 for the
broker service URL.</p>
<h3><a class="anchor" aria-hidden="true" id="命令行工具"></a><a href="#命令行工具"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
<p><a href="/docs/zh-CN/reference-cli-tools">Command-line tools</a> like <a
href="/docs/zh-CN/pulsar-admin"><code>pulsar-admin</code></a>, <a
href="/docs/zh-CN/reference-cli-tools#pulsar-perf"><code>pulsar-perf</code></a>,
and <a
href="/docs/zh-CN/reference-cli-tools#pulsar-client"><code>pulsar-client</code></a>
use the <code>conf/client.conf</code> config file in a Pulsar installation.</p>
@@ -132,7 +132,7 @@ config.setAuth(auth);
pulsar::<span class="hljs-function">Client <span
class="hljs-title">client</span><span class="hljs-params">(<span
class="hljs-string">"pulsar+ssl://broker.example.com:6651/"</span>,
config)</span></span>;
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-tls-transport">← 使用TLS进行传输加密</a><a
class="docs-next button" href="/docs/zh-CN/security-athenz">Authentication
using Athenz →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#tls认证概述">TLS认证概述</a><ul
class="toc-headings"><li><a href="#创建客户端证书">创建客户端证书</a></li></ul></li><li><a
href="#开启tls认证">开启TLS认证</a><ul class="toc-headings"><li><a href="#on-bro [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-tls-transport">← 使用TLS进行传输加密</a><a
class="docs-next button" href="/docs/zh-CN/security-athenz">Authentication
using Athenz →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#tls认证概述">TLS认证概述</a><ul
class="toc-headings"><li><a href="#创建客户端证书">创建客户端证书</a></li></ul></li><li><a
href="#开启tls认证">开启TLS认证</a><ul class="toc-headings"><li><a href="#on-bro [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/security-tls-authentication/index.html
b/content/docs/zh-CN/security-tls-authentication/index.html
index e14bf43..5b90d10 100644
--- a/content/docs/zh-CN/security-tls-authentication/index.html
+++ b/content/docs/zh-CN/security-tls-authentication/index.html
@@ -85,7 +85,7 @@
<span
class="hljs-attr">brokerClientAuthenticationPlugin</span>=org.apache.pulsar.client.impl.auth.AuthenticationTls
<span
class="hljs-attr">brokerClientAuthenticationParameters</span>=tlsCertFile:/path/to/proxy.cert.pem,tlsKeyFile:/path/to/proxy.key-pk8.pem
</code></pre>
-<h2><a class="anchor" aria-hidden="true" id="client-configuration"></a><a
href="#client-configuration" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1 [...]
+<h2><a class="anchor" aria-hidden="true" id="客户端配置"></a><a href="#客户端配置"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
<p>When TLS authentication, the client needs to connect via TLS transport, so
you need to configure the client to use <code>https://</code> and port 8443 for
the web service URL, and <code>pulsar+ssl://</code> and port 6651 for the
broker service URL.</p>
<h3><a class="anchor" aria-hidden="true" id="命令行工具"></a><a href="#命令行工具"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
<p><a href="/docs/zh-CN/reference-cli-tools">Command-line tools</a> like <a
href="/docs/zh-CN/pulsar-admin"><code>pulsar-admin</code></a>, <a
href="/docs/zh-CN/reference-cli-tools#pulsar-perf"><code>pulsar-perf</code></a>,
and <a
href="/docs/zh-CN/reference-cli-tools#pulsar-client"><code>pulsar-client</code></a>
use the <code>conf/client.conf</code> config file in a Pulsar installation.</p>
@@ -132,7 +132,7 @@ config.setAuth(auth);
pulsar::<span class="hljs-function">Client <span
class="hljs-title">client</span><span class="hljs-params">(<span
class="hljs-string">"pulsar+ssl://broker.example.com:6651/"</span>,
config)</span></span>;
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-tls-transport">← 使用TLS进行传输加密</a><a
class="docs-next button" href="/docs/zh-CN/security-athenz">Authentication
using Athenz →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#tls认证概述">TLS认证概述</a><ul
class="toc-headings"><li><a href="#创建客户端证书">创建客户端证书</a></li></ul></li><li><a
href="#开启tls认证">开启TLS认证</a><ul class="toc-headings"><li><a href="#on-bro [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-tls-transport">← 使用TLS进行传输加密</a><a
class="docs-next button" href="/docs/zh-CN/security-athenz">Authentication
using Athenz →</a></div></div></div><nav class="onPageNav"><ul
class="toc-headings"><li><a href="#tls认证概述">TLS认证概述</a><ul
class="toc-headings"><li><a href="#创建客户端证书">创建客户端证书</a></li></ul></li><li><a
href="#开启tls认证">开启TLS认证</a><ul class="toc-headings"><li><a href="#on-bro [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/security-tls-transport.html
b/content/docs/zh-CN/security-tls-transport.html
index bbefc8f..69f5cbf 100644
--- a/content/docs/zh-CN/security-tls-transport.html
+++ b/content/docs/zh-CN/security-tls-transport.html
@@ -134,7 +134,7 @@ $ chmod 444 certs/ca.cert.pem
<span class="hljs-attr">tlsEnabledWithBroker</span>=<span
class="hljs-literal">true</span>
<span
class="hljs-attr">brokerClientTrustCertsFilePath</span>=/path/to/ca.cert.pem
</code></pre>
-<h2><a class="anchor" aria-hidden="true" id="client-configuration"></a><a
href="#client-configuration" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1 [...]
+<h2><a class="anchor" aria-hidden="true" id="客户端配置"></a><a href="#客户端配置"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
<p>When TLS transport encryption is enabled, you need to configure the client
to use <code>https://</code> and port 8443 for the web service URL, and
<code>pulsar+ssl://</code> and port 6651 for the broker service URL.</p>
<p>As the server certificate you generated above doesn't belong to any of the
default trust chains, you also need to either specify the path the
<strong>trust cert</strong> (recommended), or tell the client to allow
untrusted server certs.</p>
<h3><a class="anchor" aria-hidden="true" id="命令行工具"></a><a href="#命令行工具"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
@@ -172,7 +172,7 @@ config.setTlsAllowInsecureConnection(<span
class="hljs-literal">false</span>);
pulsar::<span class="hljs-function">Client <span
class="hljs-title">client</span><span class="hljs-params">(<span
class="hljs-string">"pulsar+ssl://broker.example.com:6651/"</span>,
config)</span></span>;
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-overview">← Pulsar安全概述</a><a
class="docs-next button"
href="/docs/zh-CN/security-tls-authentication">使用TLS进行认证
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#tls-概述">TLS 概述</a></li><li><a href="#tls-概念">TLS 概念</a></li><li><a
href="#创建tls证书">创建TLS证书</a><ul class="toc-headings"><li><a
href="#证书颁授">证书颁授</a></li><li><a href="#服务器端证书">服务器端证书</a>< [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-overview">← Pulsar安全概述</a><a
class="docs-next button"
href="/docs/zh-CN/security-tls-authentication">使用TLS进行认证
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#tls-概述">TLS 概述</a></li><li><a href="#tls-概念">TLS 概念</a></li><li><a
href="#创建tls证书">创建TLS证书</a><ul class="toc-headings"><li><a
href="#证书颁授">证书颁授</a></li><li><a href="#服务器端证书">服务器端证书</a>< [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/security-tls-transport/index.html
b/content/docs/zh-CN/security-tls-transport/index.html
index bbefc8f..69f5cbf 100644
--- a/content/docs/zh-CN/security-tls-transport/index.html
+++ b/content/docs/zh-CN/security-tls-transport/index.html
@@ -134,7 +134,7 @@ $ chmod 444 certs/ca.cert.pem
<span class="hljs-attr">tlsEnabledWithBroker</span>=<span
class="hljs-literal">true</span>
<span
class="hljs-attr">brokerClientTrustCertsFilePath</span>=/path/to/ca.cert.pem
</code></pre>
-<h2><a class="anchor" aria-hidden="true" id="client-configuration"></a><a
href="#client-configuration" aria-hidden="true" class="hash-link"><svg
class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0
0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5
0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2
3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4
9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1 [...]
+<h2><a class="anchor" aria-hidden="true" id="客户端配置"></a><a href="#客户端配置"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
<p>When TLS transport encryption is enabled, you need to configure the client
to use <code>https://</code> and port 8443 for the web service URL, and
<code>pulsar+ssl://</code> and port 6651 for the broker service URL.</p>
<p>As the server certificate you generated above doesn't belong to any of the
default trust chains, you also need to either specify the path the
<strong>trust cert</strong> (recommended), or tell the client to allow
untrusted server certs.</p>
<h3><a class="anchor" aria-hidden="true" id="命令行工具"></a><a href="#命令行工具"
aria-hidden="true" class="hash-link"><svg class="hash-link-icon"
aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16"
width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4
3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10
5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2
2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09 [...]
@@ -172,7 +172,7 @@ config.setTlsAllowInsecureConnection(<span
class="hljs-literal">false</span>);
pulsar::<span class="hljs-function">Client <span
class="hljs-title">client</span><span class="hljs-params">(<span
class="hljs-string">"pulsar+ssl://broker.example.com:6651/"</span>,
config)</span></span>;
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-overview">← Pulsar安全概述</a><a
class="docs-next button"
href="/docs/zh-CN/security-tls-authentication">使用TLS进行认证
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#tls-概述">TLS 概述</a></li><li><a href="#tls-概念">TLS 概念</a></li><li><a
href="#创建tls证书">创建TLS证书</a><ul class="toc-headings"><li><a
href="#证书颁授">证书颁授</a></li><li><a href="#服务器端证书">服务器端证书</a>< [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev
button" href="/docs/zh-CN/security-overview">← Pulsar安全概述</a><a
class="docs-next button"
href="/docs/zh-CN/security-tls-authentication">使用TLS进行认证
→</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a
href="#tls-概述">TLS 概述</a></li><li><a href="#tls-概念">TLS 概念</a></li><li><a
href="#创建tls证书">创建TLS证书</a><ul class="toc-headings"><li><a
href="#证书颁授">证书颁授</a></li><li><a href="#服务器端证书">服务器端证书</a>< [...]
const community =
document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/swagger/swagger.json b/content/swagger/swagger.json
index df976fd..1b7d655 100644
--- a/content/swagger/swagger.json
+++ b/content/swagger/swagger.json
@@ -6367,10 +6367,10 @@
"type" : "string"
}
},
- "connectedSince" : {
+ "clientVersion" : {
"type" : "string"
},
- "clientVersion" : {
+ "connectedSince" : {
"type" : "string"
},
"address" : {
@@ -6690,7 +6690,10 @@
"type" : "number",
"format" : "double"
},
- "cpu" : {
+ "bandwidthIn" : {
+ "$ref" : "#/definitions/ResourceUsage"
+ },
+ "bandwidthOut" : {
"$ref" : "#/definitions/ResourceUsage"
},
"underLoaded" : {
@@ -6702,18 +6705,12 @@
"loadReportType" : {
"type" : "string"
},
- "memory" : {
+ "cpu" : {
"$ref" : "#/definitions/ResourceUsage"
},
"directMemory" : {
"$ref" : "#/definitions/ResourceUsage"
},
- "bandwidthIn" : {
- "$ref" : "#/definitions/ResourceUsage"
- },
- "bandwidthOut" : {
- "$ref" : "#/definitions/ResourceUsage"
- },
"lastUpdate" : {
"type" : "integer",
"format" : "int64"
@@ -6725,6 +6722,9 @@
"msgThroughputOut" : {
"type" : "number",
"format" : "double"
+ },
+ "memory" : {
+ "$ref" : "#/definitions/ResourceUsage"
}
}
},
@@ -6884,13 +6884,13 @@
"type" : "number",
"format" : "double"
},
- "producerName" : {
+ "clientVersion" : {
"type" : "string"
},
- "connectedSince" : {
+ "producerName" : {
"type" : "string"
},
- "clientVersion" : {
+ "connectedSince" : {
"type" : "string"
},
"address" : {
@@ -7588,13 +7588,13 @@
"type" : "string"
}
},
- "producerName" : {
+ "clientVersion" : {
"type" : "string"
},
- "connectedSince" : {
+ "producerName" : {
"type" : "string"
},
- "clientVersion" : {
+ "connectedSince" : {
"type" : "string"
},
"address" : {
@@ -7653,15 +7653,15 @@
"ResourceDescription" : {
"type" : "object",
"properties" : {
- "usagePct" : {
- "type" : "integer",
- "format" : "int32"
- },
"resourceUsage" : {
"type" : "object",
"additionalProperties" : {
"$ref" : "#/definitions/ResourceUsage"
}
+ },
+ "usagePct" : {
+ "type" : "integer",
+ "format" : "int32"
}
}
},
@@ -7696,11 +7696,11 @@
"ResourceUnit" : {
"type" : "object",
"properties" : {
- "resourceId" : {
- "type" : "string"
- },
"availableResource" : {
"$ref" : "#/definitions/ResourceDescription"
+ },
+ "resourceId" : {
+ "type" : "string"
}
}
},