pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] rdhabalia commented on a change in pull request #1011: Managed ledger admin docs (WIP)
Date Thu, 01 Jan 1970 00:00:00 GMT
rdhabalia commented on a change in pull request #1011: Managed ledger admin docs (WIP)
URL: https://github.com/apache/incubator-pulsar/pull/1011#discussion_r158871732
 
 

 ##########
 File path: site/_data/cli/pulsar-managed-ledger-admin.yaml
 ##########
 @@ -0,0 +1,66 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+description: Manages ledgers
+commands:
+- name: print-managed-ledger
+  description: Returns information for a given managed ledger path
+  example: |
+    pulsar-managed-ledger-admin print-managed-ledger \
+      --zkServer localhost:2181 \
+      --managedLedgerPath sample/standalone/ns1/persistent/test    
+- name: delete-managed-ledger-ids
+  description: Deletes ledgers corresponding to the provided ledger ID or IDs
+  options:
+  - flags: -lid, --ledgerIds
+    description: A comma-separated list of ledger IDs
+  example: |
+    pulsar-managed-ledger-admin delete-managed-ledger-ids \
+      --zkServer localhost:2181 \
+      --managedLedgerPath sample/standalone/ns1/persistent/test \
+      --ledgerIds 3,7,11
+- name: print-cursor
+  description: Print the managed ledger cursor for the provided managed cursor path
+  options:
+  - flags: -cn, --cursorName
+    description: The cursor name
+  example: |
+    pulsar-managed-ledger-admin print-cursor \
+      --zkServer localhost:2181 \
+      --managedLedgerPath sample/standalone/ns1/persistent/test \
+      --cursorName s1
+- name: update-mark-delete-cursor
+  description: Update the mark-delete position of the specified managed cursor
+  options:
+  - flags: -cn, --cursorName
+    description: The cursor name
+  - flags: -cm, --cursorMarkDelete
+    description: The cursor mark-delete position as <ledger_id>:<entry_id>
+  example: |
+    pulsar-managed-ledger-admin update-mark-delete-cursor \
+      --zkServer localhost:2181 \
+      --managedLedgerPath sample/standalone/ns1/persistent/test \
+      --cursorName s1 \
+      --cursorMarkDelete 0:1
+options:
 
 Review comment:
   it seems we only have 4 commands so, do we need line #61-#66

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message