Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

NIFI registry Windows install

Solved Go to solution
Highlighted

NIFI registry Windows install

Explorer

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] o.a.n.r.security.crypto.CryptoKeyLoader 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\nifi-registry.properties 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>(NiFiRegistry.java:97) ~[nifi-registry-runtime-0.1.0.jar:0.1.0] at org.apache.nifi.registry.NiFiRegistry.main(NiFiRegistry.java:158) ~[nifi-registry-runtime-0.1.0.jar:0.1.0] Caused by: java.lang.ClassNotFoundException: org.apache.nifi.registry.util.FileUtils at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_161] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_161] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) ~[na:1.8.0_161] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[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).

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: NIFI registry Windows install

@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

3 REPLIES 3
Highlighted

Re: NIFI registry Windows install

@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

Highlighted

Re: NIFI registry Windows install

@vishal dutt

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

Highlighted

Re: NIFI registry Windows install

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/nifi-registry.sh 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")
ws.run "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

Don't have an account?
Coming from Hortonworks? Activate your account here