Member since
01-20-2017
8
Posts
3
Kudos Received
0
Solutions
01-24-2017
07:25 PM
Hi Aldrin,
Thanks for your response! I understood that there is some work under way considering this path. In the mean time, Could you please help me with NiFi APIs/Commands to export xml templates from one instance and import them to second instance . I can add them to my docker file so as to store exported templates at default location which is different from /opt/nifi/conf/templates.
... View more
01-23-2017
05:31 PM
@Aldrin Piri Thanks for your comment!
i got your point to put these templates under host templates dir and mount that as docker volume. But i would need to create new instances on different hosts. That mean i will have to copy/paste templates to all hosts. Instead it would be better to keep templates within docker image and add them to /opt/nifi/conf/templates during image build. Can you please help to suggest me in this direction. 1. new docker instance should have some previously created templates. Say abc.xml 2. create new templates in nifi instance say xyz.xml (dont know the default storage location of newly created template.) 3. docker stop nifi 4. docker start nifi (Should come up with abc.xml & xyz.xml templates.)
... View more
01-22-2017
08:41 PM
Dear Experts,
Is it fine to copy existing templates under /opt/nifi/conf/templates though newly created templates does not get stored under /opt/nifi/conf/templates which could be the reason why my nifi docker doesnt start up after docker stop nifi.
Rerunning docker from image will delete my newly created templates.
docker run -d --name nifi -p 7777-7778:7777-7778 nifia
Am i following the right approach?
I have attached my Dockerfile and run.py in above post. Please have a quick look and suggest to proceed further.
... View more
01-20-2017
08:06 PM
3 Kudos
I am creating a NiFi Docker image wherein in am copying existing xml templates under /opt/nifi/conf/templates
When i start this Docker container with following command it starts the instance and display all existing templates. docker run -d --name nifi -p 7777-7778:7777-7778 nifia
But when i execute docker stop nifi and docker start nifi , it starts the container but it does not display the UI and container automatically stops after 5-7 minutes.
Find attached file containing my dockerfile and templates. Please help to sort out this mistery. nifi.tar.gz
... View more
Labels:
- Labels:
-
Apache NiFi
-
Docker
01-20-2017
03:49 PM
Hi Sunile,
Thanks for sharing the docker file. I have created my own docker file and running it on openstack VM following same docker run concept.
docker run -it --rm -p 8080-8081:8080-8081 sunileman/nifi1.1.0
It takes 7 minutes to open nifi GUI. Unable to understand why initialization takes so long ? Once docker container is started. I am doing docker stop nifi. it stops the container. Now docker start nifi start the container as i can check using docker ps. but i could not launch my nifi GUI and container vanishes after 7 minutes.
"
Attached herewith my Dockerfile and supporting script. nifi.tar.gz
... View more