Skip to main content
glad1
Gold ⭐️
February 20, 2023
Solved

How to update username and password in Apache NiFi Windows ?

is there anyway to change username and credential for Nifi in Windows ? 
there is a command in Documentation to change it but I guess it works only in Linux

glad1
glad1Answer
Gold ⭐️
February 23, 2023

Thanks. Everything works fine after restarting my PC

2 replies

cotopaul
Platinum ⭐️
February 22, 2023

Well you have two sets of files, one for windows and one for linux. If you go ahead and open the nifi.cmd File, you can see that you can run the file with the arguments set-single-user-credentials and with the username and password in quotes:
nifi.cmd set-single-user-credentials "username" "password"

if %RUN_COMMAND% == "set-single-user-credentials" (
rem Set credentials with quoted arguments passed to Java command
set "CREDENTIALS=^"%~2^" ^"%~3^""

 

Translate
glad1
glad1AuthorAnswer
Gold ⭐️
February 23, 2023

Thanks. Everything works fine after restarting my PC

Translate