psm bdcsce create-service

Create an Oracle Big Data Cloud cluster.

Syntax

In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.

psm bdcsce create-service -c|--config-payload path-to-json-file
	[-of|--output-format short|json|html]
	[-wc|--wait-until-complete true|false]

Parameters

Parameter Description

-c|--config-payload path-to-json-file

Specifies the path to a JSON file containing the information necessary to create a cluster. The format of this file is the same as the request body you provide when creating a service instance by using the REST API.

-of|--output-format short|json|html

(Optional) Specifies the output format of the command’s response:

  • short— output is formatted as a brief summary.

  • json— output is formatted as a JSON array.

  • html— output is formatted as HTML

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

–wc|--wait-until-complete true|false

(Optional) If set to true, the command behaves synchronously. That is, it does not return until the submitted job is complete. The following message is displayed until the job is complete:

Waiting for the job to complete... (it cannot be cancelled)

The default value is false.

Examples

The following example creates an Oracle Big Data Cloud cluster as specified by information provided in the create_bdcsce-cluster.json file.

$ psm bdcsce create-service --config-payload create_bdcsce-cluster.json
{
    "details":{
        "message":"Submitted job to create service [bdcsce-cluster] in domain [beta].",
        "jobId":"6165"
    }
}
Job ID : 6165

Note:

You can track the progress of this command using the operation-status command.

Here is the information about job 6165 during the creation of the service:

$ psm bdcsce operation-status --job-id 6165
{
    "activityLogId":6086,
    "serviceName":"bdcsce-cluster",
    "serviceType":"bdcsce",
    "identityDomain":"beta",
    "serviceId":121,
    "jobId":6165,
    "startDate":"2017-01-11T09:28:37.037+0000",
    "status":"RUNNING",
    "operationId":121,
    "operationType":"CREATE_SERVICE",
    "summaryMessage":"CREATE_SERVICE",
    "authDomain":"beta",
    "authUser":"weblogic",
    "initiatedBy":"USER",
    "messages":[
        {
            "activityDate":"2017-01-11T09:28:37.037+0000",
            "message":"Activity Submitted"
        },
        {
            "activityDate":"2017-01-11T09:28:37.064+0000",
            "message":"Activity Started"
        },
        {
            "activityDate":"2017-01-11T09:28:37.076+0000",
            "message":"Started operation to create service [bdcsce-cluster] in identity domain [beta]."
        },
        {
            "activityDate":"2017-01-11T09:28:37.210+0000",
            "message":"Creating service [bdcsce-cluster] resources [bdcsce-cluster-bdcsce-6,bdcsce-cluster-bdcsce-5,bdcsce-cluster-bdcsce-2,bdcsce-cluster-bdcsce-1,bdcsce-cluster-bdcsce-4,bdcsce-cluster-bdcsce-3]."
        }
    ]
}

Listing of create_bdcsce-cluster.json (with no service association)

Note that the value of vmPublicKeyText has been truncated in the following listing.

{
    "vmPublicKeyText":"ssh-rsa AAAA...",
    "cloudStorageContainer":"http://a9999.storage.oraclecloud.com/Storage-a9999/bdcsce-container",
    "cloudStorageUser":"Storageadmin",
    "cloudStoragePassword":"password",
    "useHighPerformanceStorage":true,
    "serviceName":"bdcsce-cluster",
    "serviceDescription":"This is a BDCSCE cluster.",
    "serviceLevel":"PAAS",
    "meteringFrequency":"HOURLY",
    "serviceVersion":"1.6",
    "edition":"EE",
    "vmUser":"opc",
    "components":{
        "bdcsce":{
            "clusterSize":"6",
            "computeOnlySlaves":"1",
            "shape":"oc3m",
            "hdfsStorage":"60",
            "bdfsCacheStorage":"50",
            "queueProfile":"",
            "IDCSEnabled":true,
            "sparkVersion":"2_1",
            "adminUserName":"bdcsce_admin",
            "adminUserPassword":"password",
            "associateDBCS":false,
            "associateMYSQL":false,
            "associateOEHCS":false
        }
    }
}

Listing of create_bdcsce-cluster.json (with service associations)

The following JSON payload creates the Oracle Big Data Cloud cluster with Oracle Database Classic Cloud Service (DBCS) and Oracle Event Hub Cloud Service (OEHCS) associations.

{
    "vmPublicKeyText":"ssh-rsa AAAA...",
    "cloudStorageContainer":"http://a9999.storage.oraclecloud.com/Storage-a9999/bdcsce-container",
    "cloudStorageUser":"Storageadmin",
    "cloudStoragePassword":"password",
    "useHighPerformanceStorage":true,
    "serviceName":"bdcsce-cluster",
    "serviceDescription":"This is a BDCSCE cluster.",
    "serviceLevel":"PAAS",
    "meteringFrequency":"HOURLY",
    "serviceVersion":"1.6",
    "edition":"EE",
    "vmUser":"opc",
    "components":{
        "bdcsce":{
            "clusterSize":"6",
            "computeOnlySlaves":"1",
            "shape":"oc3m",
            "hdfsStorage":"60",
            "bdfsCacheStorage":"50",
            "queueProfile":"",
            "IDCSEnabled":true,
            "sparkVersion":"2_1",
            "adminUserName":"bdcsce_admin",
            "adminUserPassword":"password",
            "associateDBCS":true,
            "dbcsName":"dbcs-service",
            "dbcsPDBName":"pdb1",
            "associateMYSQL":false,
            "associateOEHCS":true,
            "oehcsName":"oehcs-cluster"
        }
    }
}