Uploading or Downloading a File to or from Azure WASB or ADLS

Prerequisites

  • The QDS role assigned to you must have upload and download permissions for the Object Storage resource; see Resources, Actions, and What they Mean.

  • You must configure CORS (Cross Origin Resource Sharing) for the Azure storage account you specified as the default for your QDS account:

    • In the Azure Portal, navigate to Storage Accounts and choose the account you are using as the default for your QDS account.

    • Under Settings, choose CORS.

    • Enter the parameter values as follows:

      • ALLOWED ORIGIN: Enter https://azure.qubole.com.
      • ALLOWED METHODS: Check GET and PUT.
      • ALLOWED HEADERS: Enter Authorization. For Blob storage you can also use x-ms-blob-type or Content-Type
      • EXPOSED HEADERS: Enter Authorization. For Blob storage you can also use x-ms-blob-type or Content-Type
      • MAX AGE: Enter a number of seconds such as 3000.

    For more information about configuring CORS for an Azure storage account, see this Azure article.

Uploading or Downloading a File Using the QDS Explore Page

Proceed as follows:

  1. Navigate to the Explore page and choose My Blob or My ADLS from the drop-down list.
  2. Browse to the default storage location for your QDS account.
    • To upload a file:
      • Hover the cursor over the folder, click the gear icon that appears next it, and choose Upload. The file upload dialog appears.
      • Click Browse; navigate to the location of the file and select the file. Click Submit.
      • You’ll see a confirmation if the upload is successful or an error message if it fails.
      • Check for the file in the location you chose in step 3.
    • To download a file:
      • Select the file from the tree under the default storage location.
      • Hover the cursor over the file, click the gear icon that appears next it, and choose Download. The file downloads to the default location configured in your browser.
      • A pop-up window shows the source path of the downloaded file and allows you to preview its contents.

Uploading or Downloading a File using the QDS Analyze or Notebooks Page