You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/12/27 11:24:52 UTC
[GitHub] [shardingsphere-elasticjob] qaqLjj opened a new issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
qaqLjj opened a new issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791
Must i configure a RDB?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791#issuecomment-751555670
Hi @qaqLjj
Are you interested in contributing? You may submit a PR to fix this issue.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791#issuecomment-751460938
Tracing module is optional. You could run your jobs without Tracing configuration.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] qaqLjj commented on issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
Posted by GitBox <gi...@apache.org>.
qaqLjj commented on issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791#issuecomment-751548548
I use the `elasticjob-lite-spring-boot-starter` ,and i true do not config the `elasticjob.tracing.type`,but i must exclude `spring-boot-starter-jdbc` and `h2` and then my application can run.
this is my pom:
`
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-lite-spring-boot-starter</artifactId>
<version>3.0.0-RC1</version>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</exclusion>
<exclusion>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>5.1.0</version>
</dependency>
`
and this is my application.yml
`
elasticjob:
regCenter:
# serverLists: 10.177.243.8:2181
serverLists: localhost:2181
# serverLists: 10.176.253.246:2181
namespace: operation-log-elastic-job
jobs:
simpleJob:
elasticJobClass: com.example.demo.OldLogDeleteJob
# cron: 0 0 3 1 * ? *
cron: 0/5 * * * * ?
shardingTotalCount: 1
`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] qaqLjj commented on issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
Posted by GitBox <gi...@apache.org>.
qaqLjj commented on issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791#issuecomment-751555445
> @qaqLjj I see the problem. Maybe we need to add `<optional>true</optional>` to dependency `spring-boot-starter-jdbc` in `elasticjob-lite/elasticjob-lite-spring/elasticjob-lite-spring-boot-starter/pom.xml`.
ok,thanks for your patience.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791#issuecomment-751546621
Tracing doesn't enable by default.
If you are using Spring Boot, tracing won't enable if missing `elasticjob.tracing.type=RDB`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] qaqLjj edited a comment on issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
Posted by GitBox <gi...@apache.org>.
qaqLjj edited a comment on issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791#issuecomment-751548548
I use the `elasticjob-lite-spring-boot-starter` ,and i true do not config the `elasticjob.tracing.type`,but i must exclude `spring-boot-starter-jdbc` and `h2` and then my application can run.
this is my pom:
` <dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-lite-spring-boot-starter</artifactId>
<version>3.0.0-RC1</version>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</exclusion>
<exclusion>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>5.1.0</version>
</dependency>`
and this is my application.yml
`elasticjob:
regCenter:
# serverLists: 10.177.243.8:2181
serverLists: localhost:2181
# serverLists: 10.176.253.246:2181
namespace: operation-log-elastic-job
jobs:
simpleJob:
elasticJobClass: com.example.demo.OldLogDeleteJob
# cron: 0 0 3 1 * ? *
cron: 0/5 * * * * ?
shardingTotalCount: 1`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] qaqLjj commented on issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
Posted by GitBox <gi...@apache.org>.
qaqLjj commented on issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791#issuecomment-751545448
> Tracing module is optional. You could run your jobs without Tracing configuration.
what can i do to close tracing feature.
I read the doc but not found.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] qaqLjj commented on issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
Posted by GitBox <gi...@apache.org>.
qaqLjj commented on issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791#issuecomment-751549938
if don't exclude,i will get this:
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] TeslaCN closed issue #1791: The spring-boot-starter-jdbc is not optional in ElasticJob Spring Boot Starter
Posted by GitBox <gi...@apache.org>.
TeslaCN closed issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] qaqLjj edited a comment on issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
Posted by GitBox <gi...@apache.org>.
qaqLjj edited a comment on issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791#issuecomment-751548548
I use the `elasticjob-lite-spring-boot-starter` ,and i true do not configure the `elasticjob.tracing.type`,but i must exclude `spring-boot-starter-jdbc` and `h2` and then my application can run.
this is my pom:
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-lite-spring-boot-starter</artifactId>
<version>3.0.0-RC1</version>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</exclusion>
<exclusion>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>5.1.0</version>
</dependency>
and this is my application.yml:
elasticjob:
regCenter:
serverLists: localhost:2181
namespace: operation-log-elastic-job
jobs:
simpleJob:
elasticJobClass: com.example.demo.OldLogDeleteJob
cron: 0/5 * * * * ?
shardingTotalCount: 1
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] qaqLjj edited a comment on issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
Posted by GitBox <gi...@apache.org>.
qaqLjj edited a comment on issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791#issuecomment-751548548
I use the `elasticjob-lite-spring-boot-starter` ,and i true do not config the `elasticjob.tracing.type`,but i must exclude `spring-boot-starter-jdbc` and `h2` and then my application can run.
this is my pom:
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-lite-spring-boot-starter</artifactId>
<version>3.0.0-RC1</version>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</exclusion>
<exclusion>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>5.1.0</version>
</dependency>
and this is my application.yml:
elasticjob:
regCenter:
serverLists: localhost:2181
namespace: operation-log-elastic-job
jobs:
simpleJob:
elasticJobClass: com.example.demo.OldLogDeleteJob
cron: 0/5 * * * * ?
shardingTotalCount: 1
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] qaqLjj edited a comment on issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
Posted by GitBox <gi...@apache.org>.
qaqLjj edited a comment on issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791#issuecomment-751548548
I use the `elasticjob-lite-spring-boot-starter` ,and i true do not config the `elasticjob.tracing.type`,but i must exclude `spring-boot-starter-jdbc` and `h2` and then my application can run.
this is my pom:
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-lite-spring-boot-starter</artifactId>
<version>3.0.0-RC1</version>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</exclusion>
<exclusion>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-test</artifactId>
<version>5.1.0</version>
</dependency>
and this is my application.yml:
elasticjob:
regCenter:
serverLists: localhost:2181
namespace: operation-log-elastic-job
jobs:
simpleJob:
elasticJobClass: com.example.demo.OldLogDeleteJob
cron: 0/5 * * * * ?
shardingTotalCount: 1`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] qaqLjj commented on issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
Posted by GitBox <gi...@apache.org>.
qaqLjj commented on issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791#issuecomment-751557126

----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #1791: my project is base on MongoDB,how can i get start with elasticjob?
Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #1791:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1791#issuecomment-751554028
@qaqLjj I see the problem. Maybe we need to add `<optional>true</optional>` to dependency `spring-boot-starter-jdbc` in `elasticjob-lite/elasticjob-lite-spring/elasticjob-lite-spring-boot-starter/pom.xml`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org