Support Questions

Find answers, ask questions, and share your expertise
Celebrating as our community reaches 100,000 members! Thank you!

NIFI registry Windows install


I have downloaded NIFI registry from hortonworks website. I am installed on windows 10.I am getting below error when trying to execute run-nifi-registry.bat

2018-03-22 13:51:26,814 INFO [main] org.apache.nifi.registry.NiFiRegistry Launching NiFi Registry... 2018-03-22 13:51:26,814 INFO [main] org.apache.nifi.registry.NiFiRegistry Read property protection key from conf/bootstrap.conf 2018-03-22 13:51:26,861 INFO [main] No encryption key present in the bootstrap.conf file at C:\Users\Vdutt\Downloads\nifi_regis\nifi-registry-0.1.0-bin.tar\nifi-registry-0.1.0-bin\nifi-registry-0.1.0\conf\bootstrap.conf 2018-03-22 13:51:26,877 INFO [main] o.a.n.r.p.NiFiRegistryPropertiesLoader Loaded 26 properties from C:\Users\Vdutt\Downloads\nifi_regis\nifi-registry-0.1.0-bin.tar\nifi-registry-0.1.0-bin\nifi-registry-0.1.0\conf\ 2018-03-22 13:51:26,885 INFO [main] org.apache.nifi.registry.NiFiRegistry Loaded 26 properties 2018-03-22 13:51:26,886 INFO [main] org.apache.nifi.registry.NiFiRegistry NiFi Registry started without Bootstrap Port information provided; will not listen for requests from Bootstrap 2018-03-22 13:51:26,889 ERROR [main] org.apache.nifi.registry.NiFiRegistry Failure to launch NiFi Registry due to java.lang.NoClassDefFoundError: org/apache/nifi/registry/util/FileUtils java.lang.NoClassDefFoundError: org/apache/nifi/registry/util/FileUtils at org.apache.nifi.registry.NiFiRegistry.<init>( ~[nifi-registry-runtime-0.1.0.jar:0.1.0] at org.apache.nifi.registry.NiFiRegistry.main( ~[nifi-registry-runtime-0.1.0.jar:0.1.0] Caused by: java.lang.ClassNotFoundException: org.apache.nifi.registry.util.FileUtils at ~[na:1.8.0_161] at java.lang.ClassLoader.loadClass( ~[na:1.8.0_161] at sun.misc.Launcher$AppClassLoader.loadClass( ~[na:1.8.0_161] at java.lang.ClassLoader.loadClass( ~[na:1.8.0_161] ... 2 common frames omitted 2018-03-22 13:51:26,891 INFO [Thread-1] org.apache.nifi.registry.NiFiRegistry Initiating shutdown of Jetty web server... 2018-03-22 13:51:26,891 INFO [Thread-1] org.apache.nifi.registry.NiFiRegistry Jetty web server shutdown completed (nicely or otherwise).



@vishal dutt

NiFi registry is not supported on Windows at this point in time. Please have a look at NiFi Registry Admin Guide for more details

View solution in original post



@vishal dutt

NiFi registry is not supported on Windows at this point in time. Please have a look at NiFi Registry Admin Guide for more details

@vishal dutt

Did the answer help in the resolution of your query? Please close the thread by marking the answer as Accepted!

New Contributor

I am using Nifi Registry installed on Windows Server and Windows 10

It works good from WSL (Ubuntu, Debian) on Windows 10. Or on Windows Server 2016 I used cygwin (there is no WSL on this server version)

1) I added in .bash_profile in WSL or cygwin commands to export path of Java and start Nifi Registry on boot
For example for cygwin:



export JAVA_HOME=/cygdrive/c/'Program Files'/Java/jdk1.8.0_261 
export PATH=$JAVA_HOME/bin:$PATH 
/cygdrive/d/nifi-registry-0.7.0/bin/ start



(cygwin use the same java folder as windows system)

2) And than saved a .vbs script to run cygwin on Windows boot:



Set ws = CreateObject("Wscript.Shell") "c:\cygwin64\cygwin.bat", vbhide



3) And put this script to autorun folder in Windows:
win + R -> shell:startup

So now after Windows boot cygwin starting on background with Nifi Registry on board  

I also tried to find the way how to run cygwin with nssm but it was unsuccessfully