Skip to main content
GabrielNifi
Gold ⭐️
Jul 15, 2021 12:12 PM UTC
Solved

Nifi 1.14 asks for username and password on Windows

My environment is testing on Windows 10. I installed version 1.14 and started. The chrome 91.0.4472.124 says it is not secure and I confirm to go to the site "https://localhost:8443/" not secure. The address changes to "https://localhost:8443/nifi/login" and asks for username and password. What username and password should I use? Where can I generate this username and password?

GabrielNifi
Gold ⭐️
Jul 16, 2021 5:33 PM UTC

Solution:

 

https://github.com/apache/nifi

 

"

Authenticating

The default configuration generates a random username and password on startup. NiFi writes the generated credentials to the application log located in logs/nifi-app.log under the NiFi installation directory.

The following command can be used to find the generated credentials on operating systems with grep installed:

laptop:nifi-1.0.0-SNAPSHOT myuser$ grep Generated logs/nifi-app*log

NiFi logs the generated credentials as follows:

Generated Username [USERNAME]
Generated Password [PASSWORD]

"

File Explorer > Nifi Folder > "logs" Folder > Edit "nifi-app.log" > Search "Generated Username"

 

10 replies

GabrielNifi
Gold ⭐️
Jul 15, 2021 1:25 PM UTC

GabrielNifi_0-1626355599232.png

 

Translate
GabrielNifi
Gold ⭐️
Jul 16, 2021 4:32 PM UTC

In this video, at 3:01 time, we see username and password is being automatically generated on Nifi 1.14 Linux. On Windows, this doesn't happen. Also, we have "nifi.sh" only for Linux. There is no "nifi.bat" to generate username and password, yet.

 

https://www.youtube.com/watch?v=h503MibiENY

Translate
cjervis
Community Manager
Community Manager
Jul 16, 2021 4:42 PM UTC

Hi @GabrielNifi,

 

I'm not an expert but I did locate a section on windows under "How to install and start NiFi" in the NiFi System Administrator’s Guide. Hopefully it holds the answer for you. 

Translate
Keep the questions coming