Giter Club home page Giter Club logo

shardingsphere-elasticjob-cloud's Issues

Question about StatisticManager#getOnlineDate

We hard code '2016-12-16' as the online date, it's not nice to users.

private Date getOnlineDate() {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
        try {
            return formatter.parse("2016-12-16");
        } catch (final ParseException ex) {
            return null;
        }
    }

Change request path from 'disable' to 'enable'

The current implementation of CloudAppRestfulApi#enable :

 /**
     * Enable cloud job.
     *
     * @param jobName job name
     * @throws JSONException parse json exception
     */
    @DELETE
    @Path("/{jobName}/disable")
    public void enable(@PathParam("jobName") final String jobName) throws JSONException {
        Optional<CloudJobConfiguration> configOptional = configService.load(jobName);
        if (configOptional.isPresent()) {
            facadeService.enableJob(jobName);
            producerManager.reschedule(jobName);
        }
    }

It should use @post and @path("/{jobName}/enable")'
And the same issue with CloudJobRestfulApi#enable method.

获取mesos状态失败

使用mesos1.6.0, 最新版本的elastic-job-cloud(ce7d31b)
跑例子程序时, 一直出现这个错误:

[ERROR]` 2018-07-17 02:47:28,016 --task-launch-processor RUNNING-- [io.elasticjob.cloud.scheduler.mesos.TaskLaunchScheduledService] Launch task error 
java.lang.IllegalStateException: null
	at com.google.common.base.Preconditions.checkState(Preconditions.java:158) ~[guava-18.0.jar:na]
	at io.elasticjob.cloud.scheduler.mesos.MesosStateService.fetch(MesosStateService.java:138) ~[elastic-job-cloud-scheduler-3.0.0.M1-SNAPSHOT.jar:na]
	at io.elasticjob.cloud.scheduler.mesos.MesosStateService.executors(MesosStateService.java:115) ~[elastic-job-cloud-scheduler-3.0.0.M1-SNAPSHOT.jar:na]
	at io.elasticjob.cloud.scheduler.mesos.MesosStateService.executors(MesosStateService.java:134) ~[elastic-job-cloud-scheduler-3.0.0.M1-SNAPSHOT.jar:na]
	at io.elasticjob.cloud.scheduler.mesos.FacadeService.loadExecutorInfo(FacadeService.java:337) ~[elastic-job-cloud-scheduler-3.0.0.M1-SNAPSHOT.jar:na]
	at io.elasticjob.cloud.scheduler.mesos.AppConstraintEvaluator.loadAppRunningState(AppConstraintEvaluator.java:77) ~[elastic-job-cloud-scheduler-3.0.0.M1-SNAPSHOT.jar:na]
	at io.elasticjob.cloud.scheduler.mesos.TaskLaunchScheduledService.runOneIteration(TaskLaunchScheduledService.java:109) ~[elastic-job-cloud-scheduler-3.0.0.M1-SNAPSHOT.jar:na]
	at com.google.common.util.concurrent.AbstractScheduledService$1$1.run(AbstractScheduledService.java:174) [guava-18.0.jar:na]
	at com.google.common.util.concurrent.Callables$3.run(Callables.java:95) [guava-18.0.jar:na]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_71]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_71]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_71]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_71]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_71]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_71]
	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_71]

elstic jbo cloud 虚拟机中执行job

虚拟机环境中部署elastic job cloud,script类型的作业能跑起来,但是javaSimple和spring类型的作业无法跑起来,一直卡住。执行状态也一直是running,无法complete。 apache mesos 版本1.41,虚拟机ubuntu16
mesos:启动方式
./mesos-master.sh --ip=127.0.0.1 --work_dir=/home/mrzhang/work1 --zk=zk://127.0.0.1:2181/mesos --quorum=1
./mesos-agent.sh --master=127.0.0.1:5050 --work_dir=/home/mrzhang/work2

执行截图:
image

image

image

请问是mesos版本或其他方面的问题吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.