Member since
06-12-2018
24
Posts
2
Kudos Received
0
Solutions
12-18-2018
06:57 PM
@Milan Das Yes, for the very first time we set using UI and this will create a authorizsations.xml file. For every installation after the first one, we copy the old authorizations.xml, get the current installation root id and replace the old installation root id with the current one in authorizations.xml. This way you dont set the component level policies every time a new instance of NiFi is installed
... View more
12-10-2018
09:36 PM
I am consuming the file from UNIX directory using Apache NiFi 1.5. The directory and file has all the required permissions for NiFi to consume it.
... View more
12-10-2018
09:33 PM
{$filename:toLower()} will only look for filename with lowercase pattern in the UNIX directory. If I provide filename as ABC.txt to fetch file processor, it will always look for abc.txt but I also need to consume files like aBc.Txt|abC.txt|ABC.TXT in this case.
... View more
12-10-2018
09:21 PM
@Matt Clarke @Timothy Spann @Felix Albani
... View more
12-10-2018
09:21 PM
1 Kudo
Hi, I am trying to consume a file from UNIX folder using NiFi FetchFile processor by providing UNIX folder location and the filename. The FetchFile processor only fetches the file with the matching filename which is not case agnostic. If I provided FetchFile with filename as abc.txt and I drop ABC.TXT in the UNIX location, the FetchFile processor will not pick it up. Is there any way I can pickup files based on case agnostic filenames? Note: I tried using the GetFile processor but it only has success relationship which means that GetFile processor will not handle the negative scenario when the file is not present when expected which is not as per my requirement. Any help will be appreciated. Thanks
... View more
Labels:
- Labels:
-
Apache NiFi
08-22-2018
05:22 PM
To be more specific about my question, I wan to know if there is any way we can set component level access policies(view/modify component/data/policies) without using UI or NiFi REST APIs.
... View more
08-21-2018
09:53 PM
@Matt Clarke @Felix Albani @Matt Burgess Can someone please help?
... View more
08-21-2018
09:46 PM
Hi, When I try to install an instance of NiFi, I am able to start NiFi but to configure any flows in the canvas, I have to set the component level access policies on the canvas and provide the admin and users with rights to view/modify component and data. Only after setting this access policies, I am able to configure any flows or else I getting an error saying: HTTP/1.1 403 Forbidden: No applicable policies could be found. Contact the system administrator. This is understandable since the UUID of the NiFi canvas change with every fresh installation of NiFi (since flow.xml.gz changes). My question is, can the access policies be set using NiFi REST API for the canvas rather than manually adding the users via UI. I want to build a UNIX script with set of commands that uses nifi-api to set the access policies so that I can run this script and then configure the flows. Is it possible to set access policies using nifi-api? If so, how? Thanks and Regards, Harish Vaibhav Kali
... View more
Labels:
- Labels:
-
Apache NiFi
08-06-2018
06:47 PM
@Matt Clarke @Felix Albani Hi Matt/Felix, If suppose I have 5 process groups in a NiFi flow and I am adding a processor in one of the process group, does this change the UUIDs of all processors in that NiFi flow? The reason I am asking this is because, I am using GIT to maintain XMLs of NiFi flows, when I make a change and raise a pull request against master branch, I see that the UUIDs of all processors in the entire flow changes. If another person at the same time makes a change to a processor(on a different instance of NiFi) and raises a pull request against master branch there will be a conflict. So as to avoid this, one has to make their changes and once they are merged to master branch, the other person needs to get the latest changes in master branch and then work on his/her change. Is there anyway we can avoid this?
... View more
Labels:
- Labels:
-
Apache NiFi
08-01-2018
09:45 PM
@Matt Clarke But everytime I install NiFi and login as admin, I see the root process group and when I click the Access Policies(Key symbol) button on NiFi root level, it opens the access policies dialog and it there it says "No policy for the specified resource.
Create a new policy." Now when I click create a new policy and add the admin, I am able to configure flows or else it gives me error mentioned in the above comment. So, is this behavior expected or am I missing something? I have added the admin user in authorized-users.xml and mentioned that user as admin in Initial admin identity property in authorizers.xml as well.
... View more
08-01-2018
08:46 PM
@Matt Clarke
Is it required to set the access policies(view component, modify component, view the data, modify the data, etc.) for the main process group to configure the flows every time a new instance of NiFi is installed?
I am able to start NiFi and login to the UI. After starting NiFi, when I am trying to configure the flows, it gives me error saying:
HTTP call failed. Status code: HTTP/1.1 403 Forbidden: No applicable policies could be found. Contact the system administrator. When I login to NiFi and manually link access policies to admin and then try to configure the flows, it works fine.
So do I have to link the access policies to admin every time I install an instance of NiFi for configuring the flows?
... View more
07-25-2018
08:54 PM
Hi, I am trying to access nifi-api using kerberos token. I ran the command to obtain the token that is mentioned in the post but I get the following error: Kerberos ticket login not supported by this NiFi. I have kerberos provider configured in login-identity-providers.xml and I am able to run kinit also. Can you please help me how to resolve this issue?
... View more
07-25-2018
03:22 PM
@Matt Clarke So is there any way I can migrate the users I added manually via UI in one installation of NiFi to a different installation? If so, how? The reason I am asking this is because, I dont want to manually add the users everytime I reinstall NiFi
... View more
07-25-2018
01:26 PM
Hi Matt, I know that when the users are added via NiFi UI, it reflects in the users.xml file. What I am asking is, if suppose I have added 10 users via NiFi UI and now I have 10 users in my users.xml file. So now can I use this users.xml file in future installations. If suppose I use the same users.xml in a new installation, will those 10 users be able to login to the newly installed NiFi?
... View more
07-24-2018
01:53 PM
@Matt Clarke Hi Matt, Let's say if I have a list of users that have access to an instance of NiFi. Is there any way I can retain those users even after I re-install NiFi on that particular instance?
... View more
07-18-2018
11:09 PM
@Matt Clarke @Matt Burgess @Felix Albani @Timothy Spann
... View more
07-18-2018
11:04 PM
Hi, I am trying to stop a nifi process group from UNIX where the nifi is installed using curl command. First I generated the access token to the URL that I am trying to POST by running the below command: curl --tlsv1.2 https://localhost:9966/nifi-api/access/token --data 'username=*****&password=****' -k After this, I am running the below command using the access token generated from above step: curl --tlsv1.2 -ik -H 'Content-Type: application/json' -H 'Authorization: Bearer {token from above command}' -XPUT -d'{"id":"03bc6708-6a44-4069-8fe3-77ec056639e7","state":"STOPPED"}' https://localhost:9966/nifi-api/flow/process-groups/03bc6708-6a44-4069-8fe3-77ec056639e7 But I get the below error when I run the above command: Can someone help me resolve this issue? Am I running the correct commands? If not can someone give me the correct commands to GET/POST NiFi content using curl command PS: I am able to access NiFi UI through my web browser using this link: https://nifi-host:port/nifi
... View more
Labels:
- Labels:
-
Apache NiFi
07-13-2018
03:41 PM
@Matt Clarke so the only way to add new users is to login to NiFi as admin and then add the users via UI?
... View more
07-13-2018
01:29 PM
@Felix Albani @Timothy Spann can you please help me with this?
... View more
07-12-2018
08:21 PM
Hi, I am currently working on upgrading NiFi from v0.6.1 to v1.5.0. One thing I noticed is that in v0.6.1, when a user tries to login to NiFi and doesn't have permissions to login, he will be routed to a new justification window as below and will be asked to provide justification for access. Once he provides justification, the user's username will be added to the list of users in NiFi UI saying that the request is pending. The admin can then login and provide the access to that user. But in v1.5.0, when a user with insufficient permissions tries to login to NiFi, the UI is routed to a new window which says Insufficient Permissions but does not add the user id to the list of users for the admin to process the request. Was this feature removed in latest versions of NiFi? If so, why was it removed? If not, how can I enable it in v1.5.0?
... View more
Labels:
- Labels:
-
Apache NiFi
06-13-2018
02:03 PM
@Timothy Spann I have installed v0.6.1 and v1.5.0 in two separate folders. I am not trying to export any templates/flows from 0.6.1 to 1.5.0 but I am trying to bring up the NiFi Web UI with v1.5.0. Unfortunately I get this error when I start NiFi with v1.5.0. Is there anything I am missing? Do you think updating the JCE JARs helps?
... View more
06-13-2018
01:59 PM
@Felix Albani I am not trying to configure any templates as of now. I am trying to load the NiFi Web UI first without any templates/flows but unfortunately I get this error every time I start NiFi. Don't know how it works well in case of v0.6.1.
... View more
06-13-2018
01:01 PM
1 Kudo
Hi, I am trying to upgrade NiFi to version 1.5.0 from 0.6.1. I have downloaded HDF 3.1.1 and updated the Apache NiFi JARs to version 1.5.0 in my application. When I try to start/load NiFi, I get below Java security exception: 2018-06-11 15:18:08,046 WARN [main] org.eclipse.jetty.webapp.WebAppContext Failed startup of context o.e.j.w.WebAppContext@1f628b31{/nifi-api,file:///*****/*****/NiFi/dev.2018-06-11-1515/nifi-1.5.0.3.1.1.0-35/work/jetty/nifi-web-api-1.5.0.3.1.1.0-35.war/webapp/,UNAVAILABLE}{./work/nar/framework/nifi-framework-nar-1.5.0.3.1.1.0-35.nar-unpacked/META-INF/bundled-dependencies/nifi-web-api-1.5.0.3.1.1.0-35.war} org.apache.nifi.web.NiFiCoreException: Unable to start Flow Controller. at org.apache.nifi.web.contextlistener.ApplicationStartupContextListener.contextInitialized(ApplicationStartupContextListener.java:88) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:876) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:532) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:839) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:344) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1480) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1442) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:799) at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:540) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) at org.eclipse.jetty.server.handler.gzip.GzipHandler.doStart(GzipHandler.java:290) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.server.Server.start(Server.java:452) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) at org.eclipse.jetty.server.Server.doStart(Server.java:419) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:777) at org.apache.nifi.NiFi.<init>(NiFi.java:160) at org.apache.nifi.NiFi.main(NiFi.java:268) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowController': FactoryBean threw exception on object creation; nested exception is org.apache.nifi.framework.security.util.SslContextCreationException: java.io.IOException: exception decrypting data - java.security.InvalidKeyException: Illegal key size at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1634) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:317) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1084) at org.apache.nifi.web.contextlistener.ApplicationStartupContextListener.contextInitialized(ApplicationStartupContextListener.java:55) ... 32 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowController': FactoryBean threw exception on object creation; nested exception is org.apache.nifi.framework.security.util.SslContextCreationException: java.io.IOException: exception decrypting data - java.security.InvalidKeyException: Illegal key size at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1634) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:317) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1084) at org.apache.nifi.spring.StandardFlowServiceFactoryBean.getObject(StandardFlowServiceFactoryBean.java:48) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ... 38 common frames omitted Caused by: org.apache.nifi.framework.security.util.SslContextCreationException: java.io.IOException: exception decrypting data - java.security.InvalidKeyException: Illegal key size at org.apache.nifi.framework.security.util.SslContextFactory.createSslContext(SslContextFactory.java:106) at org.apache.nifi.controller.FlowController.<init>(FlowController.java:478) at org.apache.nifi.controller.FlowController.createStandaloneInstance(FlowController.java:409) at org.apache.nifi.spring.FlowControllerFactoryBean.getObject(FlowControllerFactoryBean.java:77) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ... 45 common frames omitted Caused by: java.io.IOException: exception decrypting data - java.security.InvalidKeyException: Illegal key size at org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.cryptData(Unknown Source) at org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.engineLoad(Unknown Source) at java.security.KeyStore.load(KeyStore.java:1445) at org.apache.nifi.framework.security.util.SslContextFactory.createSslContext(SslContextFactory.java:86) ... 49 common frames omitted 2018-06-11 15:18:08,861 INFO [main] o.e.j.a.AnnotationConfiguration Scanning elapsed time=546ms 2018-06-11 15:18:08,865 INFO [main] o.e.j.C./nifi-content-viewer No Spring WebApplicationInitializer types detected on classpath 2018-06-11 15:18:08,903 INFO [main] o.e.jetty.server.handler.ContextHandler Started o.e.j.w.WebAppContext@1a8b7423{/nifi-content-viewer,file:///*****/*****/NiFi/dev.2018-06-11-1515/nifi-1.5.0.3.1.1.0-35/work/jetty/nifi-web-content-viewer-1.5.0.3.1.1.0-35.war/webapp/,AVAILABLE}{./work/nar/framework/nifi-framework-nar-1.5.0.3.1.1.0-35.nar-unpacked/META-INF/bundled-dependencies/nifi-web-content-viewer-1.5.0.3.1.1.0-35.war} 2018-06-11 15:18:08,905 INFO [main] o.e.jetty.server.handler.ContextHandler Started o.e.j.s.h.ContextHandler@283693af{/nifi-docs,null,AVAILABLE} 2018-06-11 15:18:08,953 INFO [main] o.e.j.a.AnnotationConfiguration Scanning elapsed time=26ms 2018-06-11 15:18:08,956 INFO [main] o.e.jetty.ContextHandler./nifi-docs No Spring WebApplicationInitializer types detected on classpath 2018-06-11 15:18:08,994 INFO [main] o.e.jetty.server.handler.ContextHandler Started o.e.j.w.WebAppContext@695dc0e6{/nifi-docs,file:///*****/*****/NiFi/dev.2018-06-11-1515/nifi-1.5.0.3.1.1.0-35/work/jetty/nifi-web-docs-1.5.0.3.1.1.0-35.war/webapp/,AVAILABLE}{./work/nar/framework/nifi-framework-nar-1.5.0.3.1.1.0-35.nar-unpacked/META-INF/bundled-dependencies/nifi-web-docs-1.5.0.3.1.1.0-35.war} 2018-06-11 15:18:09,044 INFO [main] o.e.j.a.AnnotationConfiguration Scanning elapsed time=25ms 2018-06-11 15:18:09,047 INFO [main] org.eclipse.jetty.ContextHandler./ No Spring WebApplicationInitializer types detected on classpath 2018-06-11 15:18:09,079 INFO [main] o.e.jetty.server.handler.ContextHandler Started o.e.j.w.WebAppContext@1f5359a8{/,file:///*****/*****/NiFi/dev.2018-06-11-1515/nifi-1.5.0.3.1.1.0-35/work/jetty/nifi-web-error-1.5.0.3.1.1.0-35.war/webapp/,AVAILABLE}{./work/nar/framework/nifi-framework-nar-1.5.0.3.1.1.0-35.nar-unpacked/META-INF/bundled-dependencies/nifi-web-error-1.5.0.3.1.1.0-35.war} 2018-06-11 15:18:09,102 WARN [main] org.apache.nifi.web.server.JettyServer Failed to start web server... shutting down. java.io.IOException: exception decrypting data - java.security.InvalidKeyException: Illegal key size at org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.cryptData(Unknown Source) at org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.engineLoad(Unknown Source) at java.security.KeyStore.load(KeyStore.java:1445) at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:52) at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:998) at org.eclipse.jetty.util.ssl.SslContextFactory.load(SslContextFactory.java:252) at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:219) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) at org.eclipse.jetty.server.SslConnectionFactory.doStart(SslConnectionFactory.java:72) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:270) at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:81) at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.server.Server.doStart(Server.java:431) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:777) at org.apache.nifi.NiFi.<init>(NiFi.java:160) at org.apache.nifi.NiFi.main(NiFi.java:268) 2018-06-11 15:18:09,103 INFO [Thread-8] org.apache.nifi.NiFi Initiating shutdown of Jetty web server... 2018-06-11 15:18:09,111 INFO [Thread-8] o.eclipse.jetty.server.AbstractConnector Stopped ServerConnector@73b82df3{SSL,[ssl, http/1.1]}{0.0.0.0:9990} 2018-06-11 15:18:09,111 INFO [Thread-8] org.eclipse.jetty.server.session Stopped scavenging NiFi starts fine when I start/load using 0.6.1 version but throws above exception when I start with version 1.5.0. I have checked for JCE JARs in /jre/lib/security folder and they are present but were installed long time ago(~2years ago). Can someone please help me on this? Any help is appreciated. Thanks
... View more
Labels:
- Labels:
-
Apache NiFi