Skip to content

updated YAML template and deploy scripts to match the NiFi 1.0.0 API#33

Open
simplesteph wants to merge 1 commit into
aperepel:masterfrom
simplesteph:master
Open

updated YAML template and deploy scripts to match the NiFi 1.0.0 API#33
simplesteph wants to merge 1 commit into
aperepel:masterfrom
simplesteph:master

Conversation

@simplesteph

Copy link
Copy Markdown

this fixes #32

Overall I think the approach needs to walk away from Groovy and wrap the API calls formally against an SDK (java, python, whichever).
Additionally, the NiFi API in 1.0 has tremendously changed and brought a new construct as controller services are now linked to process groups. This also brought a bug as outlined here:
https://issues.apache.org/jira/browse/NIFI-2895?jql=project%20%3D%20NIFI

As long as this is not resolved the script will work but things may break.

@akpuvvada

Copy link
Copy Markdown

I am using Nifi 1.1.2.
Does this branch support it?
When can we expect a release?

Thanks
Anil

@akpuvvada

Copy link
Copy Markdown

I am getting the below error while deploying. Please help:

Loading template from URI: file:D:/Desktop/Apache_Nifi/ExportedTemplatesAndDataFlows/ExpressionLang_Template_Test.xml
Template successfully imported into NiFi. ID: 16b31bae-b844-4d33-a342-cdc633a4ee1e
Configuring Controller Services
Configuring Process Groups and Processors
Loading Process Groups from NiFi
Process Group: ExpressionLang (d394a04e-015b-1000-6440-cc83ade10992)
Stopping Processor 'HandleHttpRequest' (d395803b-015b-1000-552a-0f73ae62837b)
Applying processor configuration
Caught: groovy.lang.MissingPropertyException: No such property: id for class: java.lang.String
groovy.lang.MissingPropertyException: No such property: id for class: java.lang.String
at NiFiDeploy$_handleProcessGroup_closure13$_closure25$_closure27$_closure28$_closure29$_closure30.doCall(NiFiDeploy.groovy:353)
at NiFiDeploy$_handleProcessGroup_closure13$_closure25$_closure27$_closure28$_closure29.doCall(NiFiDeploy.groovy:345)
at NiFiDeploy$_handleProcessGroup_closure13$_closure25$_closure27$_closure28$_closure29.doCall(NiFiDeploy.groovy)
at NiFiDeploy$_handleProcessGroup_closure13.doCall(NiFiDeploy.groovy:367)
at NiFiDeploy.handleProcessGroup(NiFiDeploy.groovy:315)
at NiFiDeploy$_run_closure3.doCall(NiFiDeploy.groovy:613)
at NiFiDeploy.run(NiFiDeploy.groovy:613)

@akpuvvada

Copy link
Copy Markdown

Undeploy of Process Groups is also not working. Getting below error. Please help.

YML Used:
nifi:
url: http://XXXX:8080
clientId: Deployment Script Test
templateUri: file:D:/Desktop/Apache_Nifi/ExportedTemplatesAndDataFlows/Test_AutoDeploy_Template.xml
templateName: Test_AutoDeploy_Template
undeploy:
processGroups:
- Test_AutoDeploy
templates:
- Test_AutoDeploy_Template

Error:
groovy NiFiDeploy.groovy -f D:\Desktop\Apache_Nifi\ExportedTemplatesAndDataFlows\Test_AutoDeploy_Template_AddedUndeploy.yml
Loading Process Groups from NiFi
Deleting template: Test_AutoDeploy_Template
Deleted template : Test_AutoDeploy_Template
Caught: groovy.lang.MissingPropertyException: No such property: key for class: java.lang.String
groovy.lang.MissingPropertyException: No such property: key for class: java.lang.String
at NiFiDeploy$_handleUndeploy_closure5.doCall(NiFiDeploy.groovy:95)
at NiFiDeploy.handleUndeploy(NiFiDeploy.groovy:94)
at NiFiDeploy.run(NiFiDeploy.groovy:599)

@akpuvvada

Copy link
Copy Markdown

Any suggestions on how to fix the above issue with undeploying?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to match API for NiFi 1.0.0

2 participants