!293 [I1WMH4] Update installation doc to remove hardcoded version number

* Update installation documentation to remove hardcoded version string
This commit is contained in:
sandygao 2020-09-25 17:05:41 +08:00 committed by Raghunandan
parent 9c8eddccff
commit fb408e7d21
7 changed files with 23 additions and 6 deletions

View File

@ -36,7 +36,7 @@ ARG PORT=8080
# Install OpenLooKeng Engine Executable
COPY --chown=openlkadmin:openlkadmin hetu-server-${OPENLK_VERSION} /usr/lib/hetu
# Install CLI
COPY --chown=openlkadmin:openlkadmin hetu-cli-${OPENLK_VERSION}-executable.jar /usr/bin/openlk
COPY --chown=openlkadmin:openlkadmin openlk /usr/bin/openlk
EXPOSE $PORT
USER openlkadmin:openlkadmin

16
docker/bin/openlk Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
java -jar /usr/lib/hetu/hetu-cli-*-executable.jar "$@"

View File

@ -73,7 +73,8 @@ tar -C ${WORK_DIR} -xzf ${WORK_DIR}/hetu-server-${HETU_VERSION}.tar.gz
rm ${WORK_DIR}/hetu-server-${HETU_VERSION}.tar.gz
cp -R bin default ${WORK_DIR}/hetu-server-${HETU_VERSION}
cp ../presto-cli/target/hetu-cli-${HETU_VERSION}-executable.jar ${WORK_DIR}
cp ../presto-cli/target/hetu-cli-${HETU_VERSION}-executable.jar ${WORK_DIR}/hetu-server-${HETU_VERSION}
cp bin/openlk ${WORK_DIR}
docker build ${WORK_DIR} -f Dockerfile --build-arg "OPENLK_VERSION=${HETU_VERSION}" --build-arg "BASE_IMAGE=${BASE_IMAGE}" -t "openlookeng:${TAG}"

View File

@ -3,7 +3,7 @@
The openLooKeng CLI provides a terminal-based interactive shell for running queries. The CLI is a runnable JAR file, so it can be run as `java -jar ./hetu-cli-*.jar`.
Download `hetu-cli-1.0.0-executable.jar`, and run:
Download CLI jar file corresponding to the server's version, e.g. `hetu-cli-1.0.0-executable.jar`, and run:
``` shell
java -jar ./hetu-cli-1.0.0-executable.jar --server localhost:8080 --catalog hive --schema default

View File

@ -186,7 +186,7 @@ If you can't access the download URL from the machine where you want to install
1. Download `https://download.openlookeng.io/auto-install/openlookeng.tar.gz` and extract its content to `/opt`.
1. Create folder `/opt/openlookeng/resource` and save openLooKeng binary files under it: `https://download.openlookeng.io/010/hetu-server-010.tar.gz` and `https://download.openlookeng.io/010/hetu-cli-010-executable.jar`.
1. Create folder `/opt/openlookeng/resource` and save openLooKeng binary files under it: `https://download.openlookeng.io/<version>/hetu-server-<version>.tar.gz` and `https://download.openlookeng.io/<version>/hetu-cli-<version>-executable.jar`, where `<version>` refers to the version being installed, e.g. `1.0.0`.
1. Also save third party dependencies under `/opt/openlookeng/resource`. That is, download all files from either `https://download.openlookeng.io/auto-install/third-resource/x86/` or `https://download.openlookeng.io/auto-install/third-resource/aarch64/`, depending on the machine's architecture. This should include 1 `OpenJDK` file and 2 `sshpass` files.

View File

@ -3,7 +3,7 @@
openLooKeng CLI提供了一个基于终端的交互shell用于运行查询。CLI是一个可执行的JAR文件可以通过`java -jar ./hetu-cli-*.jar`执行。
下载:`hetu-cli-1.0.0-executable.jar`,运行:
下载于服务器对应版本的 CLI 文件,例如`hetu-cli-1.0.0-executable.jar`,运行:
``` shell
java -jar ./hetu-cli-1.0.0-executable.jar --server localhost:8080 --catalog hive --schema default

View File

@ -176,7 +176,7 @@ bash /opt/openlookeng/bin/uninstall.sh --all
1. 下载 `https://download.openlookeng.io/auto-install/openlookeng.tar.gz` 并将其内容解压到 `/opt` 目录。
1. 创建目录 `/opt/openlookeng/resource` 并保存 openLooKeng 执行文件 `https://download.openlookeng.io/010/hetu-server-010.tar.gz` 和 `https://download.openlookeng.io/010/hetu-cli-010-executable.jar`
1. 创建目录 `/opt/openlookeng/resource` 并保存 openLooKeng 执行文件 `https://download.openlookeng.io/<version>/hetu-server-<version>.tar.gz` 和 `https://download.openlookeng.io/<version>/hetu-cli-<version>-executable.jar`,其中`<version>`对应于正在安装的版本,例如`1.0.0`
1. 同时将第三方依赖保存在 `/opt/openlookeng/resource` 目录下。根据本机的架构,下载 `https://download.openlookeng.io/auto-install/third-resource/x86/``https://download.openlookeng.io/auto-install/third-resource/aarch64/` 下面的全部文件。这应该包括一个 `OpenJDK` 文件和两个 `sshpass` 文件。