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.

Has anyone installed the minifi C2 ( command and control ) . I need some steps to get this working. Do we have an installation document for this.

Solved Go to solution

Re: Has anyone installed the minifi C2 ( command and control ) . I need some steps to get this working. Do we have an installation document for this.

Expert Contributor

Hey @Raymond Honderdors .. all good mate. This issue is now fixed. I had to rename my template to have the suffix .v1. I ignored that which is why I wasnt getting the config.yml . Its all sorted now and its working fine.

Thanks again for all your help

Re: Has anyone installed the minifi C2 ( command and control ) . I need some steps to get this working. Do we have an installation document for this.

New Contributor

Hi Abhinav,Did u receive below error while working on above implementation

o.a.n.m.b.c.i.PullHttpChangeIngestor Hit an exception while trying to pull java.net.ConnectException: Failed to connect to /127.0.0.1:10080

Re: Has anyone installed the minifi C2 ( command and control ) . I need some steps to get this working. Do we have an installation document for this.

Expert Contributor

@Vipin Chourasia I reckon this might be a firewall issue or something . I remember seeing something like this and then realized the firewall wasnt opened between the C2 server and the Minifi server

Re: Has anyone installed the minifi C2 ( command and control ) . I need some steps to get this working. Do we have an installation document for this.

New Contributor

I checked both the windows system ,firewall is open .checked by using ping coomand.

Re: Has anyone installed the minifi C2 ( command and control ) . I need some steps to get this working. Do we have an installation document for this.

New Contributor

Hi Abhinav, I am doing the same POC connect MINIFI NIFI using minifi c2 .Could you please guide us on this .As of now we have done minifi to nifi connectivity-Receiving data to nifi end , generated from minifi agent but now have to use minifi c2 controller.Please help buddy.

What i have understood Minifi c2 and nifi should be in same machine and minifi in another machine(windows)

then did some configuration changes and try to run minifi c2 but getting error .

I am following below link

https://medium.freecodecamp.org/building-an-iiot-system-using-apache-nifi-mqtt-and-raspberry-pi-ce1d...

Re: Has anyone installed the minifi C2 ( command and control ) . I need some steps to get this working. Do we have an installation document for this.

New Contributor

I follow the steps.

1. downloaded minif c2 server in windows where my nifi is running.

2.created a template using nifi ui with name given examplename iot-minifi-raspberry-agent.v1

3.changed minifi c2 property port -8080 (i was also getting port 10080 is already in use)

4.changed minifi-c2-context.xml property

----> <constructor-arg> <value>http://localhost:9090/nifi/</value> </constructor-arg> in this url my nifi is working,so this only changed

5.my minifi is running in different windows machine there i changed bootstrap property like below

---------------------------------------*****--------------

# Hostname on which to pull configurations from

nifi.minifi.notifier.ingestors.pull.http.hostname=localhost

# Port on which to pull configurations from

nifi.minifi.notifier.ingestors.pull.http.port=8080

# Path to pull configurations from

minifi.notifier.ingestors.pull.http.path=/c2/config

# Query string to pull configurations with

nifi.minifi.notifier.ingestors.pull.http.query=class=iot-minifi-raspberry-agent ----// name of my template ?? should i use version also like .v1

# Period on which to pull configurations from, defaults to 5 minutes if commented out nifi.minifi.notifier.ingestors.pull.http.period.ms=60000

-----------------------------------*****-------------------

6.now all changes are done now checking whether my changes are done correctly by hitting below url --

http://localhost:8080/c2/config?class=iot-minifi-raspberry-agent.v1&version=1

I can see yml is showing but that is already present in minifi c2 -->files folder ,

how my template's yml will create.where i m doing wrong or my understanding is incorrect .Please help @Raymond Honderdors @Abhinav Joshi @Bryan Bende

Any help would be really appreciated.Thanks in advance


Highlighted

Re: Has anyone installed the minifi C2 ( command and control ) . I need some steps to get this working. Do we have an installation document for this.

Expert Contributor

Hi @Vipin Chourasia ..apologies , for not being able to respond earlier . I have prepared a document to go through all this . Its a big document , can you give me your email id . I will flick it through .. I also went through the same issues but now our C2 is working very well.

Re: Has anyone installed the minifi C2 ( command and control ) . I need some steps to get this working. Do we have an installation document for this.

New Contributor

Thanks for reply Abhinav.You can't imagine how much relax i am feeling now .I was chashing you from many days.even i have tried to contact Abdelkrim Hadjidj for https://medium.freecodecamp.org/building-an-iiot-system-using-apache-nifi-mqtt-and-raspberry-pi-ce1d... // Pls find my email id -vepin.chourasia@gmail.com.if any further issue Pls guide me.

The current status of my POC is - I am able to create data flow between minifi(more than 2 system )and NIFI but stuck in C2 server configuration. I have done setup in windows machine.Thanks again Abhi

Re: Has anyone installed the minifi C2 ( command and control ) . I need some steps to get this working. Do we have an installation document for this.

Expert Contributor

Hi @Vipin Chourasia . sorry mate . I know this is something that is very new and there is hardly any material out there . I also chased Abdelkrim :-) but didnt get any response. hahaha. Anyways .. sent you the document now. Have a read through