How Do I Access an MRS Cluster from a Node Outside the Cluster?
Creating a Linux ECS Outside the Cluster to Access the MRS Cluster
- Create an ECS outside the cluster. For details, see Purchasing an ECS.
Set AZ, VPC, and Security Group of the ECS to the same values as those of the cluster to be accessed.
- On the VPC management console, apply for an EIP and bind it to the ECS.
For details, see Assigning an EIP and Binding It to an ECS.
- Configure security group rules for the cluster.
- On the Dashboard tab page, click Add Security Group Rule. In the Add Security Group Rule dialog box that is displayed, click Manage Security Group Rule.
- Click the Inbound Rules tab, and click Add Rule. In the Add Inbound Rule dialog box, configure the IP address of the ECS and enable all ports.
- After the security group rule is added, you can download and install the client on the ECS..
- Use the client.
Log in to the client node as the client installation user and run the following command to switch to the client directory:
cd /opt/hadoopclient
Run the following command to load environment variables:
source bigdata_env
If Kerberos authentication is enabled for the cluster, run the following command to authenticate the user. If Kerberos authentication is disabled for the current cluster, authentication is not required.
kinit MRS cluster user
Example:
kinit admin
Run the client command of a component.
Example:
Run the following command to view files in the HDFS root directory:
hdfs dfs -ls /
Found 15 items drwxrwx--x - hive hive 0 2021-10-26 16:30 /apps drwxr-xr-x - hdfs hadoop 0 2021-10-18 20:54 /datasets drwxr-xr-x - hdfs hadoop 0 2021-10-18 20:54 /datastore drwxrwx---+ - flink hadoop 0 2021-10-18 21:10 /flink drwxr-x--- - flume hadoop 0 2021-10-18 20:54 /flume drwxrwx--x - hbase hadoop 0 2021-10-30 07:31 /hbase ...
- On the Dashboard tab page, click Add Security Group Rule. In the Add Security Group Rule dialog box that is displayed, click Manage Security Group Rule.
Creating a Windows ECS Outside the Cluster to Access MRS Manager
Create a Windows ECS on the ECS console to access MRS Manager. For details, see Accessing MRS Manager Using a Windows ECS.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.