开发者社区> 问答> 正文

[Otter node-4.2.12]Cannot run program "aria2c"

明明aria2已经安装好了,在命令行aria2c已经可以使用了,为什么还报错? Cannot run program "aria2c": CreateProcess error=2, 系统找不到指定的文件。 问题现象:配置双向channel,内网-->外网很快可以同步过来,但反方向延迟非常大,甚至几天都不能同步。 环境说明:外网:windows2k8 server 64bit; otter-manager-4.2.12,node4.2.12,canal-1.0.21,aria2-1.19.0-win-64bit-build1,其中在aria2c在cmd中是可执行的。 内网:centos7;otter-node4.2.12,canal-1.0.21,aria2

查看了外网15.log的内容,出错部分: 2018-09-14 23:03:31.960 [pipelineId = 15,taskName = transformWorker] ERROR com.alibaba.otter.node.etl.transform.TransformTask - [15] transformWork executor is error! data:EtlEventData[currNid=3,nextNid=1,desc=[HttpPipeKey[identity=Identity[channelId=9,pipelineId=15,processId=238704],crc=,key=,url=http://10.242.1.114:9090/download/DbBatch-2018-09-14-15-05-28-9-15-238704.gzip,dataType=DB_BATCH]],processId=238704,startTime=1536908728080,endTime=,firstTime=1536536664000,batchId=1,number=1165,size=,exts=,pipelineId=15] com.alibaba.otter.node.etl.common.pipe.exception.PipeException: download_error Caused by: com.alibaba.otter.node.etl.common.io.download.exception.DataRetrieveException: aborted for some configration error. 2018-09-14 23:03:32.086 [pipelineId = 15,taskName = transformWorker] ERROR c.a.o.n.e.common.io.download.impl.aria2c.Aria2cRetriever - Cannot run program "aria2c": CreateProcess error=2, 系统找不到指定的文件。 com.alibaba.otter.node.etl.common.io.download.exception.DataRetrieveException: Cannot run program "aria2c": CreateProcess error=2, 系统找不到指定的文件。 Caused by: java.io.IOException: Cannot run program "aria2c": CreateProcess error=2, 系统找不到指定的文件。 at java.lang.ProcessBuilder.start(Unknown Source) ~[na:1.7.0_80] at java.lang.Runtime.exec(Unknown Source) ~[na:1.7.0_80] at java.lang.Runtime.exec(Unknown Source) ~[na:1.7.0_80] at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:62) ~[shared.common-4.2.12.jar:na] at com.alibaba.otter.shared.common.utils.cmd.Exec.execute(Exec.java:49) ~[shared.common-4.2.12.jar:na] at com.alibaba.otter.node.etl.common.io.download.impl.AbstractCommandDownload.download(AbstractCommandDownload.java:70) ~[node.etl-4.2.12.jar:na] at com.alibaba.otter.node.etl.common.io.download.impl.AbstractCommandRetriever.doRetrieve(AbstractCommandRetriever.java:62) [node.etl-4.2.12.jar:na] at com.alibaba.otter.node.etl.common.pipe.impl.http.RowDataHttpPipe.getDbBatch(RowDataHttpPipe.java:199) [node.etl-4.2.12.jar:na] at com.alibaba.otter.node.etl.common.pipe.impl.http.RowDataHttpPipe.get(RowDataHttpPipe.java:71) [node.etl-4.2.12.jar:na] at com.alibaba.otter.node.etl.common.pipe.impl.RowDataPipeDelegate.get(RowDataPipeDelegate.java:128) [node.etl-4.2.12.jar:na] at com.alibaba.otter.node.etl.transform.TransformTask$1.run(TransformTask.java:76) [node.etl-4.2.12.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.7.0_80] at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.7.0_80] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_80] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_80] at java.lang.Thread.run(Unknown Source) [na:1.7.0_80] Caused by: java.io.IOException: CreateProcess error=2, 系统找不到指定的文件。 at java.lang.ProcessImpl.create(Native Method) ~[na:1.7.0_80] at java.lang.ProcessImpl.(Unknown Source) ~[na:1.7.0_80] at java.lang.ProcessImpl.start(Unknown Source) ~[na:1.7.0_80] ... 16 common frames omitted 2018-09-14 23:03:32.087 [pipelineId = 15,taskName = transformWorker] ERROR com.alibaba.otter.node.etl.transform.TransformTask - [15] transformWork executor is error! data:EtlEventData[currNid=3,nextNid=1,desc=[HttpPipeKey[identity=Identity[channelId=9,pipelineId=15,processId=238705],crc=,key=,url=http://10.242.1.114:9090/download/DbBatch-2018-09-14-15-05-28-9-15-238705.gzip,dataType=DB_BATCH]],processId=238705,startTime=1536908728200,endTime=,firstTime=1536553715000,batchId=2,number=2805,size=,exts=,pipelineId=15] com.alibaba.otter.node.etl.common.pipe.exception.PipeException: download_error Caused by: com.alibaba.otter.node.etl.common.io.download.exception.DataRetrieveException: aborted for some configration error. 2018-09-14 23:03:32.390 [pipelineId = 15,taskName = transformWorker] WARN c.a.o.s.a.i.setl.zookeeper.termin.WarningTerminProcess - nid:1[15:setl:com.alibaba.otter.node.etl.common.pipe.exception.PipeException: download_error Caused by: com.alibaba.otter.node.etl.common.io.download.exception.DataRetrieveException: aborted for some configration error.

原提问者GitHub用户leageshine

展开
收起
古拉古拉 2023-06-16 20:44:52 50 0
1 条回答
写回答
取消 提交回答
  • 需要在系统PATH路径里可见aria2c

    原回答者GitHub用户agapple

    2023-06-16 21:35:44
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
探究 Node.js 的服务端之路 立即下载
个推微服务实践 基于OpenResty 和Node.js 立即下载
沪江基于Node.js大规模应用实践 立即下载