CREATE DATA SOURCE Syntax
The data source will be validated upon creation, by default, and
will fail to be created if an authorized connection cannot be established.
- Azure (Microsoft blob storage)
- GCS (Google Cloud Storage)
- HDFS (Apache Hadoop Distributed File System)
- JDBC (Java Database Connectivity, using a user-supplied driver or one of the drivers on the supported list)
-
Kafka (streaming feed)
- Apache
- Confluent
- S3 (Amazon S3 Bucket)
- Azure anonymous data sources are only supported when both the container and the contained objects allow anonymous access.
- HDFS systems with wire encryption are not supported.
- Confluent & Kafka data sources require an associated credential for authentication.
Parameters
OR REPLACE
OR REPLACE
Any existing data source with the same name will be dropped before creating this one
EXTERNAL
EXTERNAL
Optional keyword for clarity
<schema name>
<schema name>
Name of the schema that will contain the created data source; if no schema is specified,
the data source will be created in the user’s default schema
<data source name>
<data source name>
Name of the data source to create; must adhere to the supported
naming criteria
<provider>
<provider>
Provider of the data sourceSupported providers include:
| Provider | Description |
|---|---|
AZURE | Microsoft Azure blob storage |
CONFLUENT | Confluent Kafka streaming feed The LOCATION can be a comma-delimited list of Kafka URLs, to be used for high-availability; only one of which will be streamed from at any given time. |
GCS | Google Cloud Storage |
HDFS | Apache Hadoop Distributed File System |
JDBC | JDBC connection, where LOCATION is the JDBC URL. See the supported list for the full list of supported drivers, or specify one with JDBC_DRIVER_JAR_PATH and JDBC_DRIVER_CLASS_NAME. |
KAFKA | Apache Kafka streaming feed The LOCATION can be a comma-delimited list of Kafka URLs, to be used for high-availability; only one of which will be streamed from at any given time. |
S3 | Amazon S3 bucket |
<host>
<host>
Host to use to connect to the data source; the following providers have a default host, if
host is left blank:| Provider | Default Host |
|---|---|
| Azure | <storage_account_name>.blob.core.windows.net |
| GCS | storage.googleapis.com |
| S3 | <region>.amazonaws.com |
<port>
<port>
Port, for HDFS or Kafka, to use to connect to the data source
USER
USER
Optional user name, given in
<username>, to use for authenticating to the
data sourcePASSWORD
PASSWORD
Optional password, given in
<password>, to use for authenticating to the
data sourceWITH OPTIONS
WITH OPTIONS
Optional indicator that a comma-delimited list of connection option/value assignments will
follow. See Options for the full list of options.
Examples
To create a data source,kin_ds, that connects to an Amazon S3 bucket,
kinetica_ds, in the US East (N. Virginia) region:
CREATE DATA SOURCE Example