我在Apache NiFi中使用ExecuteScript处理器,采用一个简单的Python脚本(保存为.py文件)。在处理器的属性中,我将脚本引擎设置为python,并将脚本文件设置为此脚本的路径。
import time
count = 0
while(count < 20):
print "The counter says: ", count
count = count + 1
time.sleep(.1)
我没有看到任何输出到日志或PutFile.然而,我确实看到print语句出现在\nifi-0.6.1\logs\nifi-bootstrap.log中。我的知识目前有限。希望有人能回答我如何使用ExecuteScript处理器,甚至给我一个比我当前设置更好的例子。