All Products
Search
Document Center

Elastic High Performance Computing:Import OSS job files into a cluster

Last Updated:Apr 01, 2026

Store your job scripts and data files in an Object Storage Service (OSS) bucket so that cluster nodes can pull them at job submission time. This topic describes how to upload job files to an OSS bucket and download them onto a cluster node.

Prerequisites

Before you begin, make sure that you have:

Upload job files to an OSS bucket

  1. Activate OSS in the same region as your E-HPC cluster.

  2. Create a bucket to store your job files.

  3. Upload your job files to the bucket. In the examples below, the script file is test.py and the job data file is test.data.

Import job files from OSS to a cluster

Log on to your cluster, then use one of the following methods to download the job files to the /ehpcdata directory.

Method 1: Download using the OSS endpoint URL

Use this method when the cluster node has network access to the OSS bucket — either through the VPC internal endpoint or over the internet.

  1. Get the endpoint URL for your bucket:

  2. Download the job files to /ehpcdata. If wget is available:

    cd /ehpcdata
    wget http://<bucket>.<internal-endpoint>/test.py
    wget http://<bucket>.<internal-endpoint>/test.data

    If wget is not available, use curl:

    cd /ehpcdata
    curl -O http://<bucket>.<internal-endpoint>/test.py
    curl -O http://<bucket>.<internal-endpoint>/test.data

Method 2: Download using a signed URL

Use this method when the bucket is private and you want to grant time-limited access to specific objects without configuring an AccessKey on the cluster node.

Note

Signed URLs expire after the validity period you set. Set the shortest validity period that covers your download window to limit exposure.

  1. Generate a signed URL for each job file. See Authorize third-party users to download objects for instructions. A signed URL follows this pattern:

    http://<bucket>.<region>.aliyuncs.com/<object>?OSSAccessKeyId=<id>&Expires=<unix-time>&Signature=<signature>
  2. Download the job files using the signed URLs. If wget is available:

    cd /ehpcdata
    wget "http://<bucket>.<region>.aliyuncs.com/<object>?OSSAccessKeyId=<user access_key_id>&Expires=<unix time>&Signature=<signature_string>/test.py"
    wget "http://<bucket>.<region>.aliyuncs.com/<object>?OSSAccessKeyId=<user access_key_id>&Expires=<unix time>&Signature=<signature_string>/test.data"

    If wget is not available, use curl:

    cd /ehpcdata
    curl -O "http://<bucket>.<region>.aliyuncs.com/<object>?OSSAccessKeyId=<user access_key_id>&Expires=<unix time>&Signature=<signature_string>/test.py"
    curl -O "http://<bucket>.<region>.aliyuncs.com/<object>?OSSAccessKeyId=<user access_key_id>&Expires=<unix time>&Signature=<signature_string>/test.data"

    Replace each placeholder with the values from the signed URL generated in step 1.