NiFi Setup & Configuration Guide Complete reference for Apache NiFi 1.25.0 installation and management
🚀 NiFi Setup & Configuration Guide
Complete reference for Apache NiFi 1.25.0 installation and management
⚙️ Basic Commands
Service Management
cd /mnt/c/nifi-1.25.0
./bin/nifi.sh start
./bin/nifi.sh stop
./bin/nifi.sh status
Password Management
Find generated credentials or set your own:
grep -i 'password\|initial security' logs/nifi-app.log
./bin/nifi.sh set-single-user-credentials admin MyPassword123!
🔧 Configuration Profiles
Profile 1: HTTP Development Mode
No Authentication Port 8080URL: http://localhost:8080/nifi
nifi.web.http.host=0.0.0.0
nifi.web.http.port=8080
Profile 2: HTTPS Production Mode
With Authentication Port 8443URL: https://localhost:8443/nifi
nifi.web.https.host=0.0.0.0
nifi.web.https.port=8443
nifi.security.user.authorizer=single-user-authorizer
🔒 HTTPS Configuration
Step: Generate SSL Certificates
keytool -genkeypair -alias nifi-key -keyalg RSA -keysize 2048 \
-keystore conf/keystore.jks -storepass changeit -keypass changeit \
-dname "CN=localhost, OU=NiFi, O=Apache, L=Melbourne, ST=VIC, C=AU"
🔍 Troubleshooting
Issue: Port already in use
Solution: Identify the process using sudo netstat -tulpn | grep 8443
📋 Quick Reference
| Action | Command |
|---|---|
| Start | ./bin/nifi.sh start |
| Logs | tail -f logs/nifi-app.log |
| Admin User | admin |
Comments
Post a Comment