无法调用associatePreGeneratedJob api端点。继续收到180错误。尝试将zip文件从Windows机器上传到在docker容器上运行的tac服务器上
说明:使用预先生成的zip文件创建新的执行任务 -targetConductor:可以为[JOBCONDUCTOR,BIGDATA_STREAMING]。默认值为“ JOBCONDUCTOR”。 -importType:从中选择zip文件的位置; “ Nexus”或“ File”,默认值为“ File” 需要验证:true 从:5.2 样品: { “ actionName”:“ associatePreGeneratedJob”, “有效”:是, “ authPass”:“管理员”, “ authUser”:“ admin@company.com”, “ contextName”:“默认”, “ description”:“ task1的描述”, “ executionServerName”:“ serv1”, “ filePath”:“'/home/talend/generatedJob.zip'”, “ importType”:“ Nexus”, “ logLevel”:“信息”, “ nexusArtifactId”:“测试”, “ nexusGroupId”:“ org.example”, “ nexusRepository”:“快照”, “ nexusVersion”:“ 0.1.0-SNAPSHOT”, “ onUnknownStateJob”:“ WAIT”, “ pauseOnError”:否, “ taskName”:“ task1”, “超时”:3600 } 特定错误代码: 180:文件无效或不存在
参考: 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“:” admin @ company.com”,“ contextName”:“默认”,“ 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“,”超时“:3600}”
工作zip文件应上传到tac服务器
答案 0 :(得分:0)
转到网络日志并捕获api请求有助于破译文件在容器中的存储位置。如果将zip文件以某种方式发送到了容器中的该位置,则可以将该路径传递给api请求 容器中的Ex路径:/usr/local/tomcat/temp/test.zip