How To: Examples using the Python SDK

Description:

This guide provides a few useful commands for interacting with QDS using the Python SDK. Further information about the Python SDK can be found here.

How To:

Run a command and wait for the result (Synchronous):

  • qds.py --token '' hivecmd run --query "show tables" --cluster-label ''

Run a command and return the command ID (Asynchronous):

  • qds.py --token '' hivecmd submit --query "show table" --cluster-label ''

Check the status of a running command:

  • qds.py --token '' hivecmd check <commandID> --cluster-label ''

Retrieve the results from a completed command:

  • qds.py --token '' hivecmd getresult <commandID> --cluster-label ''
Have more questions? Submit a request

Comments

Powered by Zendesk