wx-data engine create
Create a new
engine.
Syntax
cpd-cli wx-data engine
create \
--display-name=<engine-display-name> \
--origin=<origin> \
--type=<engine-type> \
[--associated-catalog=<associated-catalog>] \
[--bucket-name=<placeholder-text>] \
[--bucket-type=<placeholder-text>] \
[--description=<description>] \
[--engine-api-key=<engine-api-key>] \
[--engine-connection-string=<engine-connection-string>] \
[--engine-coordinator=<engine-coordinator>] \
[--engine-details=<engine-details>] \
[--engine-managed-by=<engine-managed-by>] \
[--engine-size-config=<engine-size-config>] \
[--engine-worker=<engine-worker>] \
[--instance-id=<instance-id>] \
[--other-engine-type=<other-engine-type>] \
[--region=<region>] \
[--root-path=<root-path>] \
[--spark-home-bucket-name=<spark-home-bucket-name>] \
[--spark-home-volume-id=<spark-home-volume-id>] \
[--spark-home-volume-name=e] \
[--spark-home-volume-storage-class=e] \
[--spark-home-volume-storage-size=e] \
[--spark-scale-config=e] \
[--spark-scale-config=e] \
[--spark-version=e] \
[--tags=<tag1,tag2,...>] \
[--version=<version>]
Options
Table 1: Command options
| Option | Description |
|---|---|
--associated-catalog |
Bucket catalog object that
includes catalog name, catalog tags, and catalog type.
|
--bucket-name |
Bucket
name.
|
--bucket-type |
Bucket
type.
|
--description |
Engine
description.
|
--display-name |
Engine display
name.
|
--engine-api-key |
API key to work with an IBM
Analytics Engine (IAE) instance on SaaS.
|
--engine-connection-string |
External engine connection
string.
|
--engine-coordinator |
Provide adhoc coordinator details
in JSON format.
|
--engine-details |
Provide adhoc engine
details.
|
--engine-managed-by |
Engine managed
by.
|
--engine-size-config |
Size
config.
|
--engine-worker |
Provide adhoc worker details in
JSON format.
|
--instance-id |
watsonx.data instance ID for IBM
Software Hub or CRN for SaaS.
|
--origin |
Origin.
|
--other-engine-type |
Engine type, when type is
other.
|
--region |
Region of the bucket
location.
|
--root-path |
Root path, applicable for
Milvus.
|
--spark-home-bucket-name |
Home bucket name for Spark.
Required for SaaS environments.
|
--spark-home-volume-id |
Existing home volume ID for Spark.
Only for Cloud Pak for Data environments.
|
--spark-home-volume-name |
Name for the new home volume. Only
for Cloud Pak for Data environments.
|
--spark-home-volume-storage-class |
Storage class of the volume. Only
for Cloud Pak for Data environments.
|
--spark-home-volume-storage-size |
Storage size of the volume. Only
for Cloud Pak for Data environments.
|
--spark-scale-config |
Spark engine scale config. Only
for SaaS environments.
|
--spark-version |
The Spark version for the native
engine.
|
--tags |
Specify the data asset tags.
Multiple tags can be specified.
|
--type |
Engine
type.
|
--version |
Version like 0.278 for
Presto or else.
|
Examples
Presto or Prestissimo:
cpd-cli wx-data engine
create \
--origin native \
--type presto \
--associated-catalog iceberg-data,hive-data \
--description 'presto engine for running sql queries' \
--display-name sampleEngine \
--region us-south \
--tags tag1,tag2 \
--version v0.286 \
--instance-id 875463829 \
--root-path '{
"api_key": "<api_key>",
"connection_string": "1.2.3.4",
"managed_by": "fully/self",
"size_config": "starter",
"coordinator": {"node_type": "bx2.4x16", "quantity": 1 },
"worker": { "node_type": "bx2.4x16", "quantity": 1 }
}'
Spark example 1:
cpd-cli wx-data engine
create \
--type spark \
--engine-details '{
"api_key":"<api_key>",
"connection_string":"https://api.us-south.ae.cloud.ibm.com/v3/analytics_engines/2fc8",
"managed_by":"fully/self"
}' \
--display-name sparkEngine \
--origin external \
--instance-id 17378
Spark example 2:
cpd-cli wx-data engine
create \
--type spark \
--spark-version 3.4 \
--spark-home-volume-name newvolspark2 \
--spark-home-volume-storage-class nfs-client \
--spark-home-volume-storage-size 5Gi \
--display-name sparkNativeEngine \
--origin native \
--instance-id 1737804849506753 \
--spark-home-bucket-name bucketcos \
--spark-scale-config '{"node_type": "small", "number_of_nodes":1}'
Milvus:
cpd-cli wx-data engine
create \
--origin native \
--type milvus \
--display-name sampleEngine \
--bucket-name sampleBucketName \
--instance-id 875463829 \
--root-path /filepath \
--engine-size-config starter
Netezza:
cpd-cli wx-data engine
create \
--origin external \
--description Netezza engine \
--type netezza \
--display-name sampleEngine \
--instance-id 875463829 \
--engine-details '{"connection_string": "connectionStringValue"}'
Db2:
cpd-cli wx-data engine
create \
--origin external \
--description db2 engine \
--type db2 \
--display-name sampleEngine \
--instance-id875463829 \
--engine-details '{"connection_string": "connectionStringValue"}'
Other:
cpd-cli wx-data engine
delete \
--origin external \
--type other \
--display-name sampleOtherEngine \
--instance-id 875463829 \
--other-engine-type 'SampleEngineType' \
--engine-connection-string sampleConnectionString