The sahara client is the command-line interface (CLI) for the Data Processing service API and its extensions.
This chapter documents sahara version 0.14.0.
For help on a specific sahara command, enter:
$ sahara help COMMAND
usage: sahara [--version] [--debug] [--os-cache] [--region-name <region-name>]
[--service-type <service-type>]
[--endpoint-type <endpoint-type>]
[--sahara-api-version <sahara-api-ver>]
[--bypass-url <bypass-url>] [--os-tenant-name OS_TENANT_NAME]
[--os-tenant-id OS_TENANT_ID] [--os-auth-system OS_AUTH_SYSTEM]
[--os-auth-token OS_AUTH_TOKEN] [--insecure]
[--os-cacert <ca-certificate>] [--os-cert <certificate>]
[--os-key <key>] [--timeout <seconds>]
[--os-auth-url OS_AUTH_URL] [--os-domain-id OS_DOMAIN_ID]
[--os-domain-name OS_DOMAIN_NAME]
[--os-project-id OS_PROJECT_ID]
[--os-project-name OS_PROJECT_NAME]
[--os-project-domain-id OS_PROJECT_DOMAIN_ID]
[--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
[--os-trust-id OS_TRUST_ID] [--os-user-id OS_USER_ID]
[--os-username OS_USERNAME]
[--os-user-domain-id OS_USER_DOMAIN_ID]
[--os-user-domain-name OS_USER_DOMAIN_NAME]
[--os-password OS_PASSWORD]
<subcommand> ...
Subcommands:
usage: sahara cluster-create [--json JSON] [--count COUNT]
Create a cluster.
Optional arguments:
usage: sahara cluster-delete [--name NAME] [--id <cluster_id>]
Delete a cluster.
Optional arguments:
usage: sahara cluster-scale [--name NAME] [--id <cluster_id>] [--json JSON]
Scale a cluster.
Optional arguments:
usage: sahara cluster-show [--name NAME] [--id <cluster_id>]
[--show-progress SHOW_PROGRESS] [--json]
Show details of a cluster.
Optional arguments:
usage: sahara cluster-template-create [--json JSON]
Create a cluster template.
Optional arguments:
usage: sahara cluster-template-delete [--name NAME] [--id <template_id>]
Delete a cluster template.
Optional arguments:
usage: sahara cluster-template-list
Print a list of available cluster templates.
usage: sahara cluster-template-show [--name NAME] [--id <template_id>]
[--json]
Show details of a cluster template.
Optional arguments:
usage: sahara cluster-template-update [--name NAME] [--id <template_id>]
[--json JSON]
Update a cluster template.
Optional arguments:
usage: sahara data-source-create --name NAME --type TYPE --url URL
[--description DESCRIPTION] [--user USER]
[--password PASSWORD]
Create a data source that provides job input or receives job output.
Optional arguments:
usage: sahara data-source-delete [--name NAME] [--id ID]
Delete a data source.
Optional arguments:
usage: sahara data-source-show [--name NAME] [--id ID]
Show details of a data source.
Optional arguments:
usage: sahara data-source-update [--name NAME] [--id ID] [--json JSON]
Update a data source.
Optional arguments:
usage: sahara image-add-tag [--name NAME] [--id <image_id>] --tag <tag>
Add a tag to an image.
Optional arguments:
usage: sahara image-register --id <image_id> [--username <name>]
[--description <desc>]
Register an image from the Image index.
Optional arguments:
usage: sahara image-remove-tag [--name NAME] [--id <image_id>] --tag <tag>
Remove a tag from an image.
Optional arguments:
usage: sahara image-show [--name NAME] [--id <image_id>]
Show details of an image.
Optional arguments:
usage: sahara image-unregister [--name NAME] [--id <image_id>]
Unregister an image.
Optional arguments:
usage: sahara job-binary-create --name NAME --url URL
[--description DESCRIPTION] [--user USER]
[--password PASSWORD]
Record a job binary.
Optional arguments:
usage: sahara job-binary-data-create [--file FILE] [--name NAME]
Store data in the internal DB. Use ‘swift upload’ instead of this command. Use this command only if Swift is not available.
Optional arguments:
usage: sahara job-binary-data-delete --id ID
Delete an internally stored job binary data.
Optional arguments:
usage: sahara job-binary-data-list
Print a list of internally stored job binary data.
usage: sahara job-binary-delete [--name NAME] [--id ID]
Delete a job binary.
Optional arguments:
usage: sahara job-binary-show [--name NAME] [--id ID]
Show details of a job binary.
Optional arguments:
usage: sahara job-binary-update [--name NAME] [--id <job_binary_id>]
[--json JSON]
Update a job binary.
Optional arguments:
usage: sahara job-create --job-template JOB_TEMPLATE [--cluster CLUSTER]
[--input-data INPUT_DATA] [--output-data OUTPUT_DATA]
[--param name=value] [--arg ARG]
[--config name=value] [--json JSON]
Create a job.
Optional arguments:
usage: sahara job-delete --id ID
Delete a job.
Optional arguments:
usage: sahara job-show --id ID
Show details of a job.
Optional arguments:
usage: sahara job-template-create [--name NAME] [--type TYPE] [--main MAIN]
[--lib LIB] [--description DESCRIPTION]
[--json JSON]
Create a job template.
Optional arguments:
usage: sahara job-template-delete [--name NAME] [--id ID]
Delete a job template.
Optional arguments:
usage: sahara job-template-show [--name NAME] [--id ID]
Show details of a job template.
Optional arguments:
usage: sahara job-type-list [--type <job_type>] [--plugin <plugin>]
[--plugin-version <plugin_version>]
Show supported job types.
Optional arguments:
usage: sahara node-group-template-create [--json JSON]
Create a node group template.
Optional arguments:
usage: sahara node-group-template-delete [--name NAME] [--id <template_id>]
Delete a node group template.
Optional arguments:
usage: sahara node-group-template-list
Print a list of available node group templates.
usage: sahara node-group-template-show [--name NAME] [--id <template_id>]
[--json]
Show details of a node group template.
Optional arguments:
usage: sahara node-group-template-update [--name NAME] [--id <template_id>]
[--json JSON]
Update a node group template.
Optional arguments:
usage: sahara plugin-show --name <plugin>
Show details of a plugin.
Optional arguments:
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.