yujun-8848 commented on issue #1976:
URL:
https://github.com/apache/shardingsphere-elasticjob/issues/1976#issuecomment-915816252
i have started the elasticjob ,but it doesn't create talbes,if it work well
,database job will create two talbes to trace.
i don't know how to do it?
```
elasticjob:
tracing:
type: RDB
regCenter:
serverLists: 192.168.102.62:2181
namespace: elasticjob-demo
baseSleepTimeMilliseconds: 2000
maxSleepTimeMilliseconds: 4000
maxRetries: 3
jobs:
firstJob:
elasticJobClass: com.job.demo.job.FirstJob
cron: 0/6 * * * * ?
shardingTotalCount: 5
enableEventTrace: true
secondJob:
elasticJobClass: com.job.demo.job.SecondJob
cron: 0/5 * * * * ?
shardingTotalCount: 1
enableEventTrace: true
spring:
datasource:
driverClassName: com.mysql.cj.jdbc.Driver
url:
jdbc:mysql://192.168.102.62:3306/job?useUnicode=true&characterEncoding=UTF-8&useSSL=false
username: root
password: xxx
```
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.xiaominfo.swagger</groupId>
<artifactId>service-user</artifactId>
<version>1.0</version>
</dependency>
<!--mysql-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-lite-spring-boot-starter</artifactId>
<version>${elasticjob-lite.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
<version>2.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
<version>2.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-error-handler-dingtalk</artifactId>
<version>${elasticjob-lite.version}</version>
</dependency>
</dependencies>

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]