reset

Use this command to reset a specific object's value back to its default value on the Apache Pulsar cluster to which you are connected.

Note: As shown in the examples, the path can either be absolute or relative to the current directory.

Synopsis

reset <ResetCommandArgs> [ResetCommandArg Options]

reset backlog-quota-check

reset backlog-quota-check

Manually trigger backlogQuotaCheck.

reset broker

reset broker <Cluster> <Broker Option>
Reset attributes for the specified broker.
The reset broker command has the following two forms.
reset broker <Cluster> dynamic-config <Config Parameter>
Reset the dynamic configuration parameter for the broker. The available dynamic configuration parameters can be viewed via the show broker dynamic-config command.
reset broker <Cluster> resource-quota <Namespace> bundle <StartBoundary_EndBoundary>
Reset the resource quota setting for the specified namespace and specified bundle in that namespace.
Examples:
/> reset broker localhost:8080 dynamic-config allowAutoTopicCreation

/> reset broker localhost:8080 resource-quota namespace /instance1/cluster1/tenant1/namespace1 bundle 0x00000000_0x40000000

reset cluster

reset cluster <Cluster> [in <Cluster>] failure-domain <DomainName>

reset cluster <Cluster> [in <Cluster>] namespace-isolation-policy <Policy>

reset cluster <Cluster> [in <Cluster>] resource-group <GroupName>

reset cluster <Cluster> [in <Cluster>] peer-clusters

reset cluster <Cluster> [in <Cluster>] [allow-insecure-connection] [auth-plugin] [auth-parameters] [broker-client-certificate] [broker-client-key] [broker-client-tls] [broker-client-tls-enable-keystore] [broker-client-tls-keystore] [broker-client-tls-keystore-password] [broker-client-tls-keystore-type] [broker-client-tls-truststore] [broker-client-tls-truststore-password] [broker-client-tls-truststore-type] [broker-client-trust-certificate] [listener] [proxy-protocol <SNI>] [proxy-url <URL>]

Reset attributes for the specified cluster.
reset cluster <Cluster> failure-domain <DomainName>
Remove the named failure domain from the set of failure domains associated with the cluster.
Example:
/> reset cluster /instance1/cluster1 failure-domain Domain1

reset cluster <Cluster> namespace-isolation-policy <Policy>

Remove the named namespace isolation policy from the set of namespace isolation policies associated with the cluster.
Example:
/> reset cluster /instance1/cluster1 namespace-isolation-policy NIPolicy1

reset cluster <Cluster> resource-group <GroupName>

Remove the named resource group from the set of resource groups associated with the cluster.
Example:
/> reset cluster /instance1/cluster1 resource-group Group1

reset namespace

reset namespace <NamespaceName> <Property>
Reset the value for a specified namespace property.
The reset namespace command requires one of the following property arguments. Some of these arguments require an additional identifier argument. For details, refer to the Apache Pulsar documentation.
  • anti-affinity-group
  • auto-subscription-creation
  • auto-topic-creation
  • backlog-quotas with options:
    • type

  • bookie-affinity-group
  • compaction-threshold
  • deduplication
  • delayed-delivery
  • dispatch-rate
  • inactive-topic-policies
  • max-consumers-per-subscription
  • max-consumers-per-topic
  • max-producers-per-topic
  • max-subscriptions-per-topic
  • max-topics
  • max-unacked-messages-per-consumer
  • max-unacked-messages-per-subscription
  • message-ttl
  • offload-deletion-lag
  • offload-policies
  • permissions <Role>
  • persistence
  • properties
  • publish-rate
  • replicator-dispatch-rate
  • resource-group
  • retention
  • subscribe-rate
  • subscription-dispatch-rate
  • subscription-expiration-time
  • subscription-permissions <Subscription> roles <Role>
  • subscription-types-enabled
Examples:
/> reset namespace /instance1/cluster1/tenant1/namespace1 permissions admin-15

/> reset namespace /instance1/cluster1/tenant1/namespace1 subscribe-rate

/instance1/cluster1/tenant1/namespace1> reset namespace . backlog-quotas

reset subscription

reset subscription <Subscription> earliest

reset subscription <Subscription> latest

reset subscription <Subscription> message-id <MessageID>

Reset the named subscription's message position.

reset subscription <Subscription> earliest

Position the named subscription to the earliest message in the topic.

reset subscription <Subscription> latest

Position the named subscription to the latest message in the topic.

reset subscription <Subscription> message-id <MessageID>

Position the named subscription to the specific message ID in the topic.
Example:
/> reset subscription persistent://instance1/cluster1/tenant1/namespace1/topic1/sub1 message-id 203:0

reset topic

reset topic <Topic> permissions <Role>

reset topic <Topic> truncate

Reset topic attributes.
reset topic <Topic> permissions <Role>
Reset permissions for a specified role in a topic.
Example:
/> reset topic /instance1/cluster1/tenant1/namespace1/topic1 permissions admin-15
reset topic <Topic> truncate
Truncate the named topic.

See Also

set