-
-
fishyahoo 初学数据Lv2
发表于2021-5-11 16:34
悬赏10
已解决
楼主
1. 新建了一个ETL过程,设置了两个参数,用于传给shell脚本用,测试运行没问题。2. 再新建一个过程流,里面只有这一个ETL过程,直接运行不成功,提示没参数,就在ETL过程流也加了一层参数传给ETL过程,这回执行也成功。
3 .新建了一个调度,在调度里放了ETL过程流。执行调度能成功弹出参数框,但是输入参数后执行报错。
执行过程见视频链接:
https://v.youku.com/v_show/id_XNTE1MjQ3MjM5Mg==.html
3 .新建了一个调度,在调度里放了ETL过程流。执行调度能成功弹出参数框,但是输入参数后执行报错。
执行过程见视频链接:
https://v.youku.com/v_show/id_XNTE1MjQ3MjM5Mg==.html
4个回答
zengxq 发表于 2021-5-11 17:14
您能将报错信息复制粘贴上来吗?视频里面太模糊了,看不清楚。
2021-05-11 17:15:28 计划任务[报文]开始执行
2021-05-11 17:15:28 正在执行ETL调度...
2021-05-11 17:15:28 开始执行ETL过程流:ETL过程流_报文
2021-05-11 17:15:28 开始执行任务:开始
2021-05-11 17:15:28 结束执行任务:开始
2021-05-11 17:15:28 开始执行任务:参数赋值1
2021-05-11 17:15:28 结束执行任务:参数赋值1
2021-05-11 17:15:28 开始执行任务:报文生成
2021-05-11 17:15:28 开始执行ETL过程:[报文生成]
2021-05-11 17:15:28 开始执行组件:参数赋值1
2021-05-11 17:15:28 结束执行组件:参数赋值1
2021-05-11 17:15:28 开始执行组件:报文
2021-05-11 17:15:28 溶解前脚本:
/root/llbb/llbb.sh <#=pdate#> <#=ptype#>
2021-05-11 17:15:28 溶解前脚本:
/root/llbb/llbb.sh
Traceback (most recent call last):
File "/root/llbb/main.py", line 278, in
bbq = sys.argv[1]
IndexError: list index out of range
2021-05-11 17:15:28 执行shell组件脚本异常
2021-05-11 17:15:28 com.esen.exception.RuntimeException4I18N: 执行脚本出现异常:
[#!/bin/bash
/root/llbb/llbb.sh ]
at com.esen.util.ExceptionHandler.throwRuntimeException(ExceptionHandler.java:247)
at com.esen.util.cmd.ShellUtils.processCommand(ShellUtils.java:189)
at com.esen.util.cmd.ShellUtils.executeShell(ShellUtils.java:103)
at com.esen.edf.domain.job.widget.EtlWidgetShell.process(EtlWidgetShell.java:53)
at com.esen.edf.domain.job.EtlJob.processEtlJob(EtlJob.java:552)
at com.esen.edf.domain.job.EtlJob.process(EtlJob.java:445)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.doExecute(EtlTaskJob.java:189)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.executeEtlJob(EtlTaskJob.java:161)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.executeMutexResource(EtlTaskJob.java:150)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.process(EtlTaskJob.java:125)
at com.esen.edf.domain.flow.EtlFlow.executeTask(EtlFlow.java:602)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:441)
at com.esen.edf.domain.flow.EtlFlow.processTaskOneByOne(EtlFlow.java:529)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:511)
at com.esen.edf.domain.flow.EtlFlow.processTaskOneByOne(EtlFlow.java:529)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:511)
at com.esen.edf.domain.flow.EtlFlow.processEtlFlow(EtlFlow.java:432)
at com.esen.edf.domain.flow.EtlFlow.process(EtlFlow.java:390)
at com.esen.edf.schedule.EtlFlowScheduledTaskRunner.execute(EtlFlowScheduledTaskRunner.java:129)
at com.esen.edf.schedule.EtlFlowScheduledTaskRunner.execute(EtlFlowScheduledTaskRunner.java:50)
at com.esen.eschedule.RunabledScheduledTask.doRun(RunabledScheduledTask.java:198)
at com.esen.eschedule.RunabledScheduledTask.access$000(RunabledScheduledTask.java:41)
at com.esen.eschedule.RunabledScheduledTask$1.run(RunabledScheduledTask.java:283)
at com.esen.scheduling.LocaleTask.run(LocaleTask.java:101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.esen.exception.RuntimeException4I18N: 执行:[#!/bin/bash
/root/llbb/llbb.sh ]出现异常
... 29 more
2021-05-11 17:15:28 执行ETL过程[报文生成]出现异常:com.esen.exception.RuntimeException4I18N: 执行脚本出现异常:
[#!/bin/bash
/root/llbb/llbb.sh ]
at com.esen.util.ExceptionHandler.throwRuntimeException(ExceptionHandler.java:247)
at com.esen.util.cmd.ShellUtils.processCommand(ShellUtils.java:189)
at com.esen.util.cmd.ShellUtils.executeShell(ShellUtils.java:103)
at com.esen.edf.domain.job.widget.EtlWidgetShell.process(EtlWidgetShell.java:53)
at com.esen.edf.domain.job.EtlJob.processEtlJob(EtlJob.java:552)
at com.esen.edf.domain.job.EtlJob.process(EtlJob.java:445)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.doExecute(EtlTaskJob.java:189)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.executeEtlJob(EtlTaskJob.java:161)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.executeMutexResource(EtlTaskJob.java:150)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.process(EtlTaskJob.java:125)
at com.esen.edf.domain.flow.EtlFlow.executeTask(EtlFlow.java:602)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:441)
at com.esen.edf.domain.flow.EtlFlow.processTaskOneByOne(EtlFlow.java:529)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:511)
at com.esen.edf.domain.flow.EtlFlow.processTaskOneByOne(EtlFlow.java:529)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:511)
at com.esen.edf.domain.flow.EtlFlow.processEtlFlow(EtlFlow.java:432)
at com.esen.edf.domain.flow.EtlFlow.process(EtlFlow.java:390)
at com.esen.edf.schedule.EtlFlowScheduledTaskRunner.execute(EtlFlowScheduledTaskRunner.java:129)
at com.esen.edf.schedule.EtlFlowScheduledTaskRunner.execute(EtlFlowScheduledTaskRunner.java:50)
at com.esen.eschedule.RunabledScheduledTask.doRun(RunabledScheduledTask.java:198)
at com.esen.eschedule.RunabledScheduledTask.access$000(RunabledScheduledTask.java:41)
at com.esen.eschedule.RunabledScheduledTask$1.run(RunabledScheduledTask.java:283)
at com.esen.scheduling.LocaleTask.run(LocaleTask.java:101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.esen.exception.RuntimeException4I18N: 执行:[#!/bin/bash
/root/llbb/llbb.sh ]出现异常
... 29 more
2021-05-11 17:15:28 com.esen.exception.RuntimeException4I18N: 执行脚本出现异常:
[#!/bin/bash
/root/llbb/llbb.sh ]
at com.esen.util.ExceptionHandler.throwRuntimeException(ExceptionHandler.java:247)
at com.esen.util.cmd.ShellUtils.processCommand(ShellUtils.java:189)
at com.esen.util.cmd.ShellUtils.executeShell(ShellUtils.java:103)
at com.esen.edf.domain.job.widget.EtlWidgetShell.process(EtlWidgetShell.java:53)
at com.esen.edf.domain.job.EtlJob.processEtlJob(EtlJob.java:552)
at com.esen.edf.domain.job.EtlJob.process(EtlJob.java:445)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.doExecute(EtlTaskJob.java:189)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.executeEtlJob(EtlTaskJob.java:161)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.executeMutexResource(EtlTaskJob.java:150)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.process(EtlTaskJob.java:125)
at com.esen.edf.domain.flow.EtlFlow.executeTask(EtlFlow.java:602)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:441)
at com.esen.edf.domain.flow.EtlFlow.processTaskOneByOne(EtlFlow.java:529)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:511)
at com.esen.edf.domain.flow.EtlFlow.processTaskOneByOne(EtlFlow.java:529)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:511)
at com.esen.edf.domain.flow.EtlFlow.processEtlFlow(EtlFlow.java:432)
at com.esen.edf.domain.flow.EtlFlow.process(EtlFlow.java:390)
at com.esen.edf.schedule.EtlFlowScheduledTaskRunner.execute(EtlFlowScheduledTaskRunner.java:129)
at com.esen.edf.schedule.EtlFlowScheduledTaskRunner.execute(EtlFlowScheduledTaskRunner.java:50)
at com.esen.eschedule.RunabledScheduledTask.doRun(RunabledScheduledTask.java:198)
at com.esen.eschedule.RunabledScheduledTask.access$000(RunabledScheduledTask.java:41)
at com.esen.eschedule.RunabledScheduledTask$1.run(RunabledScheduledTask.java:283)
at com.esen.scheduling.LocaleTask.run(LocaleTask.java:101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.esen.exception.RuntimeException4I18N: 执行:[#!/bin/bash
/root/llbb/llbb.sh ]出现异常
... 29 more
2021-05-11 17:15:28 结束执行任务:报文生成
2021-05-11 17:15:28 com.esen.exception.RuntimeException4I18N: 执行脚本出现异常:
[#!/bin/bash
/root/llbb/llbb.sh ]
at com.esen.util.ExceptionHandler.throwRuntimeException(ExceptionHandler.java:247)
at com.esen.util.cmd.ShellUtils.processCommand(ShellUtils.java:189)
at com.esen.util.cmd.ShellUtils.executeShell(ShellUtils.java:103)
at com.esen.edf.domain.job.widget.EtlWidgetShell.process(EtlWidgetShell.java:53)
at com.esen.edf.domain.job.EtlJob.processEtlJob(EtlJob.java:552)
at com.esen.edf.domain.job.EtlJob.process(EtlJob.java:445)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.doExecute(EtlTaskJob.java:189)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.executeEtlJob(EtlTaskJob.java:161)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.executeMutexResource(EtlTaskJob.java:150)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.process(EtlTaskJob.java:125)
at com.esen.edf.domain.flow.EtlFlow.executeTask(EtlFlow.java:602)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:441)
at com.esen.edf.domain.flow.EtlFlow.processTaskOneByOne(EtlFlow.java:529)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:511)
at com.esen.edf.domain.flow.EtlFlow.processTaskOneByOne(EtlFlow.java:529)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:511)
at com.esen.edf.domain.flow.EtlFlow.processEtlFlow(EtlFlow.java:432)
at com.esen.edf.domain.flow.EtlFlow.process(EtlFlow.java:390)
at com.esen.edf.schedule.EtlFlowScheduledTaskRunner.execute(EtlFlowScheduledTaskRunner.java:129)
at com.esen.edf.schedule.EtlFlowScheduledTaskRunner.execute(EtlFlowScheduledTaskRunner.java:50)
at com.esen.eschedule.RunabledScheduledTask.doRun(RunabledScheduledTask.java:198)
at com.esen.eschedule.RunabledScheduledTask.access$000(RunabledScheduledTask.java:41)
at com.esen.eschedule.RunabledScheduledTask$1.run(RunabledScheduledTask.java:283)
at com.esen.scheduling.LocaleTask.run(LocaleTask.java:101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.esen.exception.RuntimeException4I18N: 执行:[#!/bin/bash
/root/llbb/llbb.sh ]出现异常
... 29 more
2021-05-11 17:15:28 结束执行ETL过程流:ETL过程流_报文
2021-05-11 17:15:28 执行计划任务出现异常com.esen.exception.RuntimeException4I18N: 执行脚本出现异常:
[#!/bin/bash
/root/llbb/llbb.sh ]
at com.esen.util.ExceptionHandler.throwRuntimeException(ExceptionHandler.java:247)
at com.esen.util.cmd.ShellUtils.processCommand(ShellUtils.java:189)
at com.esen.util.cmd.ShellUtils.executeShell(ShellUtils.java:103)
at com.esen.edf.domain.job.widget.EtlWidgetShell.process(EtlWidgetShell.java:53)
at com.esen.edf.domain.job.EtlJob.processEtlJob(EtlJob.java:552)
at com.esen.edf.domain.job.EtlJob.process(EtlJob.java:445)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.doExecute(EtlTaskJob.java:189)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.executeEtlJob(EtlTaskJob.java:161)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.executeMutexResource(EtlTaskJob.java:150)
at com.esen.edf.domain.flow.tasks.EtlTaskJob.process(EtlTaskJob.java:125)
at com.esen.edf.domain.flow.EtlFlow.executeTask(EtlFlow.java:602)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:441)
at com.esen.edf.domain.flow.EtlFlow.processTaskOneByOne(EtlFlow.java:529)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:511)
at com.esen.edf.domain.flow.EtlFlow.processTaskOneByOne(EtlFlow.java:529)
at com.esen.edf.domain.flow.EtlFlow.processEtlTask(EtlFlow.java:511)
at com.esen.edf.domain.flow.EtlFlow.processEtlFlow(EtlFlow.java:432)
at com.esen.edf.domain.flow.EtlFlow.process(EtlFlow.java:390)
at com.esen.edf.schedule.EtlFlowScheduledTaskRunner.execute(EtlFlowScheduledTaskRunner.java:129)
at com.esen.edf.schedule.EtlFlowScheduledTaskRunner.execute(EtlFlowScheduledTaskRunner.java:50)
at com.esen.eschedule.RunabledScheduledTask.doRun(RunabledScheduledTask.java:198)
at com.esen.eschedule.RunabledScheduledTask.access$000(RunabledScheduledTask.java:41)
at com.esen.eschedule.RunabledScheduledTask$1.run(RunabledScheduledTask.java:283)
at com.esen.scheduling.LocaleTask.run(LocaleTask.java:101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.esen.exception.RuntimeException4I18N: 执行:[#!/bin/bash
/root/llbb/llbb.sh ]出现异常
... 29 more
zengxq 发表于 2021-5-11 17:14
您能将报错信息复制粘贴上来吗?视频里面太模糊了,看不清楚。
上一个回帖把报错信息发给你了。
我其实是想用ETL调用一个python,但是不能支持python调用,就用etl调shell,shell里再调python。需要传两个参数