tencent cloud

Feedback

Resource Management

Last updated: 2024-11-01 16:35:04

    Feature Overview

    The resource management feature allows you to upload local .jar, .zip, .csv, .sh, .py, .kjb, and .ktr files to the platform's COS bucket, supporting subsequent script development, computational task development, function development, and other features.

    Create New Resource

    Upload local resource files to WeData for management, providing the ability to create self-definition functions for the data development process.
    1. log in to WeData console.
    2. Click Project List in the left menu to find the target project for resource management.
    3. After selecting a project, click to enter the Data Development module.
    4. Click Resource Management in the left menu.
    5. In the resource management directory, click
    
    to expand the action menu and select Create New Resource.
    
    6. In the pop-up window, upload local resource files, enter the resource name, select the resource directory folder, and storage path.
    
    7. After configuration is complete, click Confirm to maintain the script resource in the resource management feature. Detailed information can be viewed on the corresponding resource page.
    

    Resource Management Operation

    1. Click the
    
    icon to execute new folder and new resource item operations.
    2. Click the
    
    icon to execute batch deletion.
    3. Click the
    
    icon to open, rename, delete, or download resources.
    4. Double-click a created resource to view its detailed information, including resource name, resource type, storage path, file size, creator, creation time, and provide re-upload resource operations feature.
    5. Batch Deletion: After clicking Batch Deletion, users can select the resource packages to delete and then click Confirm to delete the resources.
    Note
    Referenced resources cannot be deleted.
    
    6. Create Resource: After clicking Create Resource, the user needs to configure the file name and file address. After selecting the file to upload, click Confirm to complete the resource upload.

    Reference resources

    After selecting the file resources in the directory, click Reference resources. If the active interface is a computing task in Orchestration Space or a development script in Development Space, code can be automatically generated at the cursor position in the following format:@resource_reference{"resource_path/resource_name"}.
    
    
    Note:
    Reference resources currently only take effect for code type tasks and scripts. Please open the code type tasks and scripts on the right side before referencing.

    Code Reference

    Task Type
    Code Format
    Development Space: SQL Orchestration Space: HiveSQL, JDBC SQL, SparkSQL, DLCSQL, Impala, TCHouse-P, Trino, TChouse-X 
    --@resource_reference("resource_management_path/resource_name")
    Development Space: Shell, Python, PySpark
    Orchestration Space: Shell, Python, PySpark
    ##@resource_reference("resource_management_path//resource_name")

    Example

    Reference resources in a Shell script in the Development Space
    Support referencing local resources into Shell scripts to execute commands.
    For example: The user references resources at the top of the Shell editor, resulting in the final file format:
    
    Reference resources in a Python Task in the Orchestration Space
    Support referencing local resources into Python tasks to execute commands, such as jar files.
    For example: The user references resources at the top of the Python Editor, resulting in the final file format:
    
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support