<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>EGRESS on Kinetica Docs</title><link>/7.1/snippet-tags/egress/</link><description>Recent content in EGRESS on Kinetica Docs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/7.1/snippet-tags/egress/index.xml" rel="self" type="application/rss+xml"/><item><title>Exporting Data</title><link>/7.1/snippets/export-data/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/7.1/snippets/export-data/</guid><description>EXPORT ... INTO Sources (Table/Query) Data Sinks (File/Table/DML) Delimited Text Options Parquet Files Naming Options Sizing Options EXPORT ... INTO Sources (Table/Query) Table Query Table 1 2 EXPORT TABLE employee INTO FILE PATH &amp;#39;/export/employee.csv&amp;#39; Query 1 2 3 4 5 6 7 EXPORT QUERY ( SELECT id, manager_id, first_name, last_name, salary, hire_date FROM employee WHERE dept_id = 2 ) INTO FILE PATH &amp;#39;/export/employee_dept2.csv&amp;#39; Data Sinks (File/Table/DML) File Table (via JDBC) DML (via JDBC) Init Options (via JDBC) File 1 2 3 EXPORT TABLE employee INTO FILE PATH &amp;#39;/data/employee.</description></item><item><title>JSON Egress</title><link>/7.1/snippets/json-egress/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/7.1/snippets/json-egress/</guid><description>Simple Egress Egress with Parameters Egress with Aggregation The /get/records/json REST endpoint can be called to retrieve data in JSON form directly from the database.
See Overview for call details and Responses for return values.
Simple Egress cURL Python Java JavaScript Node.js cURL 1 2 3 4 5 6 7 8 9 10 KINETICA_URL=http://localhost:9191 USERNAME=auser PASSWORD=apassword TABLE_NAME=product # Quote the URL when passing multiple options, or any &amp;amp; will stop the URL # parsing and run the URL parsed up to that point as a background job curl -sS ${KINETICA_URL}/get/records/json?</description></item><item><title>Create Data Sinks</title><link>/7.1/snippets/create-data-sinks/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/7.1/snippets/create-data-sinks/</guid><description>Amazon S3 Azure BLOB CData Google Cloud Storage HDFS JDBC Apache Kafka Web Hook Several authentication schemes across multiple providers are supported. For a detailed overview of all of the provider-specific options, see the SQL documentation.
Note
Creating an authenticated data sink requires creating a corresponding credential object to store the authentication information and then referencing that object when creating the data sink. See Create Credentials for examples.
Amazon S3 Credential 1 2 3 4 5 6 7 8 CREATE DATA SINK s3_dsink LOCATION = &amp;#39;S3&amp;#39; WITH OPTIONS ( CREDENTIAL = &amp;#39;s3_cred&amp;#39;, BUCKET NAME = &amp;#39;samplebucket&amp;#39;, REGION = &amp;#39;us-east-2&amp;#39; ) Azure BLOB Credential 1 2 3 4 5 6 7 CREATE DATA SINK azure_dsink LOCATION = &amp;#39;AZURE&amp;#39; WITH OPTIONS ( CREDENTIAL = &amp;#39;azure_cred&amp;#39;, CONTAINER NAME = &amp;#39;samplecontainer&amp;#39; ) CData Credential Password in URL Credential 1 2 3 CREATE DATA SINK cdata_dsink LOCATION = &amp;#39;jdbc:postgresql:Server=localhost;Port=5432;Database=ki_home&amp;#39; WITH OPTIONS (CREDENTIAL = &amp;#39;cdata_cred&amp;#39;) Password in URL 1 2 CREATE DATA SINK cdata_dsink LOCATION = &amp;#39;jdbc:postgresql:Server=localhost;Port=5432;Database=ki_home;User=dsink_user;Password=dsink_pass&amp;#39; Google Cloud Storage Credential 1 2 3 4 5 6 7 CREATE DATA SINK gcs_dsink LOCATION = &amp;#39;GCS&amp;#39; WITH OPTIONS ( CREDENTIAL = &amp;#39;gcs_cred&amp;#39;, GCS_BUCKET_NAME = &amp;#39;gcs-private&amp;#39; ) HDFS Credential 1 2 3 CREATE DATA SINK hdfs_dsink LOCATION = &amp;#39;HDFS://example.</description></item></channel></rss>