Anonymitaet commented on code in PR #504:
URL: https://github.com/apache/pulsar-site/pull/504#discussion_r1161386488


##########
docs/admin-get-started.md:
##########
@@ -9,102 +9,245 @@ import Tabs from '@theme/Tabs';
 import TabItem from '@theme/TabItem';
 ````
 
-This guide walks you through the quickest way to get started with the 
following Pulsar admin APIs to manage topics:
+This guide walks you through the quickest way to get started with the 
following methods to manage topics. 
 
-- Java admin API
+````mdx-code-block
+<Tabs groupId="api-choice"
+  defaultValue="pulsar-admin"
+  values={[{"label":"pulsar-admin","value":"pulsar-admin"},{"label":"REST 
API","value":"REST API"},{"label":"Java","value":"Java"}]}>
+<TabItem value="pulsar-admin">
+
+[pulsar-admin 
CLI](pathname:///reference/#/@pulsar:version_reference@/pulsar-admin/): it’s a 
command-line tool and is available in the bin folder of your Pulsar 
installation.
+
+</TabItem>
+<TabItem value="REST API">
+
+[REST API](pathname:///admin-rest-api/?version=@pulsar:version_number@): HTTP 
calls, which are made against the admin APIs provided by brokers. In addition, 
both the Java admin API and pulsar-admin CLI use the REST API.
+
+</TabItem>
+<TabItem value="Java">
+
+[Java admin API](/api/admin/): it’s a programmable interface written in Java.
+
+</TabItem>
 
-- Go admin API (coming soon)
+</Tabs>
+````
 
-- REST API
+Check the detailed steps below.
 
 ````mdx-code-block
 <Tabs groupId="api-choice"
-  defaultValue="Java admin API"
-  values={[{"label":"Java admin API","value":"Java admin API"},{"label":"REST 
API","value":"REST API"}]}>
-<TabItem value="Java admin API">
+  defaultValue="pulsar-admin"
+  values={[{"label":"pulsar-admin","value":"pulsar-admin"},{"label":"REST 
API","value":"REST API"},{"label":"Java","value":"Java"}]}>
+<TabItem value="pulsar-admin">
 
-This tutorial guides you through every step of using Java admin API to manage 
topics. It includes the following steps:
+This tutorial guides you through every step of using pulsar-admin CLI to 
manage topics. It includes the following steps:
 
-1. Initiate a Pulsar Java client.
+1. Set the service URL.
 
-2. Create a partitioned topic
+2. Create a partitioned topic.
 
 3. Update the number of a partition.
 
 4. Produce messages to the topic.
 
 5. Check the stats of the topic.
 
-6. Delete the topic.
+6. Delete the topic. 
 
 **Prerequisites**
 
-- Prepare a Java project. You can download one from [Apache Pulsar examples 
and demos](https://github.com/streamnative/examples).
+- Install and start Pulsar standalone. This tutorial runs Pulsar 2.11 as an 
example.
 
 **Steps**
 
-1. Initiate a Pulsar Java client in your Java project.
+1. Set the service URLs to point to the broker service in 
[client.conf](https://github.com/apache/pulsar/blob/master/conf/client.conf).
+
+    ```bash
+    webServiceUrl=http://localhost:8080/
+    brokerServiceUrl=pulsar://localhost:6650/
+    ```
+
+2. Create a persistent topic named test-topic-1 with 6 partitions.

Review Comment:
   Oops! Updated.



-- 
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