Navigation

createStore

On this page

  • Syntax
  • Parameters
  • Output
  • Example
  • Troubleshoot Errors

The createStore command creates a store in the Atlas Data Lake storage configuration. Click on the tab below to learn more about creating a data store for the data source.

Parameter
Type
Description
Required?
createStore
string
Name of the new data store. The data store name must be unique.
yes
provider
string

Name of the service where the data is stored. Value can be one of the following:

  • s3 for an AWS S3 bucket.
  • atlas for Atlas cluster.
  • http for files hosted at publicly accessible URLs.
yes

The command prints the following output if it succeeds. If the command fails, see Troubleshoot Errors for recommended solutions.

The following example uses the createStore command to create a new data store called myStore.

If the command fails, it returns one of the following errors.

Reason: A data store with the name specified in createStore already exists.

{
"ok": 0,
"errmsg": "store <store-name> already exists",
"code": 2,
"codeName": "BadValue"
}

Solution: Specify a unique name for the data store.

Reason: The specified provider isn't recognized.

{
"ok": 0,
"errmsg": "unrecognized store provider <storage-provider>",
"code": 2,
"codeName": "BadValue"
}

Solution: Ensure that you specify a valid storage provider.

Give Feedback

On this page

  • Syntax
  • Parameters
  • Output
  • Example
  • Troubleshoot Errors