morningman commented on code in PR #14978: URL: https://github.com/apache/doris/pull/14978#discussion_r1053297424
########## docs/en/docs/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-CATALOG.md: ########## @@ -37,53 +37,58 @@ This statement is used to create an external catalog Syntax: ```sql -CREATE CATALOG [IF NOT EXISTS] catalog_name - [PROPERTIES ("key"="value", ...)]; +CREATE CATALOG [IF NOT EXISTS] catalog_name [WITH RESOURCE resource_name]; ``` -`PROPERTIES` is the connection information for the catalog. The "type" attribute must be specified, currently supports: +`RESOURCE` can be created from [CREATE RESOURCE](../../../sql-reference/Data-Definition-Statements/Create/CREATE-RESOURCE.md), current supports: * hms:Hive MetaStore * es:Elasticsearch -* jdbc: Database access standard interface (JDBC), currently only support `jdbc:mysql` +* jdbc:数据库访问的标准接口(JDBC), 当前只支持`jdbc:mysql` ### Example 1. Create catalog hive - ```sql - CREATE CATALOG hive PROPERTIES ( - "type"="hms", - 'hive.metastore.uris' = 'thrift://172.21.0.1:7004', - 'dfs.nameservices'='HDFS8000871', - 'dfs.ha.namenodes.HDFS8000871'='nn1,nn2', - 'dfs.namenode.rpc-address.HDFS8000871.nn1'='172.21.0.2:4007', - 'dfs.namenode.rpc-address.HDFS8000871.nn2'='172.21.0.3:4007', - 'dfs.client.failover.proxy.provider.HDFS8000871'='org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider' + ```sql + CREATE RESOURCE hms_resource PROPERTIES ( Review Comment: You need to reserve the old way to create catalog -- 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. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org