MRS data connections are used to manage external source connections used by components in a cluster. For example, if Hive metadata uses an external relational database, a data connection can be used to associate the external relational database with the Hive component.
When Hive metadata is switched between different clusters, MRS synchronizes only the permissions in the metadata database of the Hive component. The permission model on MRS is maintained on MRS Manager. Therefore, when Hive metadata is switched between clusters, the permissions of users or user groups cannot be automatically synchronized to MRS Manager of another cluster.
grant SELECT, INSERT on mysql.* to '${db_user}'@'%' with grant option; grant all privileges on ${db_name}.* to '${db_user}'@'%' with grant option; grant reload on *.* to '${db_user}'@'%' with grant option; flush privileges;
Parameter |
Description |
---|---|
Type |
Type of an external source connection.
|
Name |
Name of a data connection. |
RDS Instance |
RDS database instance. This instance must be created in RDS before being referenced here, and the database must have been created. For details, see Performing Operations Before Data Connection. Click View RDS Instance to view the created instances. NOTE:
|
Database |
Name of the database to be connected to. |
Username |
Username for logging in to the database to be connected. |
Password |
Password for logging in to the database to be connected. |
If the selected data connection is an RDS MySQL database, ensure that the database user is a root user. If the user is not root, perform operations by referring to Performing Operations Before Data Connection.
If the selected data connection has been associated with a cluster, the configuration changes will be synchronized to the cluster.
If the selected data connection has been associated with a cluster, the deletion does not affect the cluster.
Parameter |
Description |
---|---|
Metadata |
Whether to use external data sources to store metadata.
Clusters that support the Hive or Ranger component support this function. |
Name |
This parameter is available only when Data connections is selected for Metadata. It indicates the name of the component for which an external data source can be configured.
|
Data Connection Type |
This parameter is available only when Data connections is selected for Metadata. It indicates the type of an external data source.
|
Data Connection Instance |
This parameter is valid only when Data Connection Type is set to RDS PostgreSQL database or RDS MySQL database. This parameter indicates the name of the connection between the MRS cluster and the RDS database. This instance must be created before being referenced here. You can click Create Data Connection to create a data connection. For details, see Performing Operations Before Data Connection and Creating a Data Connection. |