Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How does ".dynamicallyModifiesClasspath" communicates to the framework to update classpath with external paths? Basic search lead to AbstractConfiguredComponent.java which identifies this....

How does ".dynamicallyModifiesClasspath" communicates to the framework to update classpath with external paths? Basic search lead to AbstractConfiguredComponent.java which identifies this....

How does ".dynamicallyModifiesClasspath" communicates to the framework to update classpath with external paths? Basic search lead to AbstractConfiguredComponent.java which identifies this and invokes "reload(additionalUrls)". Could not find what this method does?

1 REPLY 1
Highlighted

Re: How does ".dynamicallyModifiesClasspath" communicates to the framework to update classpath with external paths? Basic search lead to AbstractConfiguredComponent.java which identifies this....

The framework has a processor node object for each processor on the graph, and the processor node has the actual instance of the processor which was created using the class loader from the given NAR. When a property with dynamicallyModifiesClasspath is changed, the framework calls reload which recreates the underlying processor using a new class loader that contains all of the additional resources + the NAR class loader.

https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nif...

Don't have an account?
Coming from Hortonworks? Activate your account here