momo-jun commented on code in PR #18379:
URL: https://github.com/apache/pulsar/pull/18379#discussion_r1017454194


##########
site2/docs/tutorials-tenant.md:
##########
@@ -0,0 +1,52 @@
+---
+Id: tutorials-tenant
+title: How to set up a tenant
+sidebar_label: “Tutorials”
+—

Review Comment:
   ```suggestion
   ---
   
   ```



##########
site2/docs/tutorials-produce-consume.md:
##########
@@ -0,0 +1,62 @@
+---
+Id: tutorials-produce-consume
+title: Produce and consume messages
+sidebar_label: “Tutorials”
+—
+
+:::Note: This tutorial has the following prerequisites:
+[Create tenant](tutorials-tenant.md)
+[Create namespace](tutorials-namespace.md)
+[Create topic](tutorials-topic.md):::
+
+In this tutorial, we will:
+Configure the Pulsar client
+Create a subscription
+Create a producer
+Send test messages
+Verify the results
+
+In the ${PULSAR_HOME}/conf/client.conf file, replace webServiceUrl and 
brokerServiceUrl with your service URL.
+Create a subscription to consume messages from apache/pulsar/test-topic.
+bin/pulsar-client consume -s sub apache/pulsar/test-topic  -n 0
+In a new terminal, create a producer and send 10 messages to test-topic.
+bin/pulsar-client produce apache/pulsar/test-topic  -m "---------hello apache 
pulsar-------" -n 10
+Verify the results.
+
+----- got message -----
+---------hello apache pulsar-------
+----- got message -----
+---------hello apache pulsar-------
+----- got message -----
+---------hello apache pulsar-------
+----- got message -----
+---------hello apache pulsar-------
+----- got message -----
+---------hello apache pulsar-------
+----- got message -----
+---------hello apache pulsar-------
+----- got message -----
+---------hello apache pulsar-------
+----- got message -----
+---------hello apache pulsar-------
+----- got message -----
+---------hello apache pulsar-------
+----- got message -----
+---------hello apache pulsar-------
+
+Output from the producer side shows the messages have been produced 
successfully:
+18:15:15.489 [main] INFO  org.apache.pulsar.client.cli.PulsarClientTool - 10 
messages successfully produced.
+
+Related Topics
+[Set up a tenant](tutorials-tenant)
+[Create a topic](tutorials-topic)
+[Create a namespace](tutorials-namespace)
+[Managing Clusters](admin-api-clusters)

Review Comment:
   ```suggestion
   [Manage clusters](admin-api-clusters.md)
   
   ```
   `.md` is required for each internal file link.



##########
site2/docs/tutorials-produce-consume.md:
##########
@@ -0,0 +1,62 @@
+---
+Id: tutorials-produce-consume
+title: Produce and consume messages
+sidebar_label: “Tutorials”
+—
+
+:::Note: This tutorial has the following prerequisites:
+[Create tenant](tutorials-tenant.md)
+[Create namespace](tutorials-namespace.md)
+[Create topic](tutorials-topic.md):::
+
+In this tutorial, we will:
+Configure the Pulsar client
+Create a subscription
+Create a producer
+Send test messages
+Verify the results
+
+In the ${PULSAR_HOME}/conf/client.conf file, replace webServiceUrl and 
brokerServiceUrl with your service URL.
+Create a subscription to consume messages from apache/pulsar/test-topic.
+bin/pulsar-client consume -s sub apache/pulsar/test-topic  -n 0

Review Comment:
   ```suggestion
   ```bash
   bin/pulsar-client consume -s sub apache/pulsar/test-topic  -n 0
   ```
   And it's required to add ``` as the last line for each command snippet. It 
applies to all occurrences.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to