Skip to content
  1. Home
  2. Docs
  3. Xcalar Quick Start Guide
  4. Building your first data pipeline
  5. Exporting your data back to S3

Exporting your data back to S3

In this exercise you will learn how to export your resultant data back to your AWS S3 bucket.

NOTE: The following example assumes that you are logged into Xcalar, that you have created a table or tables from your data source in Xcalar Load, that you are in a Project in the Xcalar Notebook workspace, and that you have created a table from your SQL statement.

To export your data back to S3:

    1. In the SQL Graph tab of App Builder, hover your mouse over the Out tab and then click and drag the Export graph-node into the SQL Graph’s canvas. A SQL Graph is view only message appears, stating that the graph is view only and must be saved as a module before changes can be made.
    2. Select Create new module.
    3. In the new module, repeat the step 1 operation of dragging the Export graph-node into the modules canvas.
    4. Connect the Join graph-node to the Export graph-node by selecting the Join’s intermediate table’s triangle and dragging your cursor to any part of Export graph-node.
    5. Right-click the Export graph-node and select Edit Operator. The Export operator’s configuration panel opens.
    6. Configure the Export operator’s settings as follows:
      • In the Columns to export section, select the Select All check box.
      • From the Export Method list, select Single CSV file.
      • From the Target list, select Xcalar S3 Connector.
      • In the File Path field, enter, as a relative path, the path, the destination directory, and the file name for the new exported file.

In this case use your Xcalar S3 bucket:

/xcalarS3bucket/export/myfirstdatapipeline.csv

      • Select the (Optional) header check box.
      • In the Field Delimiter field, enter a comma (,) .
      • In the Record Delimiter field, enter the new line characters (\n) .
      • In the Quote Character field, enter the double quote character ( ) .
    1. Click Save.
NOTE: If an error message appears, verify that you have write privileges for the directory.
    1. (Optional) Verify that your myfirstdatapipeline CSV file has successfully been exported to your Xcalar S3 bucket, by doing the following:
      • Click the Xcalar Home icon and then from the Xcalar Landing page, click Load.
      • Verify that the Connector list is displaying the correct connector to your data source, in this case Xcalar S3 Connector.
      • From the S3 Bucket field, select the Xcalar S3 bucket that was created for you.
      • In the Path field, click Browse.
      • In the Browse Data Source window, locate the export directory and your exported file. In this case myfirstdatapipeline.

Congratulations you have successfully exported your data into your Xcalar S3 bucket and completed this section of the Quick Start Guide.

In the next section you will learn how to analyze a columns data using the Profile and the Correlation and Quick Aggregates features.

Was this article helpful to you? Yes No

How can we help?