ไธญ

File Management

When the third-party jar needs to be used in the scheduling process or the user needs to customize the script, the related operations can be completed on this page. The file types that can be created include: txt, log, sh, conf, py, java etc. And you can edit, rename, download and delete files.

file-manage

Note:

  • When you manage files as admin, remember to set up tenant for admin first.

Basic Operations

Create File

The file format supports the following types: txt, log, sh, conf, cfg, py, java, sql, xml, hql, properties.

create-file

Upload File

Click the "Upload File" button to upload, drag the file to the upload area, the file name will be automatically completed with the uploaded file name.

upload-file

Re-upload file

Click the "Re-upload File" button in the file list to re-upload the file, drag and drop the file to the upload area, and the file name will be automatically completed with the uploaded file name.

reuplod_file

View File

For viewable file types, click the file name to view the file details.

file_detail

Download File

Click the "Download" button in the file list to download the file or click the "Download" button in the upper right corner of the file details to download the file.

Rename File

rename-file

Delete File

File list -> Click the "Delete" button to delete the specified file.

Note: File name or source name of your local file can not contain specific characters like . or / when you trying to upload, create or rename file in resource center.

Example

This sample mainly uses a simple shell script to demonstrate how to use Content Center files in a workflow definition. The same is true for tasks such as MR and Spark that require jar packages.

Create a shell file

Create a shell file, print hello world.

create-shell

Create the workflow execution shell

In the workflow definition module of project Manage, create a new workflow using a shell task.

use-shell

View the results

You can view the log results of the node running in the workflow instance. As shown below:

log-shell