Files
doris/docs/en/sql-reference/sql-statements/Administration/INSTALL PLUGIN.md
caiconghui 1b3af783e6 [Plugin] Add properties grammar in InstallPluginStmt (#4173)
This PR is to support grammar like the following: INSTALL PLUGIN FROM [source] [PROPERTIES("KEY"="VALUE", ...)]
user can set md5sum="xxxxxxx", so we don't need to provide a md5 uri.
2020-07-29 15:02:31 +08:00

1.8 KiB

title, language
title language
INSTALL PLUGIN en

INSTALL PLUGIN

description

To install a plugin

Syntax

    INSTALL PLUGIN FROM [source]
    
    source supports 3 kinds:
    
    1. Point to a zip file with absolute path.
    2. Point to a plugin dir with absolute path.
    3. Point to a http/https download link of zip file.
    
    PROPERTIES supports setting some configurations of the plugin, such as setting the md5sum value of the zip file.

example

1. Intall a plugin with a local zip file:

    INSTALL PLUGIN FROM "/home/users/doris/auditdemo.zip";

2. Intall a plugin with a local dir:

    INSTALL PLUGIN FROM "/home/users/doris/auditdemo/";

3. Download and install a plugin:

    INSTALL PLUGIN FROM "http://mywebsite.com/plugin.zip";
    
4. Download and install a plugin, and set the md5sum value of the zip file: 
           
    INSTALL PLUGIN FROM "http://mywebsite.com/plugin.zip" PROPERTIES("md5sum" = "73877f6029216f4314d712086a146570"); 

keyword

INSTALL,PLUGIN