This is an automated email from the ASF dual-hosted git repository. xxyu pushed a commit to branch document in repository https://gitbox.apache.org/repos/asf/kylin.git
commit 7db74cb46397a3f5269ad6e036edea07518439b9 Author: yaqian.zhang <598593...@qq.com> AuthorDate: Wed Jul 1 14:34:27 2020 +0800 Add CuratorScheduler doc --- website/_docs31/install/kylin_cluster.cn.md | 15 +++++++++++++-- website/_docs31/install/kylin_cluster.md | 12 ++++++++++-- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/website/_docs31/install/kylin_cluster.cn.md b/website/_docs31/install/kylin_cluster.cn.md index 72dc4b8..dbcd993 100644 --- a/website/_docs31/install/kylin_cluster.cn.md +++ b/website/_docs31/install/kylin_cluster.cn.md @@ -27,13 +27,24 @@ Kylin 实例是无状态的服务,运行时的状态信息存储在 HBase meta 从 v2.0 开始, Kylin 支持多个任务引擎一起运行,相比于默认单任务引擎的配置,多引擎可以保证任务构建的高可用。 -使用多任务引擎,你可以在多个 Kylin 节点上配置它的角色为 `job` 或 `all`。为了避免它们之间产生竞争,需要启用分布式任务锁,请在 `kylin.properties` 里配置: +使用多任务引擎,你可以在多个 Kylin 节点上配置它的角色为 `job` 或 `all`。 + +为了避免它们之间产生竞争,需要在`kylin.properties`中配置任务调度器为分布式调度,有如下两种配置方式可以选择: + +#### 1 使用`DistributedScheduler`进行任务调度 ```properties kylin.job.scheduler.default=2 kylin.job.lock=org.apache.kylin.storage.hbase.util.ZookeeperJobLock ``` -并记得将所有任务和查询节点的地址注册到 `kylin.server.cluster-servers`。 + +#### 2 使用`CuratorScheculer`进行任务调度(从 v3.0.0-alpha 开始支持) + +```properties +kylin.job.scheduler.default=100 +``` + +配置完调度器,记得将所有任务和查询节点的地址注册到 `kylin.server.cluster-servers`。 diff --git a/website/_docs31/install/kylin_cluster.md b/website/_docs31/install/kylin_cluster.md index 4acef8a..998623a 100644 --- a/website/_docs31/install/kylin_cluster.md +++ b/website/_docs31/install/kylin_cluster.md @@ -28,14 +28,22 @@ The *job* mode means that the service is only used for job scheduling, not for q Since v2.0, Kylin supports multiple job engines running together, which is more extensible, available and reliable than the default job scheduler. -To enable the distributed job scheduler, you need to set or update the configs in the `kylin.properties`: +To enable the distributed job scheduler, you need to set or update the configs in the `kylin.properties`, there are two configuration options: + +#### 1 Use `distributedscheduler` ```properties kylin.job.scheduler.default=2 kylin.job.lock=org.apache.kylin.storage.hbase.util.ZookeeperJobLock ``` -Please add all job servers and query servers to the `kylin.server.cluster-servers`. +#### 2 Use `CuratorScheculer`(Since v3.0.0-alpha) + +```properties +kylin.job.scheduler.default=100 +``` + +Please add all job servers and query servers to the `kylin.server.cluster-servers` after finished configuring scheduler.