Trying to create a PutMongo processor in nipyapi connected with local instance. I have specified all the required configurations but doesnt seem to work.
PutMongoFile = canvas.create_processor(
root_process_group,
processor_PutMongo,
(randrange(0,4000), randrange(0,4000)),
name=None,
config=processor_PutMongo_config)
Get the following error:
*AttributeError Traceback (most recent call last)
<ipython-input-48-ef1b815cdbdb> in <module>
----> 1 PutMongoFile = canvas.create_processor(root_process_group,processor_PutMongo,(randrange(0,4000),randrange(0,4000)),name=None,config=processor_PutMongo_config)
~\AppData\Roaming\Python\Python38\site-packages\nipyapi\canvas.py in create_processor(parent_pg, processor, location, name, config)
503 """
504 if name is None:
--> 505 processor_name = processor.type.split('.')[-1]
506 else:
507 processor_name = name
AttributeError: 'list' object has no attribute 'type'*
Appreciate any help!!!
##get the processors processor_GenFlowFile = canvas.get_processor_type('org.apache.nifi.processors.standard.GenerateFlowFile', identifier_type='name') processor_PutFile = canvas.get_processor_type('org.apache.nifi.processors.standard.PutFile', identifier_type='name')- Sdairs