edit-icon download-icon

Redis data source config

Last Updated: Apr 03, 2018

Redis is a document‑based NoSQL database that provides persistent memory database services. Based on its highly reliable master/slave hot backup architecture and seamlessly scalable cluster architecture, this service can meet the needs of businesses that require high read/write performance and flexible capacity configuration. The Redis data source provides the ability to read data from and write data to Redis, and supports configuring the synchronization task in the script mode.

Procedure

  1. Log on to the DataWorks console as a developer, and click Enter Project, as shown in the following figure.

    EnterProject

  2. Click Data Integration from the upper menu and navigate to the Data Sources page.

    DataSources

  3. Click New Source, and select Redis as the data source type.

  4. Complete the configuration items for the Redis data source.

    17

    Data sources are categorized into Alibaba Cloud databases and user‑created databases with public IPs.

    • Alibaba Cloud databases: These databases generally use classic networks. The connectivity is established between the classic networks within the same region, but may not between those in different regions.

    • User‑created databases with public IPs: These databases generally use public networks, which may incur some cost.

    Note: You have not granted permissions of Data Integration system default role. Go to RAM to grant role permissions by using the primary account.

    Alibaba Cloud database

    90

    • Type: The selected data source type.

    • Name: A combination of letters, numbers, and underscores (). It must begin with a letter or an underscore (), and the length must not exceed 60 characters.

    • Description: A brief description of the data source, which must not exceed 80 characters.

    • area: The region selected when you purchase Redis.

    • examples of Redis ID: This can be found in the Redis console.

    • redis access password: The password for accessing Redis Server. If it does not exist, you can leave it blank.

    public IP

    13

    • Type: The selected data source type.

    • Name: A combination of letters, numbers, and underscores. It must begin with a letter or underscore, and has a length of not more than 60 characters.

    • Description: A brief description of the data source, which must not exceed 80 characters.

    • Server address: The address takes the format of host:port.

    • Add visit Address: Add an access address in the format of host:port.

    • redis access password: The username and password of the database.

  5. Click Test Connectivity.

  6. When the connectivity test is passed, click Complete.

What to do next

Now you have learned how to configure the Redis data source. The article explains how to configure the Redis Writer plug‑in later. For more information, see Configure Redis Writer.

Thank you! We've received your feedback.