Accessing SageMaker HyperPod cluster nodes
You can directly access the nodes of a SageMaker HyperPod cluster in service using the
Amazon CLI commands for Amazon Systems Manager (SSM). Run aws ssm start-session with
the host name of the node in format of
sagemaker-cluster:[cluster-id]_[instance-group-name]-[instance-id].
You can retrieve the cluster ID, the instance ID, and the instance group name from
the SageMaker HyperPod console or by running describe-cluster and
list-cluster-nodes from the Amazon CLI
commands for SageMaker HyperPod. For example, if your cluster ID is
aa11bbbbb222, the cluster node name is
controller-group, and the cluster node ID is
i-111222333444555aa, the SSM start-session command
should be the following.
Note
If you haven't set up Amazon Systems Manager, follow the instructions provided at Setting up Amazon Systems Manager and Run As for cluster user access control.
$aws ssm start-session \ --target sagemaker-cluster:aa11bbbbb222_controller-group-i-111222333444555aa\ --regionus-west-2Starting session with SessionId: s0011223344aabbccddroot@ip-111-22-333-444:/usr/bin#