Using dynamic property in connection pooling service for ExecuteSQL processor

自古美人都是妖i 提交于 2019-12-23 23:20:06

问题


I am using ExecuteSQL to get the table from one or more database but i want to provide URL, Username, and password dynamically to the dbcpconnectionPool service so that i won't need more than one ExecuteSQL processor to retrieve data from different DB. It is found that controller service doesn't accept attribute from incoming flow file. So how to achieve it if it is possible. Someone pointed out that it can be achieved only by using rest api, if that is the case please provide a working example along with screenshots. It will be a great help. Thanks in advance.


回答1:


This is a limitation till NiFi 1.6.0. NIFI-5121 and NIFI-5229 addressed this. The upcoming Apache NiFi 1.7.0 which would hopefully see a release in the next couple of days comes with this feature included.



来源:https://stackoverflow.com/questions/50961167/using-dynamic-property-in-connection-pooling-service-for-executesql-processor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!