Skip to content

Commit

Permalink
Update Hadoop SDK doc: add notice about runtime OS (#154)
Browse files Browse the repository at this point in the history
* Update Hadoop SDK doc: add notice about runtime OS

* Fix
  • Loading branch information
xiaogaozi committed Jan 29, 2021
1 parent 2fe9c7a commit 040464a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/hadoop_java_sdk_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ JuiceFS Java SDK 同时兼容 Hadoop 2.x 以及 Hadoop 3.x 环境,以及 Hadoo

## 编译

你需要先安装 JDK 8+ 版本以及 Maven 工具,然后运行以下命令:
你需要先安装 Go 1.13+、JDK 8+ 以及 Maven 工具,然后运行以下命令:

```shell
$ cd sdk/java
Expand All @@ -19,7 +19,9 @@ $ make

## 部署 JuiceFS Java SDK

当编译完成后,你可以在 `sdk/java/target` 目录下找到编译好的 JAR 文件,例如 `juicefs-hadoop-ce-0.9-beta.jar`。注意带有 `original-` 前缀的 JAR 文件是不包含第三方依赖的,推荐使用包含第三方依赖的 JAR 文件。
当编译完成后,你可以在 `sdk/java/target` 目录下找到编译好的 JAR 文件,例如 `juicefs-hadoop-0.10.0.jar`。注意带有 `original-` 前缀的 JAR 文件是不包含第三方依赖的,推荐使用包含第三方依赖的 JAR 文件。

**注意:编译后的 JAR 文件只能部署在相同的系统环境中,例如在 Linux 中编译则只能用于 Linux 环境。**

然后将对应的 JAR 文件放到 Hadoop 生态各组件的 classpath 里。常见路径如下,建议将 JAR 文件放置在一个地方,然后其他地方均通过符号链接的方式放置。

Expand Down

0 comments on commit 040464a

Please sign in to comment.