Nifi won't start - apache-nifi

Can't get NiFi to even start, I think I've made a really obvious mistake, but there is no bin folder immedietly in the directory that I unzipped, which I downloaded from here
The file structure in the folder that I have is like this:
Clearly have a bit of a stupid problem, appreciate the help.
There is a bin folder nested away in nifi-nar-bundles, but the .bat doesn't run.

You need to download the binary zip or tar, not the source zip.
https://www.apache.org/dyn/closer.lua?path=/nifi/1.5.0/nifi-1.5.0-bin.tar.gz
or
https://www.apache.org/dyn/closer.lua?path=/nifi/1.5.0/nifi-1.5.0-bin.zip

Bryan has provided the simplest solution. However, if you are interested in building it from source, you can use Apache Maven to compile the source code you have downloaded into an executable application. The complete steps are here, but in summary:
Open a command prompt in this directory
Ensure Maven >= 3.1.0 and Java 8 are installed
Run the command mvn clean install -T2.0C -DskipTests (clean and install this application with 2 threads per core and skip running unit and integration tests)
When the build is complete, change the directory to nifi-assembly\target\nifi-1.5.0-bin\nifi-1.5.0\
You will now see the bin, conf, lib, logs, etc. directories
Run bin\nifi.bat start to start NiFi

Related

zipping on docker-remote-microsoft/dotnet/sdk6.0 bash

Somewhat new to docker so please bear with me. I'm working on a cicd pipeline, moving from building dotnet core 5.0 on a powershell image to building dotnet core 6.0 on an image with the bash shell microsoft-dotnet-sdk/dotnet/sdk:6.0 (https://hub.docker.com/_/microsoft-dotnet-sdk). I'd like to compress a the bin folder after the code is compiled.
Previously the contents of the compiled bin folder were zipped up using the powershell command Compress-Archive-Path. I'd like to do the same on the new build step, so the other existing steps in the deployment that are expecting a zipped file just work.
However, I'm unsure of the commands or other software I may need to put on the docker image. The "zip" utility I'd usually use on a unix box doesn't seem to be installed, or the path is something I don't expect.
The build service is isolated from the internet, but with minimal administrative steps I can put a package our local artifactory server. But I'm not sure of the commands (apt-get, yum, something else) to use or where to find a package I can setup and use (e.g. I'm pretty sure a zipped copy of the zip utility isn't going to help me).
Thanks!

How to check maven installed in Drools machine

I have installed Drools in my machine and we have m2 repository in our linux machine. Does that mean maven installed in my machine.
If type mvn -v its saying command not found.
I am new to this maven. Kindly help me out
Drools is a library. It does not "install". You add it as a dependency to a Java project. If you "installed" something, it's not Drools. Perhaps it's jBPM or some other application which uses Drools.
Maven is a toolchain. When you install it, the zip file includes a binary that you need to put on your path. That binary (mvn) allows you to run from the commandline.
The two are not related in any way.
If you get an error when trying to run mvn -v that the command is not recognized, that means that the Maven binary is not on your path. Find where you installed Maven, locate the 'bin' directory in that installation, and add that bin directory to your Path environment variable.
If you did not install Maven, and therefore don't have an install directory, you probably want to go do that. Don't forget to put the bin directory on your path after installing.
(A less common way of using Maven involves packaging a mvn.cmd or mvn.sh script with your project itself so that you don't need to have Maven installed globally. If this is what you're doing instead, you need to run the mvn command from the same directory as that script.)

freeswitch noob cant build solution

im just starting out with FreeSwitch, i downloaded via git, and am trying to build in VS
all i need i believe are the dlls of mod_managed, as my goal is to manage FS via .net
but i get 248 errors, most look something like this:
Error 5 error C1083: Cannot open source file: '....\jpeg-8d\jaricom.c': No such file or directory D:\FreeSwitch\freeswitch\libs\win32\libjpeg\c1 libjpeg
btw, i searched windows and cannot find any such file anywhere on my pc.
I tried
cleaning the solution first, but it did not help
moving the file to a path without spaces
downloading with autocrlf=false
building on another machine
but none of these steps helped
anybody have any idea?
if i can just download the dlls i need, i wouldnt mind skipping this step altogether
environment
win 8 64bit
visual studio 2012
thanks a million
The libjpeg sources are not in the git sources but are normally downloaded during the build process. If you build the entire solution that should not be a problem since it has the project dependencies set: libjpeg.2012 depends on Download libjpg.2012, which means the latter gets built before the first. All Download libjpg.2012 is run a cscript which downloads libjpeg from http://www.ijg.org/files/jpegsrc.v8d.tar.gz (see inside the project file).
So if you do not have the sources, either you are building incorrectly (not in VS for instance, or with a broken solution file) or the download script is broken. In that case, you should inspect the output: I assume it shows errors when it can not download the libs.

CreateProcess error=2, The system cannot find the file specified Roo

I'm busy doing the Pizza Tutorial and when ever I get to the perform tests command I get the above error. I checked Windows Path and added all the necessary links to the STS file. I am at a loss. This is the fourth time I have tried this tutorial and get stuck at this command. Please help, it is frustrating me.
In case someone stumbles upon this problem again, recent versions of maven for windows renamed the executable to mvn.cmd while Spring Roo expects mvn.bat to be there. Just copy mvn.cmd and rename the copy to mvn.bat and the perform commands should work.
Check that you have Maven installed and that it's included in your PATH.
(the "perform" commands in Roo Console are actually invoking Maven)

Maven - Filename too Long on Unzip

I'm having a hell of a time installing maven 3.
I have the 3.0.4 source zip. I can't extract it, though, or I get a filename too long error on multiple jars in the zip. I'm running Windows 7.
I can't find ANYTHING about this anywhere else, and I'm starting to wonder if maybe I just have no idea how to install maven in the first place, not that there's something wrong with the zip.
I just ran into the same problem using windows 7 and trying to unzip the source zip from their official website. To solve the problem I just followed ptyx's comment. Instead of using C:/Program Files/Apache Software Foundation (like their site suggests) I just used C:/Maven
You can 'fix' this by copying the archive in the root of one of your partitions, and then unarchive it into a folder in the same location.

Resources