You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ro...@apache.org on 2021/08/27 03:46:51 UTC

[iotdb] 01/01: [IOTDB-1591] Execute CREATE FUNCTION on 1 node, this FUNCTION is invisible to other nodes

This is an automated email from the ASF dual-hosted git repository.

rong pushed a commit to branch iotdb-1591-0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit f70a3acdac9eec34b1a95143c022e028627d5b3d
Author: Steve Yurong Su <ro...@apache.org>
AuthorDate: Fri Aug 27 11:45:51 2021 +0800

    [IOTDB-1591] Execute CREATE FUNCTION on 1 node, this FUNCTION is invisible to other nodes
---
 docs/zh/UserGuide/UDF/UDF-User-Defined-Function.md | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/zh/UserGuide/UDF/UDF-User-Defined-Function.md b/docs/zh/UserGuide/UDF/UDF-User-Defined-Function.md
index d5aac0e..c03f2a1 100644
--- a/docs/zh/UserGuide/UDF/UDF-User-Defined-Function.md
+++ b/docs/zh/UserGuide/UDF/UDF-User-Defined-Function.md
@@ -48,7 +48,7 @@ IoTDB 支持两种类型的 UDF 函数,如下表所示。
 <dependency>
   <groupId>org.apache.iotdb</groupId>
   <artifactId>iotdb-server</artifactId>
-  <version>0.12.0-SNAPSHOT</version>
+  <version>0.12.2</version>
   <scope>provided</scope>
 </dependency>
 ```
@@ -388,8 +388,8 @@ UDTF的结束方法,您可以在此方法中进行一些资源释放等的操
 
 1. 实现一个完整的UDF类,假定这个类的全类名为`org.apache.iotdb.udf.UDTFExample`
 2. 将项目打成JAR包,如果您使用Maven管理项目,可以参考上述Maven项目示例的写法
-3. 将JAR包放置到目录 `iotdb-server-0.12.0-SNAPSHOT/ext/udf` (也可以是`iotdb-server-0.12.0-SNAPSHOT/ext/udf`的子目录)下。
-    
+3. 将JAR包放置到目录 `iotdb-server-0.12.2-all-bin/ext/udf` (也可以是`iotdb-server-0.12.2-all-bin/ext/udf`的子目录)下。**注意,在部署集群的时候,需要保证每一个节点的 UDF JAR 包路径下都存在相应的 JAR 包。**
+   
     > 您可以通过修改配置文件中的`udf_root_dir`来指定UDF加载Jar的根路径。
 4. 使用SQL语句注册该UDF,假定赋予该UDF的名字为`example`
 
@@ -585,7 +585,7 @@ SHOW FUNCTIONS
 A1: 假设UDF的名称为`example`,全类名为`org.apache.iotdb.udf.UDTFExample`,由`example.jar`引入
 
 1. 首先卸载已经注册的`example`函数,执行`DROP FUNCTION example`
-2. 删除 `iotdb-server-0.12.0-SNAPSHOT/ext/udf` 目录下的`example.jar`
+2. 删除 `iotdb-server-0.12.2-all-bin/ext/udf` 目录下的`example.jar`
 3. 修改`org.apache.iotdb.udf.UDTFExample`中的逻辑,重新打包,JAR包的名字可以仍然为`example.jar`
-4. 将新的JAR包上传至 `iotdb-server-0.12.0-SNAPSHOT/ext/udf` 目录下
+4. 将新的JAR包上传至 `iotdb-server-0.12.2-all-bin/ext/udf` 目录下
 5. 装载新的UDF,执行`CREATE FUNCTION example AS "org.apache.iotdb.udf.UDTFExample"`