Created 02-26-2022 09:38 AM
Hi
I am very new to nifi and try to install and configure the system.
I started nifi.sh start and it shows
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
NiFi home: /Users/daniel/Downloads/nifi-1.15.3
Bootstrap Config File: /Users/daniel/Downloads/nifi-1.15.3/conf/bootstrap.conf
And when i enter nifi.sh status, terminal shows:
2022-02-26 09:31:33,238 INFO [main] org.apache.nifi.bootstrap.Command Apache NiFi is currently running, listening to Bootstrap on port 52929, PID=74313
I changed nifi.web.http.port in nifi.properties to 8080.
But still I do not see any on localhost:8080.
In the log file there is no message that server has started on 8080 port.
I have no idea what problem caused the issue.
Please advise me.
Thanks
Created 03-09-2022 01:57 PM
Hi @CookieCream ,
I think I have a good idea of what's going on. The bootstrap.log, which you shared in pvt, has an error message complaining about a invalid key size. When I saw that I checked again your Java version and realized that you're using a very old Java version (1.8.0_65). In this version of Java, cryptographic key sizes were limited and you could not create long keys. Because of that, NiFi fails to create the TLS keys when it starts. To enable that in your Java version, you would have to download the Java Cryptography Extension (JCE) Unlimited Strength policies and copy them to your Java home manually to allow AES keys of size 256 and larger. These policies were only included by default in the JDK starting from update 1.8.0_162.
So, you have two options to make this work:
Once you do one of the above, clean up the directories of your previous attempts and try again with the steps that I copied below:
wget "https://downloads.apache.org/nifi/1.15.3/nifi-1.15.3-bin.tar.gz" -P .
tar -zxvf ./nifi-1.15.3-bin.tar.gz
cd nifi-1.15.3
./bin/nifi.sh set-single-user-credentials admin supersecret1
./bin/nifi.sh start
Please let us know if it works this time 😉
Cheers,
André
--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Created 03-09-2022 05:43 PM
Created 03-02-2022 01:35 AM
Here's your actual error:
2022-02-27 23:08:20,716 WARN [main] o.a.nifi.security.util.SslContextFactory Some truststore properties are populated (./conf/truststore.p12, ********, PKCS12) but not valid 2022-02-27 23:08:20,717 ERROR [main] o.apache.nifi.controller.FlowController Unable to start the flow controller because the TLS configuration was invalid: The truststore properties are not valid
Ensure that you have generated certificates (SSL in your case, i assume). Add them to the truststore.jks of your Nifi instance (default location: ./conf/). Also, ensure the truststore and keystore properties in nifi.properties is accurately updated.
This should help i guess.
Thanks
snm1523
Created 03-02-2022 09:49 PM
Hi @snm1523
Thanks for the reply.
Could you tell me in more detail how to get the generated certificates? and I do not see truststore and keystone properties in nifi.properties.
Created 03-08-2022 07:04 AM
Hi @CookieCream,
Should guide you on how do we get certificates generated.
Once you have this followed and certs generated, you will have a new nifi.properties created that will include truststore and keystore related properties.
I have not tried anything on MacOS, but, I did saw there are some specific instructions for MacOS.
Have a look
Thanks
snm1523
Created 03-08-2022 12:51 PM
@snm1523 ,
It should not be necessary to manually generate certificates. In the latest version, NiFi does that automatically when you start it for the first time.
Andre
Created 03-09-2022 01:28 AM
Thank you Andre. Wasn't aware. Actually I had used the steps mentioned in my reply during installation of Nifi. So thought might be useful in this case.
Thanks
Sunil