Upload data files using ossutil
Updated at:
ossutil is a command-line tool for managing data in Object Storage Service (OSS). Use ossutil to upload data files to an OSS bucket.
Prerequisites
Ensure that you have prepared the CSV data files for import. For more information about the data file requirements, see Preparations.
Procedure
- Download and install ossutil on your client. For more information, see Install ossutil.
- Run the following command to create a bucket.
./ossutil64 mb oss://<bucket>Note<bucket>: The name of the bucket. Use a descriptive name for easy identification.- For more information about creating buckets, see mb (create bucket).
Example:./ossutil64 mb oss://examplebucket - Run the following commands to upload the point and edge files.
- Upload the point file
./ossutil cp air-routes-latest-nodes.csv oss://<bucket>/air-routes/<nodes.csv>Note<bucket>: The name of the bucket that you created in Step 2.<nodes.csv>: Specifies the name of the point file.
Example:./ossutil cp air-routes-latest-nodes.csv oss://examplebucket/air-routes/air-routes-latest-nodes.csv - Upload the edge file
./ossutil cp air-routes-latest-nodes.csv oss://<bucket>/air-routes/<edges.csv>Note<bucket>: The name of the bucket that you created in Step 2.<edges.csv>: The name of the edge file.
Example:./ossutil cp air-routes-latest-nodes.csv oss://examplebucket/air-routes/air-routes-latest-edges.csv
- Upload the point file
Is this page helpful?