Exporting a connection as a context - 7.1

Talend Real-time Big Data Platform Studio User Guide

author
Talend Documentation Team
EnrichVersion
7.1
EnrichProdName
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend Studio

Before you begin

A database connection or a file connection has been created as outlined in Connecting to a database and Connecting to a file.

About this task

Prerequisite(s): A database connection or a file connection has been created as outlined in Connecting to a database or in Connecting to a file respectively

To export a database or a file connection as a context, do the following:

Procedure

  1. In the DQ Repository tree view, expand Metadata.
  2. Double-click:
    Item To...
    a database connection open it in the connection editor, and then click Edit... in the Connection information panel to open the connection wizard.
    a file connection open the connection wizard.
  3. Optional: You can perform one of the following actions:
    • In the Database Connection wizard, do any modifications in the connection information, if necessary and click Next.

      Make sure that the database name, the schema name or the catalog name is defined in the wizard. This enables you to retrieve the correct database structure when you switch between different contexts. For further information about switching between contexts, see Switching between different contexts of the same connection.
    • In the file connection wizard, do any modifications in the connection information, if necessary, and click Next.
  4. Click Export as context.
    The Create/Reuse a context group wizard is displayed.
  5. Select to create a new context and save it in the repository, or to use a context group that is already centralized in the repository, and click Next.
  6. If you select to create a new context, set the context metadata and then click Next > Finish.
    The variables and values of the selected database or file connection are automatically defined in the wizard and the new context is named as Default.
  7. Click the [+] button at the top right corner of the wizard and modify the context name as required. Click OK.
  8. Click Finish to close the Create/Reuse a context group wizard.
    In the Database Connection wizard, all connection settings are set as context and are read-only.
    In the file connection wizard, all connection settings are set as context and are read-only.
    You can open the context group to edit it from the Contexts node in the DQ Repository tree view.
  9. Click Finish to close the wizard.
    You can always click Revert Context at the bottom of the connection wizard to switch the current database or file connection back to its initial state.
    A message is displayed prompting you to propagate the change in the connection type to all the Jobs and analyses that use the connection, if any.
  10. Click Yes to confirm the operation and close the message and the dialog box.

Results

The database or file connection is exported as a context and listed as a context item under the Contexts node in the DQ Repository tree view.