- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Nifi 1.14 asks for username and password on Windows
- Labels:
-
Apache NiFi
Created 07-15-2021 05:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Created 07-16-2021 10:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
Created 07-15-2021 06:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created on 07-16-2021 09:32 AM - edited 07-16-2021 09:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created 07-16-2021 09:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Cy Jervis, Manager, Community Program
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Created 07-16-2021 10:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, but the documentation has not yet been updated to version 1.14.
Created 07-16-2021 10:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
Created 07-16-2021 11:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cy Jervis, Manager, Community Program
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Created 07-31-2021 07:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
An additional note for anyone coming here that isn't seeing the Generated Username/Password log entries (for example on Docker), you can set those by running bin/nifi.sh set-single-user-credentials <Username> <Password>.
Created 01-11-2022 08:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I'm trying to set user, password for single user login then its not working.
./nifi.sh set-single-user-credentials admin admin1234567
Created 01-17-2022 02:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
From within this path:
(change version to your own)
/usr/local/Cellar/nifi/1.15.2/libexec/
Be sure to have it as follows:
bin/nifi.sh set-single-user-credentials "admin" "admin1234567"
