您的位置:首页 > 编程语言 > Python开发

nifi Error(ExecuteScript): is not the most recent version of this flow file within this session

2017-01-03 16:31 513 查看
ExecuteScript(python):

当使用如下脚本,会报is not the most recent version of this FlowFile within this session。

flowFile = session.get()

session.putAttribute(flowFile, 'filename', 'executeScript')

if(flowFile != None):

    session.transfer(flowFile, REL_SUCCESS)

else:

    session.transfer(flowFile, REL_FAILURE)

修改第二行代码, 一定要赋值回一个flowFile变量:

flowFile = session.putAttribute(flowFile, 'filename', 'executeScript')
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nifi python ExecuteScript
相关文章推荐