数据湖探索 DLI-Redis源表:示例

时间:2024-07-01 21:07:17

示例

从Redis中读取数据。

create table redisSource(
  car_id STRING,
  car_owner STRING,
  car_brand STRING,
  car_speed INT
) with (
 'connector.type' = 'redis',
  'connector.host' = 'xx.xx.xx.xx',
  'connector.port' = '6379',
  'connector.password' = 'xx',
  'connector.table-name' = 'car_info'
);
support.huaweicloud.com/sqlreference-dli/dli_08_0305.html