Datahub上的读取文件运算符不会将消息传递给Docker容器中的python脚本

2020-09-03 07:32发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)嗨, 在WASB连接上对大...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


嗨,

在WASB连接上对大文件(15 MB)使用读取文件运算符,将消息发送到终端输出。 但是,当使用与在docker中运行的python运算符相同的消息作为输入时(不确定在不使用docker运行时是否会有所不同),该消息永远不会到达python def on_input:函数。

任何帮助表示赞赏。

6条回答
xfwsx85
2020-09-03 07:51

嗨,

这是JSON:

它永远不会将"测试"发送到

也不会引发任何错误。

要读取的文件约为11,2 MB

 {
 "属性":{},
 " description":" test2",
 "流程":{
 " python3operator1":{
 " component":" com.sap.system.python3Operator",
 "元数据":{
 " label":" Python3运算符",
 " x":277.99999809265137,
 " y":40,
 "身高":82,
 "宽度":120,
 "可扩展":是的,
 " config":{
 " script":" \ ndef on_message(data):\ n \ n result = \" test \" \ n \ n api.send(\" res \",result)\ napi.set_port_callback(\" message \",  on_message)\ n \ n"
 },
 "其他进口":[
 {
 " name":"消息",
 " type":"消息"
 }
 ],
 "其他输出":[
 {
 " name":" out",
 " type":"字符串"
 },
 {
 " name":" image",
 " type":" blob"
 },
 {
 " name":" imageout",
 " type":" blob"
 },
 {
 " name":" res",
 " type":"字符串"
 }
 ]
 }
 },
 " readfile1":{
 " component":" com.sap.storage.read",
 "元数据":{
 " label":"读取文件",
 " x":17
 " y":49.49999976158142,
 "身高":80,
 "宽度":120,
 " config":{
 " service":" wasb",
 " wasbConnection":{
 " connectionProperties":{
 " accountKey":"",
 " accountName":" myaccount",
 " endpointSuffix":" core.windows.net",
 " protocol":" HTTPS",
 " rootPath":""
 },
 " configurationType":"配置管理器",
 " connectionID":" WASB"
 },
 " wasbContainerName":" evonik1",
 " path":"/cells/video/test_Trim.mp4",
 "递归":false
 }
 }
 },
 " terminal2":{
 " component":" com.sap.util.terminal",
 "元数据":{
 " label":" Terminal",
 " x":587.9999961853027,
 " y":19.49999976158142,
 "身高":80,
 "宽度":120,
 " ui":" dynpath",
 " config":{}
 }
 }
 },
 "组":[
 {
 " name":" group1",
 "节点":[
 " python3operator1"
 ],
 "元数据":{
 " description":"组"
 },
 "标签":{
 " tesseract":"",
 " python36":"",
 "龙卷风":" 5.0.2"
 }
 }
 ],
 "连接":[
 {
 "元数据":{
 "点":" 141,98.49999976158142 168.99999952316284,98.49999976158142 168.99999952316284,97.49999976158142 244.99999856948853,97.49999976158142 244.99999856948853,81 272.99999809265137,81"
 },
 " src":{
 " port":" outFile",
 " process":" readfile1"
 },
 " tgt":{
 " port":"消息",
 " process":" python3operator1"
 }
 },
 {
 "元数据":{
 "点":" 382.99999809265137,113 490,113 490,59.5 582.9999961853027,59.49999976158142"
 },
 " src":{
 " port":" res",
 " process":" python3operator1"
 },
 " tgt":{
 " port":" in1",
 " process":" terminal2"
 }
 }
 ],
 "进口":{},
 "输出":{}
 }

 

一周热门 更多>