How to persist nifi flowfiles by using docker-compose?Docker Compose vs. Dockerfile - which is better?Using Docker-Compose, how to execute multiple commandsHow to restart a single container with docker-composeDocker Compose wait for container X before starting YWhat is the difference between docker and docker-composeDocker-Compose persistent data MySQLWhat is the difference between docker-compose ports vs exposeApache NIFI Install failed as Ambari service - Configuration parameter 'kafka_broker_hosts' was not found in configurations dictionaryApache NiFi stream into InfluxDBIPFIX Streams processing using Apache NiFi

Can an Aarakocra use a shield while flying?

Genetic limitations to learn certain instruments

At what point in time did Dumbledore ask Snape for this favor?

Soft question: Examples where lack of mathematical rigour cause security breaches?

1980s live-action movie where individually-coloured nations on clouds fight

Confusion about off peak timings of London trains

Why would future John risk sending back a T-800 to save his younger self?

Do simulator games use a realistic trajectory to get into orbit?

Compiling c files on ubuntu and using the executable on Windows

An average heaven where everyone has sexless golden bodies and is bored

Why did the Tesseract "burn" a hole through Red Skull's plane but not Nick Fury's desk?

Winning Strategy for the Magician and his Apprentice

What should the arbiter and what should have I done in this case?

Should I avoid hard-packed crusher dust trails with my hybrid?

C++ Arduino IDE receiving garbled `char` from function

Is it a problem if <h4>, <h5> and <h6> are smaller than regular text?

Thread Pool C++ Implementation

English word for "product of tinkering"

How does an ordinary object become radioactive?

What makes an item an artifact?

What is the origin of the German "n-Deklination"?

Does an ice chest packed full of frozen food need ice?

Is counterpoint still used today?

Source that a married woman seduced by a “messianic figure” is still permitted to her husband



How to persist nifi flowfiles by using docker-compose?


Docker Compose vs. Dockerfile - which is better?Using Docker-Compose, how to execute multiple commandsHow to restart a single container with docker-composeDocker Compose wait for container X before starting YWhat is the difference between docker and docker-composeDocker-Compose persistent data MySQLWhat is the difference between docker-compose ports vs exposeApache NIFI Install failed as Ambari service - Configuration parameter 'kafka_broker_hosts' was not found in configurations dictionaryApache NiFi stream into InfluxDBIPFIX Streams processing using Apache NiFi






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















right now I'm using nifi and its processors for some streaming stuff (mqtt listener, json evaluating, text replacement, write into db ...).
I'm trying to persist the flowfiles and therefore I did some volume mapping (see below).
But it doesn't work; after restarting the container it seems the flowfiles arent't saved ...



Could anybody give me a hint how to solve that problem?



nifi:
image: apache/nifi
restart: on-failure
ports:
- "8000:8000"
networks:
- traefik
environment:
- NIFI_WEB_HTTP_PORT=8000
volumes:
- nifi_conf:/opt/nifi/conf
- nifi_state:/data/nifi/state
- nifi_db:/opt/nifi/database_repository
- nifi_flowfile:/opt/nifi/flowfile_repository
- nifi_content:/opt/nifi/content_repository
- nifi_provenance:/opt/nifi/provenance_repository


volumes:
nifi_provenance:
nifi_flowfile:
nifi_content:
nifi_db:
nifi_state:
nifi_conf:


Thanks.










share|improve this question




























    0















    right now I'm using nifi and its processors for some streaming stuff (mqtt listener, json evaluating, text replacement, write into db ...).
    I'm trying to persist the flowfiles and therefore I did some volume mapping (see below).
    But it doesn't work; after restarting the container it seems the flowfiles arent't saved ...



    Could anybody give me a hint how to solve that problem?



    nifi:
    image: apache/nifi
    restart: on-failure
    ports:
    - "8000:8000"
    networks:
    - traefik
    environment:
    - NIFI_WEB_HTTP_PORT=8000
    volumes:
    - nifi_conf:/opt/nifi/conf
    - nifi_state:/data/nifi/state
    - nifi_db:/opt/nifi/database_repository
    - nifi_flowfile:/opt/nifi/flowfile_repository
    - nifi_content:/opt/nifi/content_repository
    - nifi_provenance:/opt/nifi/provenance_repository


    volumes:
    nifi_provenance:
    nifi_flowfile:
    nifi_content:
    nifi_db:
    nifi_state:
    nifi_conf:


    Thanks.










    share|improve this question
























      0












      0








      0


      0






      right now I'm using nifi and its processors for some streaming stuff (mqtt listener, json evaluating, text replacement, write into db ...).
      I'm trying to persist the flowfiles and therefore I did some volume mapping (see below).
      But it doesn't work; after restarting the container it seems the flowfiles arent't saved ...



      Could anybody give me a hint how to solve that problem?



      nifi:
      image: apache/nifi
      restart: on-failure
      ports:
      - "8000:8000"
      networks:
      - traefik
      environment:
      - NIFI_WEB_HTTP_PORT=8000
      volumes:
      - nifi_conf:/opt/nifi/conf
      - nifi_state:/data/nifi/state
      - nifi_db:/opt/nifi/database_repository
      - nifi_flowfile:/opt/nifi/flowfile_repository
      - nifi_content:/opt/nifi/content_repository
      - nifi_provenance:/opt/nifi/provenance_repository


      volumes:
      nifi_provenance:
      nifi_flowfile:
      nifi_content:
      nifi_db:
      nifi_state:
      nifi_conf:


      Thanks.










      share|improve this question














      right now I'm using nifi and its processors for some streaming stuff (mqtt listener, json evaluating, text replacement, write into db ...).
      I'm trying to persist the flowfiles and therefore I did some volume mapping (see below).
      But it doesn't work; after restarting the container it seems the flowfiles arent't saved ...



      Could anybody give me a hint how to solve that problem?



      nifi:
      image: apache/nifi
      restart: on-failure
      ports:
      - "8000:8000"
      networks:
      - traefik
      environment:
      - NIFI_WEB_HTTP_PORT=8000
      volumes:
      - nifi_conf:/opt/nifi/conf
      - nifi_state:/data/nifi/state
      - nifi_db:/opt/nifi/database_repository
      - nifi_flowfile:/opt/nifi/flowfile_repository
      - nifi_content:/opt/nifi/content_repository
      - nifi_provenance:/opt/nifi/provenance_repository


      volumes:
      nifi_provenance:
      nifi_flowfile:
      nifi_content:
      nifi_db:
      nifi_state:
      nifi_conf:


      Thanks.







      docker-compose apache-nifi






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 24 at 16:32









      T_FT_F

      121




      121






















          2 Answers
          2






          active

          oldest

          votes


















          3














          you could map docker container folders directly to the host machine like this:



          services:
          nifi:
          ...
          volumes:
          - ./conf:/opt/conf
          - ./nifi_state:/data/nifi/state
          ...


          no additional volume definition required



          note that under windows with virtualbox this feature works only in the current user directory.






          share|improve this answer






























            0














            Alternatively you could only use docker-compose stop instead of docker-compose down which will not remove your container and thus keeping the volumes mounted.



            This means you do not have to do any mapping of volumes and can just use this basic docker-compose file:



            version: '2'
            services:
            futa-nifi-lsc:
            environment:
            - NIFI_WEB_HTTP_PORT=9000
            image: apache/nifi:1.8.0
            volumes:
            - ./jdbc_driver:/opt/jdbc_driver
            - ./checkin_files:/opt/checkin_files
            - ./truststore:/opt/truststore
            ports:
            - "9000:9000"


            For more information read this article here.






            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55325999%2fhow-to-persist-nifi-flowfiles-by-using-docker-compose%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3














              you could map docker container folders directly to the host machine like this:



              services:
              nifi:
              ...
              volumes:
              - ./conf:/opt/conf
              - ./nifi_state:/data/nifi/state
              ...


              no additional volume definition required



              note that under windows with virtualbox this feature works only in the current user directory.






              share|improve this answer



























                3














                you could map docker container folders directly to the host machine like this:



                services:
                nifi:
                ...
                volumes:
                - ./conf:/opt/conf
                - ./nifi_state:/data/nifi/state
                ...


                no additional volume definition required



                note that under windows with virtualbox this feature works only in the current user directory.






                share|improve this answer

























                  3












                  3








                  3







                  you could map docker container folders directly to the host machine like this:



                  services:
                  nifi:
                  ...
                  volumes:
                  - ./conf:/opt/conf
                  - ./nifi_state:/data/nifi/state
                  ...


                  no additional volume definition required



                  note that under windows with virtualbox this feature works only in the current user directory.






                  share|improve this answer













                  you could map docker container folders directly to the host machine like this:



                  services:
                  nifi:
                  ...
                  volumes:
                  - ./conf:/opt/conf
                  - ./nifi_state:/data/nifi/state
                  ...


                  no additional volume definition required



                  note that under windows with virtualbox this feature works only in the current user directory.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 25 at 10:21









                  daggettdaggett

                  10.5k21632




                  10.5k21632























                      0














                      Alternatively you could only use docker-compose stop instead of docker-compose down which will not remove your container and thus keeping the volumes mounted.



                      This means you do not have to do any mapping of volumes and can just use this basic docker-compose file:



                      version: '2'
                      services:
                      futa-nifi-lsc:
                      environment:
                      - NIFI_WEB_HTTP_PORT=9000
                      image: apache/nifi:1.8.0
                      volumes:
                      - ./jdbc_driver:/opt/jdbc_driver
                      - ./checkin_files:/opt/checkin_files
                      - ./truststore:/opt/truststore
                      ports:
                      - "9000:9000"


                      For more information read this article here.






                      share|improve this answer



























                        0














                        Alternatively you could only use docker-compose stop instead of docker-compose down which will not remove your container and thus keeping the volumes mounted.



                        This means you do not have to do any mapping of volumes and can just use this basic docker-compose file:



                        version: '2'
                        services:
                        futa-nifi-lsc:
                        environment:
                        - NIFI_WEB_HTTP_PORT=9000
                        image: apache/nifi:1.8.0
                        volumes:
                        - ./jdbc_driver:/opt/jdbc_driver
                        - ./checkin_files:/opt/checkin_files
                        - ./truststore:/opt/truststore
                        ports:
                        - "9000:9000"


                        For more information read this article here.






                        share|improve this answer

























                          0












                          0








                          0







                          Alternatively you could only use docker-compose stop instead of docker-compose down which will not remove your container and thus keeping the volumes mounted.



                          This means you do not have to do any mapping of volumes and can just use this basic docker-compose file:



                          version: '2'
                          services:
                          futa-nifi-lsc:
                          environment:
                          - NIFI_WEB_HTTP_PORT=9000
                          image: apache/nifi:1.8.0
                          volumes:
                          - ./jdbc_driver:/opt/jdbc_driver
                          - ./checkin_files:/opt/checkin_files
                          - ./truststore:/opt/truststore
                          ports:
                          - "9000:9000"


                          For more information read this article here.






                          share|improve this answer













                          Alternatively you could only use docker-compose stop instead of docker-compose down which will not remove your container and thus keeping the volumes mounted.



                          This means you do not have to do any mapping of volumes and can just use this basic docker-compose file:



                          version: '2'
                          services:
                          futa-nifi-lsc:
                          environment:
                          - NIFI_WEB_HTTP_PORT=9000
                          image: apache/nifi:1.8.0
                          volumes:
                          - ./jdbc_driver:/opt/jdbc_driver
                          - ./checkin_files:/opt/checkin_files
                          - ./truststore:/opt/truststore
                          ports:
                          - "9000:9000"


                          For more information read this article here.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Apr 3 at 12:52









                          wedererwederer

                          124111




                          124111



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55325999%2fhow-to-persist-nifi-flowfiles-by-using-docker-compose%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                              용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

                              155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해