更新时间:2024-03-06 GMT+08:00
分享

CloudTable连接

介绍

通过CloudTable连接,可以对CloudTable服务抽取、加载数据。

连接样例

本示例为连接样例消息体。在实际使用中,AK(accessKey)和SK(securityKey)建议在配置文件或者环境变量中密文存放,使用时解密,确保安全。

{
  "links": [
    {
      "link-config-values": {
        "configs": [
          {
            "inputs": [
              {
                "name": "linkConfig.hbaseType",
                "value": "CloudTable"
              },
              {
                "name": "linkConfig.zookeeperQuorum",
                "value": "cloudtable-pass-zk2-bae54VGN.cloudtable.com:2181,cloudtable-pass-zk1-Fu828so2.cloudtable.com:2181"
              },
              {
                "name": "linkConfig.iamAuth",
                "value": "true"
              },
              {
                "name": "linkConfig.cloudtableUser",
                "value": "zane"
              },
              {
                "name": "linkConfig.accessKey",
                "value": "<YOUR AK>"
              },
              {
                "name": "linkConfig.securityKey",
                "value": "<YOUR SK>"
              },
              {
                "name": "linkConfig.runMode",
                "value": "EMBEDDED"
              }
            ],
            "name": "linkConfig"
          }
        ]
      },
      "name": "cloudtablelink",
      "connector-name": "hbase-connector"
    }
  ]
}

连接参数

参数

是否必选

类型

说明

linkConfig.hbaseType

枚举

HBase类型:

  • CloudTable:表示连接CloudTable服务。
  • MRS:表示连接MRS。
  • FusionInsight HD:表示连接FusionInsight HD。
  • Apache Hadoop:表示连接开源Apache Hadoop。

linkConfig.zookeeperQuorum

String

连接“CloudTable”时必选,表示CloudTable的ZooKeeper链接地址。

linkConfig.iamAuth

Boolean

当选择IAM统一身份认证时,需要输入用户名、AK和SK。

linkConfig.runMode

枚举

选择HBase连接的运行模式:

  • EMBEDDED:连接实例与CDM运行在一起,该模式性能较好。
  • STANDALONE:连接实例运行在独立进程。如果CDM需要对接多个Hadoop数据源(MRS、Hadoop或CloudTable),并且既有KERBEROS认证模式又有SIMPLE认证模式,只能使用STANDALONE模式。

linkConfig.cloudtableUser

String

登录CloudTable集群的用户名。

linkConfig.accessKey

String

登录CloudTable集群的访问标识。建议在配置文件或者环境变量中密文存放,使用时解密,确保安全。

linkConfig.securityKey

String

登录CloudTable集群的密钥。建议在配置文件或者环境变量中密文存放,使用时解密,确保安全。

分享:

    相关文档

    相关产品