sources

Usage

$sources


Interface for managing Pulsar IO Sources (ingress data into Pulsar)

$ pulsar-admin sources subcommand
  • create
  • update
  • delete
  • get
  • status
  • list
  • stop
  • start
  • restart
  • localrun
  • available-sources
  • reload

create

Submit a Pulsar IO source connector to run in a Pulsar cluster

Usage


$ pulsar-admin sources create options

Options

FlagDescriptionDefault
--processing-guaranteesThe processing guarantees (aka delivery semantics) applied to the sourcenull
--diskThe disk (in bytes) that need to be allocated per source instance (applicable only to Docker runtime)null
--producer-configThe custom producer configuration (as a JSON string)null
--batch-builderBatchBuilder provides two types of batch construction methods, DEFAULT and KEY_BASED. The default value is: DEFAULTnull
--custom-runtime-optionsA string that encodes options to customize the runtime, see docs for configured runtime for detailsnull
--classNameThe source's class name if archive is file-url-path (file://)null
--sourceConfigFileThe path to a YAML config file specifying the source's configurationnull
--source-configSource config key/valuesnull
--ramThe RAM (in bytes) that need to be allocated per source instance (applicable only to the process and Docker runtimes)null
--secretsThe map of secretName to an object that encapsulates how the secret is fetched by the underlying secrets providernull
--deserializationClassNameThe SerDe classname for the sourcenull
--processingGuaranteesThe processing guarantees (aka delivery semantics) applied to the Sourcenull
--sourceConfigSource config key/valuesnull
-st, --schema-typeThe schema type (either a builtin schema like ‘avro’, ‘json’, etc.. or custom Schema class name to be used to encode messages emitted from the sourcenull
--batch-source-configBatch source config key/valuesnull
--deserialization-classnameThe SerDe classname for the sourcenull
--cpuThe CPU (in cores) that needs to be allocated per source instance (applicable only to Docker runtime)null
-a, --archiveThe path to the NAR archive for the Source. It also supports url-path [http/https/file (file protocol assumes that file already exists on worker host)] from which worker can download the package.null
--source-config-fileThe path to a YAML config file specifying the source's configurationnull
--parallelismThe source's parallelism factor (i.e. the number of source instances to run)null
--namespaceThe source's namespacenull
--nameThe source's namenull
--destination-topic-nameThe Pulsar topic to which data is sentnull
-o, --destinationTopicNameThe Pulsar topic to which data is sentnull
-t, --source-typeThe source's connector providernull
--classnameThe source's class name if archive is file-url-path (file://)null
--tenantThe source's tenantnull

update

Update a Pulsar IO source connector

Usage


$ pulsar-admin sources update options

Options

FlagDescriptionDefault
--processing-guaranteesThe processing guarantees (aka delivery semantics) applied to the sourcenull
--diskThe disk (in bytes) that need to be allocated per source instance (applicable only to Docker runtime)null
--producer-configThe custom producer configuration (as a JSON string)null
--batch-builderBatchBuilder provides two types of batch construction methods, DEFAULT and KEY_BASED. The default value is: DEFAULTnull
--custom-runtime-optionsA string that encodes options to customize the runtime, see docs for configured runtime for detailsnull
--classNameThe source's class name if archive is file-url-path (file://)null
--sourceConfigFileThe path to a YAML config file specifying the source's configurationnull
--source-configSource config key/valuesnull
--ramThe RAM (in bytes) that need to be allocated per source instance (applicable only to the process and Docker runtimes)null
--secretsThe map of secretName to an object that encapsulates how the secret is fetched by the underlying secrets providernull
--deserializationClassNameThe SerDe classname for the sourcenull
--processingGuaranteesThe processing guarantees (aka delivery semantics) applied to the Sourcenull
--sourceConfigSource config key/valuesnull
--update-auth-dataWhether or not to update the auth datafalse
-st, --schema-typeThe schema type (either a builtin schema like ‘avro’, ‘json’, etc.. or custom Schema class name to be used to encode messages emitted from the sourcenull
--batch-source-configBatch source config key/valuesnull
--deserialization-classnameThe SerDe classname for the sourcenull
--cpuThe CPU (in cores) that needs to be allocated per source instance (applicable only to Docker runtime)null
-a, --archiveThe path to the NAR archive for the Source. It also supports url-path [http/https/file (file protocol assumes that file already exists on worker host)] from which worker can download the package.null
--source-config-fileThe path to a YAML config file specifying the source's configurationnull
--parallelismThe source's parallelism factor (i.e. the number of source instances to run)null
--namespaceThe source's namespacenull
--nameThe source's namenull
--destination-topic-nameThe Pulsar topic to which data is sentnull
-o, --destinationTopicNameThe Pulsar topic to which data is sentnull
-t, --source-typeThe source's connector providernull
--classnameThe source's class name if archive is file-url-path (file://)null
--tenantThe source's tenantnull

delete

Stops a Pulsar IO source connector

Usage


$ pulsar-admin sources delete options

Options

FlagDescriptionDefault
--namespaceThe source's namespacenull
--nameThe source's namenull
--tenantThe source's tenantnull

get

Gets the information about a Pulsar IO source connector

Usage


$ pulsar-admin sources get options

Options

FlagDescriptionDefault
--namespaceThe source's namespacenull
--nameThe source's namenull
--tenantThe source's tenantnull

status

Check the current status of a Pulsar Source

Usage


$ pulsar-admin sources status options

Options

FlagDescriptionDefault
--instance-idThe source instanceId (Get-status of all instances if instance-id is not providednull
--namespaceThe source's namespacenull
--nameThe source's namenull
--tenantThe source's tenantnull

list

List all running Pulsar IO source connectors

Usage


$ pulsar-admin sources list options

Options

FlagDescriptionDefault
--namespaceThe sink's namespacenull
--tenantThe sink's tenantnull

stop

Stop source instance

Usage


$ pulsar-admin sources stop options

Options

FlagDescriptionDefault
--instance-idThe source instanceId (stop all instances if instance-id is not providednull
--namespaceThe source's namespacenull
--nameThe source's namenull
--tenantThe source's tenantnull

start

Start source instance

Usage


$ pulsar-admin sources start options

Options

FlagDescriptionDefault
--instance-idThe source instanceId (start all instances if instance-id is not providednull
--namespaceThe source's namespacenull
--nameThe source's namenull
--tenantThe source's tenantnull

restart

Restart source instance

Usage


$ pulsar-admin sources restart options

Options

FlagDescriptionDefault
--instance-idThe source instanceId (restart all instances if instance-id is not providednull
--namespaceThe source's namespacenull
--nameThe source's namenull
--tenantThe source's tenantnull

localrun

Run a Pulsar IO source connector locally (rather than deploying it to the Pulsar cluster)

Usage


$ pulsar-admin sources localrun options

Options

FlagDescriptionDefault
--processing-guaranteesThe processing guarantees (aka delivery semantics) applied to the sourcenull
--diskThe disk (in bytes) that need to be allocated per source instance (applicable only to Docker runtime)null
--producer-configThe custom producer configuration (as a JSON string)null
--batch-builderBatchBuilder provides two types of batch construction methods, DEFAULT and KEY_BASED. The default value is: DEFAULTnull
--custom-runtime-optionsA string that encodes options to customize the runtime, see docs for configured runtime for detailsnull
--classNameThe source's class name if archive is file-url-path (file://)null
--sourceConfigFileThe path to a YAML config file specifying the source's configurationnull
--broker-service-urlThe URL for the Pulsar brokernull
--tls-allow-insecureAllow insecure tls connectionfalse
--secrets-provider-classnameWhats the classname for secrets providernull
--clientAuthParamsClient authentication paramnull
--secrets-provider-configConfig that needs to be passed to secrets providernull
--source-configSource config key/valuesnull
--ramThe RAM (in bytes) that need to be allocated per source instance (applicable only to the process and Docker runtimes)null
--secretsThe map of secretName to an object that encapsulates how the secret is fetched by the underlying secrets providernull
--tls_allow_insecureAllow insecure tls connectionnull
--deserializationClassNameThe SerDe classname for the sourcenull
--processingGuaranteesThe processing guarantees (aka delivery semantics) applied to the Sourcenull
--use_tlsUse tls connectionnull
--use-tlsUse tls connectionfalse
--sourceConfigSource config key/valuesnull
-st, --schema-typeThe schema type (either a builtin schema like ‘avro’, ‘json’, etc.. or custom Schema class name to be used to encode messages emitted from the sourcenull
--batch-source-configBatch source config key/valuesnull
--deserialization-classnameThe SerDe classname for the sourcenull
--hostname-verification-enabledEnable hostname verificationfalse
--cpuThe CPU (in cores) that needs to be allocated per source instance (applicable only to Docker runtime)null
--client-auth-pluginClient authentication plugin using which function-process can connect to brokernull
--tls_trust_cert_pathtls trust cert file pathnull
--state-storage-service-urlThe URL for the state storage service (the default is Apache BookKeeper)null
-a, --archiveThe path to the NAR archive for the Source. It also supports url-path [http/https/file (file protocol assumes that file already exists on worker host)] from which worker can download the package.null
--source-config-fileThe path to a YAML config file specifying the source's configurationnull
--tls-trust-cert-pathtls trust cert file pathnull
--parallelismThe source's parallelism factor (i.e. the number of source instances to run)null
--namespaceThe source's namespacenull
--client-auth-paramsClient authentication paramnull
--brokerServiceUrlThe URL for the Pulsar brokernull
--nameThe source's namenull
--metrics-port-startThe starting port range for metrics servernull
--destination-topic-nameThe Pulsar topic to which data is sentnull
--clientAuthPluginClient authentication plugin using which function-process can connect to brokernull
-o, --destinationTopicNameThe Pulsar topic to which data is sentnull
-t, --source-typeThe source's connector providernull
--hostname_verification_enabledEnable hostname verificationnull
--classnameThe source's class name if archive is file-url-path (file://)null
--tenantThe source's tenantnull

available-sources

Get the list of Pulsar IO connector sources supported by Pulsar cluster

Usage


$ pulsar-admin sources available-sources options

reload

Reload the available built-in connectors

Usage


$ pulsar-admin sources reload options