部署ElasticJob-Lite-UI
- 下载链接,博主下载目前最新版的
ElasticJob-Lite-UI(和ElasticJob‐Lite版本一致)。

使用Xftp上传压缩包到虚拟机上(该项目需要JDK环境,这个很简单,自行百度)。

解压:
tar -zxvf apache-shardingsphere-elasticjob-3.0.0-lite-ui-bin.tar.gz

查看配置文件:
[root@localhost ~]# cd /usr/local/
[root@localhost local]# cd apache-shardingsphere-elasticjob-3.0.0-lite-ui-bin
[root@localhost apache-shardingsphere-elasticjob-3.0.0-lite-ui-bin]# cd conf
[root@localhost conf]# ll
总用量 8
-rw-r--r--. 1 501 games 1106 7月 10 21:59 application.properties
-rw-r--r--. 1 501 games 1322 7月 10 21:59 logback.xml
[root@localhost conf]# vim application.properties

启动服务:
[root@localhost conf]# cd ../bin
[root@localhost bin]# ll
总用量 12
-rwxr-xr-x. 1 501 games 1439 7月 10 21:59 start.bat
-rwxr-xr-x. 1 501 games 1782 7月 10 21:59 start.sh
-rwxr-xr-x. 1 501 games 1442 7月 10 21:59 stop.sh
[root@localhost bin]# ./start.sh
Starting the ShardingSphere-ElasticJob-UI ...
Please check the STDOUT file: /usr/local/apache-shardingsphere-elasticjob-3.0.0-lite-ui-bin/logs/stdout.log
访问UI管理界面,登陆账号(这里登陆root账号),默认只提供了root超级管理员账号和guest账号,root账号有所有操作权限,guest账号只有浏览权限。

注册中心
添加注册中心。

不了解ZooKeeper的Digest可以看下面这篇博客:
- ZooKeeper :重要概念 & 客户端命令介绍
连接注册中心。

查看作业,可以对它们进行操作。

查看执行作业的节点。


事件追踪数据源
这里使用Mysql 8作为事件追踪数据源,首先将Mysql 8的连接jar包(博主的本地maven仓库中)上传到项目的ext-lib目录下。

重新启动项目。
[root@localhost bin]# ./stop.sh
Stopping the ShardingSphere-ElasticJob-UI ....OK!
PID: 1349
[root@localhost bin]# ./start.sh
Starting the ShardingSphere-ElasticJob-UI ...
Please check the STDOUT file: /usr/local/apache-shardingsphere-elasticjob-3.0.0-lite-ui-bin/logs/stdout.log
添加事件追踪数据源。

jdbc:mysql://localhost:3306/trace?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
连接事件追踪数据源。

查看Job trace。

查看History status。

部署ElasticJob-Lite-UI就介绍到这里,如果博主有说错的地方或者大家有不同的见解,欢迎大家评论补充。










