MRS Configuration
Configuring MRS Host Information in DLI Datasource Connection
- Create a datasource connection on the DLI management console. For details, see Data Lake Insight User Guide.
- Add the /etc/hosts information of MRS cluster nodes to the host file of the DLI queue.
For details, see Modifying the Host Information in the Data Lake Insight User Guide.
Completing Configurations for Enabling Kerberos Authentication
- Create a cluster with Kerberos authentication enabled by referring to section "Creating a Security Cluster and Logging In to MRS Manager" in Using Clusters with Kerberos Authentication Enabled. Add a user and grant permissions to the user by referring to section "Creating Roles and Users".
- Use the user created in 1 for login authentication. For details, see Using an HBase Client. A human-machine user must change the password upon the first login.
- Log in to Manager and choose System. In the navigation pane on the left, choose Permission > User, locate the row where the new user locates, click More, and select Download Authentication Credential. Save the downloaded package and decompress it to obtain the keytab and krb5.conf files.
Creating an MRS HBase Table
Before creating an MRS HBase table to be associated with the DLI table, ensure that the HBase table exists. The following provides example code to describe how to create an MRS HBase table:
- Remotely log in to the ECS and use the HBase Shell command to view table information. In this command, hbtest indicates the name of the table to be queried.
describe 'hbtest'
- (Optional) If the HBase table does not exist, run the following command to create one:
create 'hbtest', 'info', 'detail'
In this command, hbtest indicates the table name, and other parameters indicate the column family names.
- Configure the connection information. TableName corresponds to the name of the HBase table.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot