Upload custom file resources to Lindorm so your compute engine jobs can access them. This page covers the console upload method. To upload files using the command line, see Connect to and use LindormDFS using the HDFS Shell.
Prerequisites
Before you begin, ensure that you have:
Activated the Lindorm compute engine. For details, see Activate the service
When to upload file resources
Lindorm compute engine jobs require custom file resources to define job logic. Common use cases include:
Python or JAR jobs: define job logic in a Python or JAR file
Spark SQL jobs: define user-defined functions (UDFs) in a JAR file
Upload a file resource
Log on to the Lindorm console.
In the upper-left corner of the page, select the region where your instance is deployed.
On the Instances page, click the instance ID or click View Instance Details in the Actions column.
In the left navigation pane, click Compute Engine.
Click the Job Management tab.
(Optional) To organize your resources in subdirectories, create a folder before uploading:
In the directory tree, right-click the root directory and select Create Folder.
In the Create Subdirectory dialog box, enter a name for the subdirectory.
Click OK.
Select the destination folder, click Upload Resources, and upload your file in the Upload Resource dialog box.
NoteThe Upload Resources dialog box closes and a success message is displayed. The upload takes 5 to 10 minutes depending on file size.
If you upload a file with the same name as an existing file, the existing file is overwritten.
Click the
icon next to the file name to copy its storage path. Use this path when configuring job parameters.
You cannot delete file resources directly from the console. To delete file resources, use the HDFS Shell. For details, see Connect to and use LindormDFS using the HDFS Shell.