# tMarkLogicBulkLoad

Imports local files into a MarkLogic server database in bulk mode using the MarkLogic Content Pump (MLCP) tool.

This component is not shipped with your Talend Studio by default. You need to install it using the Feature Manager. For more information, see [Installing features using the Feature Manager](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/install-features-to-talend-studio).

## tMarkLogicBulkLoad Standard properties

These properties are used to configure tMarkLogicBulkLoad running in the Standard Job framework.

The Standard tMarkLogicBulkLoad component belongs to the Big Data and the Databases NoSQL families.

The component in this framework is available in all Talend products with Big Data and in Talend Data Fabric.

## Basic settings

| Properties | Description |
| --- | --- |
| Property Type | Either Built-In or Repository.<br><br><ul> <li> <p> <span>Built-In</span>: No property data                                    stored centrally.</p> </li> <li> <p> <span>Repository</span>: Select the                                    repository file in which the properties are stored. The database                                    connection fields that follow are completed automatically using                                    the data retrieved.</p> </li> </ul> |
| Use an existing connection | Select this check box and in the Component<br>List drop-down list, select the desired connection component to<br>reuse the connection details you already defined.<br><br>Information noteNote: When a Job contains the parent Job and the child Job, do the following if you<br>want to share an existing connection between the parent Job and the child Job (for example,<br>to share the connection created by the parent Job with the child Job).<br><br><ol> <li>In the parent level, register the database connection to be shared               in the <span>Basic settings</span> view of the               connection component which creates that very database connection. </li> <li>In the child level, use a dedicated connection component to read               that registered database connection. </li> </ol><br><br>For an example about how to share a database connection across Job levels,<br>see [Sharing a database connection](https://help.qlik.com/talend/r/en-US/7.3/studio-user-guide/sharing-database-connection). |
| Host | Enter the IP address or hostname of the MarkLogic server. |
| Port | Enter the listening port number of the MarkLogic server. |
| Database | Enter the name of the MarkLogic database you want to use. |
| Username and Password | Enter the user authentication data to access the MarkLogic database.<br><br>To enter the password, click the [...] button<br>next to the password field, enter the password in double quotes in the pop-up dialog box,<br>and click OK to save the settings. |
| Load Folder | Specify the directory to the local files to be imported into the<br>MarkLogic database. |
| DocId Prefixed As | Specify the prefix used to construct the URI of the imported files.<br>For more information about the URI construction, see https://docs.marklogic.com/guide/ingestion/content-pump#id\_14982. |

## Advanced settings

| Properties | Description |
| --- | --- |
| Additional MLCP Parameters | Specify additional options for the MLCP import command. For more<br>information about the import options, see https://docs.marklogic.com/guide/ingestion/content-pump#id\_63999. |
| Use external MLCP process | As the MarkLogic Content Pump (MLCP) program is required on the machine<br>where you run your Job that involves this component, you can do either<br>of the following:<br><br><ul> <li> <p>Keep this check box clear to use a built-in MLCP library when                                    running this component to load data. In this case, your Job is                                    memory demanding.</p> </li> <li> <p>If you need to use your own MLCP, that is to say, an MLCP external to                              <span>Talend Studio</span>, select this check box. In this case, your Job itself is not memory                           demanding but your MLCP process is.</p> </li> </ul><br><br>For further information about MLCP, see the related Marklogic<br>documentation: [Loading Content Using Marklogic<br>Content Pump](https://docs.marklogic.com/guide/ingestion/content-pump). |
| tStatCatcher Statistics | Select this check box to gather the Job processing metadata at the Job<br>level as well as at each component level. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | ERROR\_MESSAGE: the error message generated by the<br>component when an error occurs. This is an After variable and it returns a string. This<br>variable functions only if the Die on error checkbox is<br>cleared, if the component has this checkbox.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component can be used together with the tMarkLogicInput component to check if the files are<br>imported as expected. |
| Dynamic settings | Click the [+] button to add a row in the table<br>and fill the Code field with a context<br>variable to choose your database connection dynamically from multiple<br>connections planned in your Job. This feature is useful when you need to<br>access database tables having the same data structure but in different<br>databases, especially when you are working in an environment where you<br>cannot change your Job settings, for example, when your Job has to be<br>deployed and executed independent of Talend Studio.<br><br>The Dynamic settings table is<br>available only when the Use an existing<br>connection check box is selected in the Basic settings view. Once a dynamic parameter is<br>defined, the Component List box in the<br>Basic settings view becomes unusable.<br><br>For examples on using dynamic parameters, see [Reading data from databases through<br>context-based dynamic connections](https://help.qlik.com/talend/r/en-US/8.0/components/defining-context-groups/reading-data-from-databases-through-context-based-dynamic-connections) and [Reading data from different MySQL databases<br>using dynamically loaded connection parameters](https://help.qlik.com/talend/r/en-US/8.0/components/context/reading-data-from-different-mysql-databases-using-dynamically-loaded-connection-parameters). For more information on<br>Dynamic settings and context variables, see<br>[Dynamic schema](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/dynamic-schema) and [Creating a context group and define context<br>variables in it](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/creating-context-group-and-define-context-variables-in-it). |
| Limitation | The MarkLogic Content Pump (MLCP) tool needs to be installed on the<br>machine where you run the Job that involves this component. |