Set AZ, VPC, and Security Group of the ECS to the same values as those of the cluster to be accessed.
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 ...