CREATE FILE
This command can be executed by users with amdin privileges only. A file belongs to a database. This file can be used by users who have access to database.
The size of a single file is limited to 1MB. A Doris cluster uploads up to 100 files.
CREATE FILE “File name” [IN database] [properties]
Explain: File_name: Custom file name. Database: The file belongs to a db, and if not specified, the DB of the current session is used. properties 支持以下参数:
CREATE FILE “ca.pem” PROPERTIES ( “url” =”https://test.bj.bcebos.com /kafka -key /ca.pem”, “catalog” = “kafka” );
- Create the file client. key, categorized as my_catalog
CREATE FILE “client.key” IN my database PROPERTIES ( “url” =” /kafka -key /client.key”, “catalog” = “my_catalog”, “md5”= “b5bb901bf1099205b39a46ac3557dd9” );