【问题标题】:SCDF stream (time) NOT picking composed-task-runner in localSCDF 流(时间)不在本地选择组合任务运行器
【发布时间】:2021-01-16 15:59:52
【问题描述】:

在 SCDF (2.6.3) 中尝试创建流来启动复合任务,但没有选择,我错过了什么?

组合任务创建名称为 comp-task:AA && BB 我可以手动运行这个组合任务,它执行了AA和BB并正常退出。

当我试图通过流运行时,它根本没有运行,甚至在 cron 中定义。 我的任务定义: stream create ctr-stream-1 --definition "time --cron='0 0/5 0 ? * *' --task.launch.request.task-name=composed-task-launcher --task.launch.request.args=--graph=comp-task,--increment-instance-enabled=true | task-launcher-dataflow"

我的环境详情:

{
  "versionInfo": {
    "implementation": {
      "name": "spring-cloud-dataflow-server",
      "version": "2.6.3"
    },
    "core": {
      "name": "Spring Cloud Data Flow Core",
      "version": "2.6.3"
    },
    "dashboard": {
      "name": "Spring Cloud Dataflow UI",
      "version": "2.5.1"
    },
    "shell": {
      "name": "Spring Cloud Data Flow Shell",
      "version": "2.6.3",
      "url": "https://repo1.maven.org/maven2/org/springframework/cloud/spring-cloud-dataflow-shell/2.6.3/spring-cloud-dataflow-shell-2.6.3.jar"
    }
  },
  "featureInfo": {
    "streamsEnabled": true,
    "tasksEnabled": true,
    "schedulesEnabled": true,
    "grafanaEnabled": false,
    "wavefrontEnabled": false
  },
  "securityInfo": {
    "isAuthenticationEnabled": false,
    "isAuthenticated": false,
    "username": null,
    "roles": []
  },
  "runtimeEnvironment": {
    "appDeployer": {
      "platformSpecificInfo": {},
      "deployerImplementationVersion": "2.5.2",
      "deployerName": "Spring Cloud Skipper Server",
      "deployerSpiVersion": "2.5.2",
      "javaVersion": "11.0.6",
      "platformApiVersion": "",
      "platformClientVersion": "",
      "platformHostVersion": "",
      "platformType": "Skipper Managed",
      "springBootVersion": "2.2.8.RELEASE",
      "springVersion": "5.2.7.RELEASE"
    },
    "taskLaunchers": [
      {
        "platformSpecificInfo": {},
        "deployerImplementationVersion": "2.4.1",
        "deployerName": "LocalTaskLauncher",
        "deployerSpiVersion": "2.4.1",
        "javaVersion": "11.0.6",
        "platformApiVersion": "Windows 10 10.0",
        "platformClientVersion": "10.0",
        "platformHostVersion": "10.0",
        "platformType": "Local",
        "springBootVersion": "2.2.8.RELEASE",
        "springVersion": "5.2.7.RELEASE"
      }
    ]
  },
  "grafanaInfo": {
    "url": "",
    "token": "",
    "refreshInterval": 15
  },
  "monitoringDashboardInfo": {
    "url": "",
    "token": "",
    "refreshInterval": 15,
    "source": "default-scdf-source"
  }
}

【问题讨论】:

    标签: spring-cloud-dataflow spring-batch-stream


    【解决方案1】:

    当您想要创建/启动组合任务时,不一定需要创建流。这个page 将引导您了解如何创建和启动组合任务作为任务 应用程序。

    如果您要调度组合任务应用程序,您还需要记住本地部署不支持调度任务应用程序。

    【讨论】:

    • 非常感谢您的回复,只是为了澄清一下,我在这里使用流(时间应用程序)只是为了安排我的组合任务,因为本地部署不支持任务计划,请您建议,在本地部署,还有什么其他方法可以安排复合任务?
    • 我明白了。在这种情况下,您的方法是合理的,但您可以在这里找到一些相关内容:github.com/spring-cloud/spring-cloud-scheduler-quartz/pull/1。此外,您用于time 源的属性无效,您需要检查支持的属性。
    猜你喜欢
    • 2023-03-09
    • 2017-02-20
    • 2020-09-13
    • 1970-01-01
    • 2015-12-20
    • 1970-01-01
    • 2011-02-17
    • 2016-02-03
    • 1970-01-01
    相关资源
    最近更新 更多