[typo](doc)Update install-faq.md (#15029)

* [typo](doc) 1.2 set java home variable
This commit is contained in:
gnehil
2022-12-13 15:38:25 +08:00
committed by GitHub
parent 284a3351f4
commit 98ddb86ea2
6 changed files with 43 additions and 7 deletions

View File

@ -302,3 +302,11 @@ Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/doris/udf/
Caused by: java.lang.ClassNotFoundException: org.apache.doris.udf.JniUtil
```
You need to download the Java UDF function dependency package of `apache-doris-java-udf-jar-with-dependencies-1.2.0` from the official website, put it in the lib directory under the BE installation directory, and then restart BE
### Q16. After upgrading to version 1.2, BE startup shows Failed to initialize JNI
<version since="1.2"></version>
If the following `Failed to initialize JNI` error occurs when starting BE after upgrading
```
Failed to initialize JNI: Failed to find the library libjvm.so.
```
You need to set the `JAVA_HOME` environment variable, or add `export JAVA_HOME=your_java_home_path` in the first line of the `start_be.sh` startup script, and then restart the BE node.

View File

@ -199,9 +199,14 @@ storage_root_path=/path/your/data_dir
>1. The default directory is in the storage directory of the BE installation directory.
>2. The storage directory for BE configuration must be created first
3. Install Java UDF functions
3. Set JAVA_HOME environment variable
<version since="1.2.0">Install Java UDF functions</version>
<version since="1.2.0"></version>
Java UDF are supported since version 1.2, so BE are dependent on the Java environment. It is necessary to set the `JAVA_HOME` environment variable before starting. You can also add `export JAVA_HOME=your_java_home_path` to the first line of the `start_be.sh` startup script to set the variable.
4. Install Java UDF functions
<version since="1.2.0">Install Java UDF functions</version>
Because Java UDF functions are supported from version 1.2, you need to download the JAR package of Java UDF functions from the official website and put them in the lib directory of BE, otherwise it may fail to start.
### Start BE

View File

@ -222,6 +222,11 @@ See the section on `lower_case_table_names` variables in [Variables](../../advan
If the Be componet is installed in hadoop cluster , need to change configuration `webserver_port=8040` to avoid port used.
* Set JAVA_HOME environment variable
<version since="1.2.0"></version>
Java UDF are supported since version 1.2, so BE are dependent on the Java environment. It is necessary to set the `JAVA_HOME` environment variable before starting. You can also add `export JAVA_HOME=your_java_home_path` to the first line of the `start_be.sh` startup script to set the variable.
* Install Java UDF functions
<version since="1.2.0">Install Java UDF functions</version>

View File

@ -296,9 +296,17 @@ ldd /path/to/libmyodbc8w.so |grep libssl.so
### Q15. 升级到 1.2 版本,BE NoClassDefFoundError 问题启动失败
<version since="1.2"> Java UDF 依赖错误 </version>
如果升级支持启动 be 出现下面这种 Java `NoClassDefFoundError` 错误
如果升级启动 be 出现下面这种 Java `NoClassDefFoundError` 错误
```
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/doris/udf/IniUtil
Caused by: java.lang.ClassNotFoundException: org.apache.doris.udf.JniUtil
```
需要重官网下载 `apache-doris-java-udf-jar-with-dependencies-1.2.0` 的 Java UDF 函数依赖包,放到 BE 安装目录下的 lib 目录,然后重新启动 BE
### Q16. 升级到 1.2 版本,BE 启动显示 Failed to initialize JNI 问题
<version since="1.2"> Java 环境问题 </version>
如果升级后启动 BE 出现下面这种 `Failed to initialize JNI` 错误
```
Failed to initialize JNI: Failed to find the library libjvm.so.
```
需要在系统设置 `JAVA_HOME` 环境变量,或者在 `start_be.sh` 启动脚本第一行添加 `export JAVA_HOME=your_java_home_path`,然后重新启动 BE 节点。

View File

@ -203,9 +203,14 @@ storage_root_path=/path/your/data_dir
>1. 默认目录在 BE安装目录的 storage 目录下。
>2. BE 配置的存储目录必须先创建好
3. 安装 Java UDF 函数
3. 配置 JAVA_HOME 环境变量
<version since="1.2.0">安装Java UDF 函数</version>
<version since="1.2.0"></version>
由于从 1.2 版本开始支持 Java UDF 函数,BE 依赖于 Java 环境。所以要预先配置 `JAVA_HOME` 环境变量,也可以在 `start_be.sh` 启动脚本第一行添加 `export JAVA_HOME=your_java_home_path` 来添加环境变量。
4. 安装 Java UDF 函数
<version since="1.2.0">安装Java UDF 函数</version>
因为从1.2 版本开始支持Java UDF 函数,需要从官网下载 Java UDF 函数的 JAR 包放到 BE 的 lib 目录下,否则可能会启动失败。

View File

@ -222,10 +222,15 @@ doris默认为表名大小写敏感,如有表名大小写不敏感的需求需
如果 be 部署在 hadoop 集群中,注意调整 be.conf 中的 `webserver_port = 8040` ,以免造成端口冲突
* 配置 JAVA_HOME 环境变量
<version since="1.2.0"></version>
由于从 1.2 版本开始支持 Java UDF 函数,BE 依赖于 Java 环境。所以要预先配置 `JAVA_HOME` 环境变量,也可以在 `start_be.sh` 启动脚本第一行添加 `export JAVA_HOME=your_java_home_path` 来添加环境变量。
* 安装 Java UDF 函数
<version since="1.2.0">安装Java UDF 函数</version>
因为从1.2 版本开始支持Java UDF 函数,需要从官网下载 Java UDF 函数的 JAR 包放到 BE 的 lib 目录下,否则可能会启动失败。
<version since="1.2.0">安装Java UDF 函数</version>
因为从 1.2 版本开始支持 Java UDF 函数,需要从官网下载 Java UDF 函数的 JAR 包放到 BE 的 lib 目录下,否则可能会启动失败。
* 在 FE 中添加所有 BE 节点