请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

azkaban 执行job

01-04-2020 07:33:36 PDT nytaxijob1 INFO - Starting job nytaxijob1 at 1585751616731
01-04-2020 07:33:36 PDT nytaxijob1 INFO - azkaban.webserver.url property was not set
01-04-2020 07:33:36 PDT nytaxijob1 INFO - job JVM args: -Dazkaban.flowid=nytaxijob1 -Dazkaban.execid=8 -Dazkaban.jobid=nytaxijob1
01-04-2020 07:33:36 PDT nytaxijob1 INFO - Building command job executor.
01-04-2020 07:33:36 PDT nytaxijob1 ERROR - Failed to build job executor for job nytaxijob1Job type 'command ’ is unrecognized. Could not construct job[{azkaban.job.id: nytaxijob1, azkaban.job.attempt: 0, azkaban.job.attachment.file: /root/app/azkaban-solo-server-0.1.0-SNAPSHOT/executions/8/nytaxijob1/_job.8.nytaxijob1.attach, working.dir: /root/app/azkaban-solo-server-0.1.0-SNAPSHOT/executions/8/nytaxijob1, jvm.args: -Dazkaban.flowid=nytaxijob1 -Dazkaban.execid=8 -Dazkaban.jobid=nytaxijob1, type: command , azkaban.job.outnodes: , azkaban.job.metadata.file: _job.8.nytaxijob1.meta, command: sh ./nytaxijob1.sh, azkaban.memory.check: true, azkaban.job.innodes: , parent = {azkaban.flow.start.milliseconds: 282, azkaban.flow.start.year: 2020, azkaban.flow.start.timezone: America/Los_Angeles, azkaban.flow.projectid: 8, azkaban.flow.start.second: 31, azkaban.flow.submituser: azkaban, azkaban.flow.projectversion: 1, azkaban.flow.start.minute: 33, azkaban.flow.execid: 8, azkaban.flow.projectname: nytaxi0301job1, azkaban.flow.start.month: 04, azkaban.flow.start.hour: 07, azkaban.flow.uuid: e9d7d06c-4f23-46c0-aaed-962ecaa3d177, azkaban.flow.flowid: nytaxijob1, azkaban.flow.start.day: 01, azkaban.flow.projectlastchangedby: azkaban, azkaban.flow.projectlastchangeddate: 1585751606546, azkaban.flow.start.timestamp: 2020-04-01T07:33:31.282-07:00, }}] of type[command ].
01-04-2020 07:33:36 PDT nytaxijob1 ERROR - Failed to build job type
azkaban.jobtype.JobTypeManagerException: Failed to build job executor for job nytaxijob1
at azkaban.jobtype.JobTypeManager.buildJobExecutor(JobTypeManager.java:363)
at azkaban.execapp.JobRunner.prepareJob(JobRunner.java:682)
at azkaban.execapp.JobRunner.doRun(JobRunner.java:585)
at azkaban.execapp.JobRunner.run(JobRunner.java:552)
at java.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:511)atjava.util.concurrent.FutureTask.run(FutureTask.java:266)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)atjava.util.concurrent.ThreadPoolExecutorRunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutorRunnableAdapter.call(Executors.java:511)atjava.util.concurrent.FutureTask.run(FutureTask.java:266)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)atjava.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: azkaban.jobExecutor.utils.JobExecutionException: Job type 'command ’ is unrecognized. Could not construct job[{azkaban.job.id: nytaxijob1, azkaban.job.attempt: 0, azkaban.job.attachment.file: /root/app/azkaban-solo-server-0.1.0-SNAPSHOT/executions/8/nytaxijob1/_job.8.nytaxijob1.attach, working.dir: /root/app/azkaban-solo-server-0.1.0-SNAPSHOT/executions/8/nytaxijob1, jvm.args: -Dazkaban.flowid=nytaxijob1 -Dazkaban.execid=8 -Dazkaban.jobid=nytaxijob1, type: command , azkaban.job.outnodes: , azkaban.job.metadata.file: _job.8.nytaxijob1.meta, command: sh ./nytaxijob1.sh, azkaban.memory.check: true, azkaban.job.innodes: , parent = {azkaban.flow.start.milliseconds: 282, azkaban.flow.start.year: 2020, azkaban.flow.start.timezone: America/Los_Angeles, azkaban.flow.projectid: 8, azkaban.flow.start.second: 31, azkaban.flow.submituser: azkaban, azkaban.flow.projectversion: 1, azkaban.flow.start.minute: 33, azkaban.flow.execid: 8, azkaban.flow.projectname: nytaxi0301job1, azkaban.flow.start.month: 04, azkaban.flow.start.hour: 07, azkaban.flow.uuid: e9d7d06c-4f23-46c0-aaed-962ecaa3d177, azkaban.flow.flowid: nytaxijob1, azkaban.flow.start.day: 01, azkaban.flow.projectlastchangedby: azkaban, azkaban.flow.projectlastchangeddate: 1585751606546, azkaban.flow.start.timestamp: 2020-04-01T07:33:31.282-07:00, }}] of type[command ].
at azkaban.jobtype.JobTypeManager.buildJobExecutor(JobTypeManager.java:324)
… 8 more
01-04-2020 07:33:36 PDT nytaxijob1 ERROR - Job run failed preparing the job.
01-04-2020 07:33:36 PDT nytaxijob1 INFO - Finishing job nytaxijob1 at 1585751616733 with status FAILED

正在回答 回答被采纳积分+3

2回答

提问者 爬行的蜗牛2019 2020-04-02 12:24:40

复制到sublime 后发现, command 的末尾有个空格, 就是这个问题导致, 谢谢PK哥

0 回复 有任何疑惑可以回复我~
  • 一定要严格按照yml的格式编写才认
    回复 有任何疑惑可以回复我~ 2020-04-02 12:29:48
Michael_PK 2020-04-01 23:35:30

你的配置咋写的?

报错信息:Failed to build job executor for job nytaxijob1Job type 'command ’ is unrecognized

应该是你配置写错了,要注意空格等就不能乱敲的,必须严格控制空格个数的,可以先了解下YML格式语法的定义

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信