You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by do...@apache.org on 2022/01/25 09:38:42 UTC

[incubator-inlong-website] branch master updated: [INLONG-2301] add standalone deployment guide (#265)

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

dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 458771b  [INLONG-2301] add standalone deployment guide (#265)
458771b is described below

commit 458771b60826992a2239d27866992bbdeaa75861
Author: crancchen <97...@users.noreply.github.com>
AuthorDate: Tue Jan 25 17:38:39 2022 +0800

    [INLONG-2301] add standalone deployment guide (#265)
---
 docs/deployment/standalone.md                      | 91 ++++++++++++++++++++-
 .../current/deployment/standalone.md               | 95 +++++++++++++++++++++-
 2 files changed, 184 insertions(+), 2 deletions(-)

diff --git a/docs/deployment/standalone.md b/docs/deployment/standalone.md
index 14981e6..40b811a 100644
--- a/docs/deployment/standalone.md
+++ b/docs/deployment/standalone.md
@@ -2,6 +2,95 @@
 title: Standalone
 sidebar_position: 1
 ---
+## Environment Requirements
 
-Will be added soon
+- ZooKeeper 3.5+
+- MySQL 5.7+
+- Flink 1.13.5
+- Apache Pulsar 2.6+ (Optional)
+- Docker or Nginx 
 
+##  Configure 
+
+Add relevant global configuration parameters to the conf file in conf/standalone.conf:
+
+```ini
+# Selection of message queue source: tubemq or pulsar
+source_type=tubemq
+# Selection of sort sink: hive or clickhouse
+sink_type=hive
+# MySQL service, IP, port, user and password
+spring_datasource_hostname=MYSQL_HOSTNAME
+spring_datasource_port=MYSQL_PORT
+spring_datasource_username=MYSQL_USERNAME
+spring_datasource_password=MYSQL_PASSWORD
+###############################################################################
+# zookeeper address
+zkServerAddr=127.0.0.1:2181
+###############################################################################
+# tubemq (Optional)
+tubemqMaster_hostName=YOU_LOCAL_IP
+tubemqBroker_hostName=YOU_LOCAL_IP
+TUBE_MANAGER_IP=YOU_LOCAL_IP
+metaDataPath=/stage/meta_data
+primaryPath=/stage/msg_data
+###############################################################################
+# pulsar (Optional)
+###############################################################################
+# Service address of pulsar (Required)
+pulsar_adminUrl=http://pulsar_ip:web_port
+# Pulsar broker address(Required)
+pulsar_serviceUrl=pulsar://pulsar_ip:api_port
+# Default tenant of Pulsar
+pulsar_defaultTenant=public
+###############################################################################
+# local_ip(Required)
+###############################################################################
+local_ip=YOU_LOCAL_IP
+###############################################################################
+```
+
+ Initialization inlong global configuration parameters of each component:
+
+```shell
+bin/init-config.sh 
+```
+
+## Start
+
+```shell
+bin/inlong-daemon.sh start standalone
+```
+
+## Stop
+
+```shell
+bin/inlong-daemon.sh stop standalone
+```
+
+## Check
+
+1.After the startup script is completed, JPS checks whether there are the following processes:
+
+```
+1393 QuorumPeerMain
+24529 Application
+23058 MasterStartup
+23812 InLongWebApplication
+2148 Jps
+24631 CliFrontend
+24908 AgentMain
+23548 TubeMQManager
+23149 BrokerStartup
+```
+
+2.If you use tubemq as the message middleware and visit the web page provided by it, you can get the information shown in the figure:
+![1643034789289](https://user-images.githubusercontent.com/97139576/150918086-d7c35eab-bc9f-4e39-aa8a-7e018b88bf56.png)
+
+
+
+3.Whether the inlong web page can be accessed normally:
+![1643034702665](https://user-images.githubusercontent.com/97139576/150918194-587f5e50-3c1c-47aa-893b-edf2df683a2f.png)
+
+
+If there is no problem, the inlong standalone deployment is successful.
diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/deployment/standalone.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/deployment/standalone.md
index c897ce7..7829e14 100644
--- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/deployment/standalone.md
+++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/deployment/standalone.md
@@ -3,5 +3,98 @@ title: 单机部署
 sidebar_position: 1
 ---
 
-Will be added soon
+## 环境要求
+
+- ZooKeeper 3.5+
+- MySQL 5.7+
+- Flink 1.13.5
+- Apache Pulsar 2.6+ (可选)
+- Docker or Nginx
+
+##  配置
+
+在conf/standalone.conf文件中添加相关全局配置参数:
+
+```ini
+# Selection of message queue source: tubemq or pulsar
+source_type=tubemq
+# Selection of sort sink: hive or clickhouse
+sink_type=hive
+# MySQL service, IP, port, user and password
+spring_datasource_hostname=MYSQL_HOSTNAME
+spring_datasource_port=MYSQL_PORT
+spring_datasource_username=MYSQL_USERNAME
+spring_datasource_password=MYSQL_PASSWORD
+###############################################################################
+# zookeeper address
+zkServerAddr=127.0.0.1:2181
+###############################################################################
+# tubemq (Optional)
+tubemqMaster_hostName=YOU_LOCAL_IP
+tubemqBroker_hostName=YOU_LOCAL_IP
+TUBE_MANAGER_IP=YOU_LOCAL_IP
+metaDataPath=/stage/meta_data
+primaryPath=/stage/msg_data
+###############################################################################
+# pulsar (Optional)
+###############################################################################
+# Service address of pulsar (Required)
+pulsar_adminUrl=http://pulsar_ip:web_port
+# Pulsar broker address(Required)
+pulsar_serviceUrl=pulsar://pulsar_ip:api_port
+# Default tenant of Pulsar
+pulsar_defaultTenant=public
+###############################################################################
+# local_ip(Required)
+###############################################################################
+local_ip=YOU_LOCAL_IP
+###############################################################################
+```
+
+一键初始化inlong各组件全局配置参数
+
+```shell
+bin/init-config.sh 
+```
+
+## 启动
+
+```shell
+bin/inlong-daemon.sh start standalone
+```
+
+## 停止
+
+```shell
+bin/inlong-daemon.sh stop standalone
+```
+
+## 检查
+
+1.启动脚本完成后,jps查看是否都有如下进程:
+
+```
+1393 QuorumPeerMain
+24529 Application
+23058 MasterStartup
+23812 InLongWebApplication
+2148 Jps
+24631 CliFrontend
+24908 AgentMain
+23548 TubeMQManager
+23149 BrokerStartup
+```
+
+2.如果用tubemq作为消息中间件,访问其提供的web页面,可以得到如图所示信息 :
+
+![1643034789289](https://user-images.githubusercontent.com/97139576/150918086-d7c35eab-bc9f-4e39-aa8a-7e018b88bf56.png)
+3.是否能正常访问inlong web页面:
+
+![1643034702665](https://user-images.githubusercontent.com/97139576/150918194-587f5e50-3c1c-47aa-893b-edf2df683a2f.png)
+
+都没问题的话,至此inlong单机部署成功。
+
+
+
+