MongoDB is a document-oriented NoSQL database used for high volume data storage. MongoDB uses documents (like JSON), mongoexport is a utility that produces a JSON or CSV export of data stored in a MongoDB instance.

Note: To create a new Job Flow, refer Creating New Job Flow.

To create the MongoDB Job, follow the below steps.

Step I: From the Jobs menu, drag and drop the MongoDB Job on canvas.

Step II: Provide the General details of Job.

On Canvas, select the MongoDB job, and then under Properties, provide the General details. 

Name - The Name field consists of default name and is editable.

Description - In the text box, you can provide a description and is optional.

Disable task - Check Disable task, if the job need not be executed as part of the Job Flow, and you do not want to delete the Job.

Step III: Optionally specify the retry attempts for MongoDB.

Under Properties, select the Properties tab to enable retry attempts for MongoDB job execution.

Retry EnabledCheck the retry option if you want to enable retry attempts for MongoDB job.

  • No. of Retry Attempts: Specify the number of attempts to retry MongoDB job execution if in case the job fails to execute. By default, the retry attempts is set to 2.
  • Retry Wait Time (in Seconds): Specify the duration in seconds for the job to retry next execution. By default, the duration is set to 60 seconds. If the Job fails to execute, it retries again for next execution attempt after the specified wait time. 

Step IV: Enter source connection details

1. Under Properties, click Source Options. To add the Source Data Point, that is the source connection details, click Add.

2. The Window displays the list of MongoDB Data Points. Choose the required Data Point.

If there is any Global project that the user has access to, then the window displays the Project drop-down, which lists all the global projects. You can choose the global project from the Project drop-down, and select the global MongoDB data point as required.

3. Once you choose the datapoint, under Source Options, you can view and update the Data Point Property values as needed.

Note: 

  • To change the Source Data Point, click Change
  • To change the default values, click on the respective field and change the value, and to revert, click the Reset icon. The Reset icon appears only when the property value is changed.

Step V: Enter target connection details

1. Under Properties, click Target Options. To add the Target Data Point, that is the target connection details where the data needs to be moved, click Add.

2. The Window displays the list of Data Points. Choose the required Data Point. You can choose either File, Amazon S3, Azure or GCS data point types.

If there is any Global project that the user has access to, then the window displays the Project drop-down, which lists all the global projects. You can choose the global project from the Project drop-down, and select the global MongoDB data point as required.

3. Once you choose the required target type, under Target Options you can view the target Data Point Property values. All the property values are set to default and the values can be changed based on your requirement.

Note: 

  • To change the Target Data Point, click Change
  • To change the default values, click on the respective field and change the value, and to revert, click the Reset icon. The Reset icon appears only when the property value is changed.

You can choose either File, Amazon S3, Azure, Connect Direct or GCS datpoints.

Property

Description

Default value

Other possible values

File NameSpecify name of the fileinstNm.dat
Part Size ( Displayed only for "Amazon S3" datapoint type)Specify the maximum size in bytes for each partition of the file5242880

Note:

  • To save the Job Flow, on the Actions menu, click Save. For more information, refer Saving Job Flow
  • To revert the changes before saving the Job Flow, on the Actions menu, click Revert. For more information, refer, Reverting changes in Job Flow.
  • To execute individual job in the Job Flow, on the Actions menu, click Run Job. For more information, refer Executing individual Job in Job Flow.
  • To execute the Job Flow, on the Actions menu, click Run. For more information, refer Executing Job Flow.
  • Once the Job is created and the changes are saved, then, close or unlock the Job Flow so that it is editable by other users. For more information, refer Closing Job Flow and Unlocking Job Flow