The following command can be used to change the username and password:
$ ./bin/nifi.sh set-single-user-credentials <username> <password>