EmmyMiao87 commented on a change in pull request #1235: Support SSL authentication with Kafka in routine load job URL: https://github.com/apache/incubator-doris/pull/1235#discussion_r290571088
########## File path: docs/help/Contents/Administration/small_files.md ########## @@ -0,0 +1,103 @@ +# CREATE FILE +## description + + 该语句用于创建并上传一个文件到 Doris 集群。 + 该功能通常用于管理一些其他命令中需要使用到的文件,如证书、公钥私钥等等。 + + 该命令只用 amdin 权限用户可以执行。 + 某个文件都归属与某一个的 database。对 database 拥有访问权限的用户都可以使用该文件。 + + 单个文件大小限制为 1MB。 + 一个 Doris 集群最多上传 100 个文件。 + + 语法: + + CREATE FILE "file_name" [IN database] + [properties] + + 说明: + file_name: 自定义文件名。 + database: 文件归属于某一个 db,如果没有指定,则使用当前 session 的 db。 + properties 支持以下参数: + + url: 必须。指定一个文件的下载路径。当前仅支持无认证的 http 下载路径。命令之行成功后,文件将被保存在 doris 中,该 url 将不再需要。 + catalog: 必须。对文件的分类名,可以自定义。但在某些命令中,会查找指定 catalog 中的文件。比如例行导入中的,数据源为 kafka 时,会查找 catalog 名为 kafka 下的文件。 + md5: 可选。文件的 md5。如果指定,会在下载文件后进行校验。 + +## example + + 1. 创建文件 ca.pem ,分类为 kafka + + CREATE FILE "ca.pem" + PROPERTIES + ( + "url" = "https://test.bj.bcebos.com/kafka-key/ca.pem", Review comment: http or https? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
