Member since
07-08-2016
260
Posts
44
Kudos Received
10
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3117 | 05-02-2018 06:03 PM | |
6267 | 10-18-2017 04:02 PM | |
2049 | 08-25-2017 08:59 PM | |
2804 | 07-21-2017 08:13 PM | |
10734 | 04-06-2017 09:54 PM |
11-17-2016
04:35 PM
@Bryan Bende Here are the last few lines. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizer': FactoryBean threw exception on object creation; nested exception is org.apache.nifi.authorization.exception.AuthorizerCreationException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; systemId: file:/F:/Tools/HDF-2.0.1.0/nifi/./conf/users.xml; lineNumber: 1; columnNumber: 1; Premature end of file.]
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175) ~[na:na]
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) ~[na:na]
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1585) ~[na:na]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:317) ~[na:na]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[na:na]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ~[na:na]
... 53 common frames omitted
Caused by: org.apache.nifi.authorization.exception.AuthorizerCreationException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; systemId: file:/F:/Tools/HDF-2.0.1.0/nifi/./conf/users.xml; lineNumber: 1; columnNumber: 1; Premature end of file.]
at org.apache.nifi.authorization.FileAuthorizer.doOnConfigured(FileAuthorizer.java:233) ~[na:na]
at org.apache.nifi.authorization.AbstractPolicyBasedAuthorizer.onConfigured(AbstractPolicyBasedAuthorizer.java:67) ~[nifi-framework-api-1.0.0.2.0.1.0-12.jar:1.0.0.2.0.1.0-12]
at org.apache.nifi.authorization.AuthorizerFactoryBean$2.doOnConfigured(AuthorizerFactoryBean.java:423) ~[na:na]
at org.apache.nifi.authorization.AbstractPolicyBasedAuthorizer.onConfigured(AbstractPolicyBasedAuthorizer.java:67) ~[nifi-framework-api-1.0.0.2.0.1.0-12.jar:1.0.0.2.0.1.0-12]
at org.apache.nifi.authorization.AuthorizerFactoryBean.getObject(AuthorizerFactoryBean.java:107) ~[na:na]
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ~[na:na]
... 58 common frames omitted
Caused by: javax.xml.bind.UnmarshalException: null
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335) ~[na:1.8.0_77]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:523) ~[na:na]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:220) ~[na:na]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:195) ~[na:na]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:246) ~[na:na]
at org.apache.nifi.authorization.FileAuthorizer.unmarshallTenants(FileAuthorizer.java:299) ~[na:na]
at org.apache.nifi.authorization.FileAuthorizer.load(FileAuthorizer.java:251) ~[na:na]
at org.apache.nifi.authorization.FileAuthorizer.doOnConfigured(FileAuthorizer.java:218) ~[na:na]
... 63 common frames omitted
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) ~[na:1.8.0_77]
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) ~[na:1.8.0_77]
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) ~[na:1.8.0_77]
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) ~[na:1.8.0_77]
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1437) ~[na:1.8.0_77]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1019) ~[na:1.8.0_77]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) ~[na:1.8.0_77]
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118) ~[na:1.8.0_77]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) ~[na:1.8.0_77]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) ~[na:1.8.0_77]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) ~[na:1.8.0_77]
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) ~[na:1.8.0_77]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) ~[na:1.8.0_77]
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) ~[na:1.8.0_77]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:216) ~[na:na]
... 68 common frames omitted
2016-11-16 14:57:32,565 INFO [Thread-1] org.apache.nifi.NiFi Jetty web server shutdown completed (nicely or otherwise).
... View more
11-17-2016
04:02 PM
Hi, I am using the latest version of NiFi and was working with HTTP recently. i tried to go HTTPS by doing the steps below and my NiFi wont start.. keytool -genkey -alias localhost -keyalg RSA -keysize 1024 -dname "CN=nifis2s,OU=nestle,O=nestle,L=selfsigned,ST=stl,C=us" -keypass testpass-keystore localhost.keystore.jks -storepass testpass keytool -export -alias localhost -keystore localhost.keystore.jks -rfc -file localhost.cert -storepass testpass keytool -import -noprompt -alias localhost -file localhost.cert -keystore localhost.truststore.jks -storepass testpass it generated keystore.jks and truststore.jks files. and i pointed them in nifi.config and changed it use https. also added entry in to authorizers.xml with initial user as "CN=nifis2s,OU=nestle,O=nestle,L=selfsigned,ST=stl,C=us" but when i tried to start up nifi after changes , it wont start up after some time it is shutting down with this errors below. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'x509AuthenticationProvider' defined in class path resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 'authorizer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizer': FactoryBean threw exception on object creation; nested exception is org.apache.nifi.authorization.exception.AuthorizerCreationException: javax.xml.bind.UnmarshalException does CN=nifis2s,OU=nestle,O=nestle,L=selfsigned,ST=stl,C=us need to be a valid user on the machine.? i tried with different combinations like CN=nifiuser,OU=test is there anything that i am missing.??
... View more
Labels:
- Labels:
-
Apache NiFi
11-15-2016
07:52 PM
@kkawamura @Matt Based on your recommendations , Here is what I did . But I still cant see the remote input port. I used these commands to create keystore and truststore on my local HDF server which is HTTP , copied on to my Config folder.. and updated the config file as nifi.security.keystore=./conf/localhost.keystore.jks
nifi.security.keystoreType=JKS
nifi.security.keystorePasswd=****
nifi.security.keyPasswd=*****
nifi.security.truststore=./conf/localhost.truststore.jks
nifi.security.truststoreType=JKS
nifi.security.truststorePasswd=***** and on my remote instance which is HTTPS with LDAP..i logged in as admin and created a user matching DN of the client..like below.. and granted access to the retrieve site-to-smote policy and input port.. and my flow on the remote server is when i drag RPG and point that to remote server..i am getting this error below. 3:50:10 CST
WARNING
697e84b3-0158-1000-bd67-1e28e1517603
Unable to connect to https://localhost:11090/nifi due to javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Regards, Sai
... View more
11-15-2016
03:47 AM
@kkawamura Hi , 1. it needs the same keystore and truststore on both servers.? 2. do I have to grant access to input port on the remote server.? if so for which user I should give as I am running local nifi as default user. regards, sai
... View more
11-14-2016
10:23 PM
So this means i cannot access a HTTPS Nifi instance from a HTTP using RPG? Is there a way where i can type in username and password of the HTTPS nifi and get thru from HTTP nifi.? just trying to see if there is an easier way without going my local instance to HTTPS. But if i have to go HTTPs on the local instance , do i need same keystore and truststore of the server.? Thanks, Sai
... View more
11-14-2016
09:22 PM
Hi, We have a HDF server inside our company's network and we just secured our remote server (one server only) on our HADOOP cluster with LDAP authentication (outside of our network , managed by rackspace). How do i connect to a remote process using Site 2 Site..? Earlier i have my putHDFS process on remote server and i was sending files using Site 2 Site from local server. Since both are HTTP it was working fine then. But Now i am not able to connect to the remote port using because of secure connection. (HTTPs\LDAP etc). What is the solution.? Do i have to go HTTPS on the local server too with the same LDAP settings..?? Thank you. Regards, Sai
... View more
Labels:
- Labels:
-
Apache NiFi
11-14-2016
09:06 PM
@Matt it is working..my file name format has changed. it has a "-" where its supposed to have a "_" i didn't notice it earlier. thank you. anyway is there a better approach to this.?? Regards,Sai
... View more
11-14-2016
07:36 PM
1 Kudo
Hi, I have a case where i have to route incoming flow files to different folders based on the File names. Lets say i have 1000 files that need to send to 5 folders. i thought this would work with Advanced settings of updateattribute where i can write the rules. but the folder name is not being populated.anything wrong i am doing .?? here my test flow..List-->Fetch-->UpdateAttribute-->PutFile and i tried to use the Folder attribute in the putfile ..i tried without single quotes also.. or is there any better approach..?? i need to route 8000 files in to 18 different folders.basically 70 files to 17 folders and remaining 7100+ files to a default folder..(per day 8K files , i need to load data for 18 months) Thanks for your help.. Regards, Sai
... View more
Labels:
- Labels:
-
Apache NiFi
11-02-2016
07:10 PM
@Matt Burgess adding core-site.xml eliminated the warning. But i had to change the kerberos principal to fully qualified name , then it started working..thanks for the help..
... View more
11-02-2016
05:12 PM
@Matt Burgess in those both files it's set as Kerberos , here are some properties from hive-site.xml. is there any other files that i need to be checking.
... View more