Accessing OBS from a Client on a Node Outside the Cluster
Scenario
In the OBS decoupled storage and compute scenario, obtain a temporary AK/SK through an agency to access the OBS server. To access OBS from a client on a node outside the cluster, obtain an AK/SK through Guardian. Guardian is an MRS self-developed component that helps clients outside the cluster access OBS through temporary AKs/SKs.
This function is available in MRS 3.1.5 or later.
How Does Guardian Enable a Client on a Node Outside the Cluster to Access OBS?
- Install Guardian in the cluster.
- For a new cluster in creation, select Guardian.
Figure 1 Selecting Guardian
- For an existing cluster, add the Guardian component in the Components tab.
- On the cluster details page, choose Components and click Add Service.
- In the service list, select the services to be added and click Next.
Figure 2 Adding Guardian
- On the Topology Adjustment page, select the node where the service is to be deployed. (You are advised to deploy the Guardian service on the master node.)
- Click OK. After the service is added, you can view the added service on the Components page.
The services added on the console are automatically synchronized to Manager.
- For a new cluster in creation, select Guardian.
- Configure storage and compute decoupling for the cluster by referring to Configuring a Storage-Compute Decoupled Cluster (Agency) or Configuring Fine-Grained Permissions for MRS Multi-User Access to OBS.
- Install or update the client.
- For details about how to install the client on a node outside the cluster, see Installing a Client (MRS 3.x or Later).
- For details about how to update an existing client, see Updating a Client (Version 3.x or Later).
- After the installation is successful, you can access OBS.
Example:
If the client directory is /opt/client, run the source /opt/client/bigdata_env command. Use the actual client installation path.
Run the hdfs dfs -ls obs command.
If the information in the following figure is displayed, the installation is successful:
Figure 3 Accessing OBS
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