无法通过metaservlet api将talend作业zip文件从Windows机器上传到tac

问题描述 投票:0回答:1

无法调用associatePreGeneratedJob api端点。继续得到180错误。尝试将zip文件从Windows计算机上载到在docker容器上运行的tac服务器

Talend文档:

命令:associatePreGeneratedJob

描述:使用预先生成的zip文件创建新的执行任务 - targetConductor:可能是[JOBCONDUCTOR,BIGDATA_STREAMING]。 “JOBCONDUCTOR”是默认值。 - importType:从中选择zip文件的位置; 'Nexus'或'File',默认值为'File'需要身份验证:true从以下版本开始:5.2示例:{“actionName”:“associatePreGeneratedJob”,“active”:true,“authPass”:“admin”,“authUser”: “[email protected]”,“contextName”:“默认”,“描述”:“task1的描述”,“executionServerName”:“serv1”,“filePath”:“'/ home /tandnd /generatedJob.zip'”, “importType”:“Nexus”,“logLevel”:“Info”,“nexusArtifactId”:“test”,“nexusGroupId”:“org.example”,“nexusRepository”:“snapshots”,“nexusVersion”:“0.1.0 -SNAPSHOT“,”onUnknownStateJob“:”WAIT“,”pauseOnError“:false,”taskName“:”task1“,”timeout“:3600}特定错误代码:180:文件不是有效文件或不存在

181:nexus参数可能不正确

参考:Talend Metaservlet api文档:https://help.talend.com/reader/oYf9gKhmYrkWCiSua4qLeg/SLiAyHyDTjuznLR_F~MiQQ

试过这个。 MetaServletCaller.bat --tac-url = http://localhost:8080/org.talend.administrator/ --json-params =“{”actionName“:”associatePreGeneratedJob“,”active“:true,”authPass“:”admin“,”authUser“:”[email protected] “,”contextName“:”Default“,”description“:”New“,”executionServerName“:”test“,”filePath“:”'C:\ Users \ st \ Desktop \ JOb \ t1.zip'“,” logLevel“:”Info“,”onUnknownStateJob“:”WAIT“,”importType“:”File“,”pauseOnError“:false,”taskName“:”task_new“,”taskType“:”Normal“,”timeout“:3600 }”

作业zip文件应该上传到tac服务器

talend
1个回答
0
投票

转到网络日志并捕获api请求有助于破译文件存储在容器中的位置。如果zip文件以某种方式发送到容器中的该位置,则该路径可以传递给容器中的api请求Ex路径:/usr/local/tomcat/temp/test.zip

© www.soinside.com 2019 - 2024. All rights reserved.