pfsql
either through the environment variables or through the command lines.
PFSQL_BACKEND
: the HTTP service URL of your Pulsar Cluster.PFSQL_AUTH_PROVIDER
: use “oauth2” as the authentication type.PFSQL_AUTH_PARAMETERS
:
credentials_url
: the path to your downloaded OAuth2 credential file. It supports the following pattern formats:
file://path/to/file
data:application/json;base64,<base64-encoded value>
issuer_url
: the URL of your OAuth2 authentication provider. You can get the value from your downloaded OAuth2 credential file.audience
: the Uniform Resource Name, which is a combination of the urn:sn:pulsar
, the organization name, and the Pulsar instance name, in this format urn:sn:pulsar:<org_name>:<instance_name>
.pfsql info
would be like:-b
: the HTTP service URL of your Pulsar Cluster.--auth-provider
: use “oauth2” as the authentication type.--auth-parameters
: the parameters for OAuth2 authentication. It supports the following pattern formats:
credentials_url
: the path to your downloaded OAuth2 credential file. It supports the following pattern formats:
file://path/to/file
data:application/json;base64,<base64-encoded value>
issuer_url
: the URL of your OAuth2 authentication provider. You can get the value from your downloaded OAuth2 credential file.audience
: the Uniform Resource Name, which is a combination of the urn:sn:pulsar
, the organization name, and the Pulsar instance name, in this format urn:sn:pulsar:<org_name>:<instance_name>
.pfsql info
would be like:pfsql
execuable is located as /pfsql
in the pfsql-cli
docker image.
Option | Required | Description |
---|---|---|
-b | Yes | Specify the pfSQL gateway service URL. You can use the value of the PFSQL_BACKEND environment variable. |
--auth-provider | No | Specify the authentication provider. Available values are jwt and oauth2 . |
--auth-parameters | No | Specify the authentication parameters. |
-v | No | Display more output per occurrence. |
-q | No | Display less output per occurrence. |
-h | No | Print help information. |
-V | No | Print version information. |
Subcommand | Description |
---|---|
info | Get the pfSQL gateway status and version. |
query | Manage pfSQL queries. You can use it to execute a pfSQL query or to list the available queries. For more details, see Query subcommands |
udf | Manage pfSQL UDFs. |
health-check | Check the health status of the pfSQL gateway. |
pfsql query
.
Subcommand | Description |
---|---|
pfsql query metadata | Get query metadata. |
pfsql query list | List all queries. |
pfsql query status | Get query status. |
pfsql query stats | Get query stats. |
pfsql query run | Submit a new query. |
pfsql query pause | Pause a query. |
pfsql query resume | Resume a query. |
pfsql query delete | Delete a query. |
pfsql query preview | Preview a query’s result. |