Do you have JAVA_HOME set?
Karl

On Wed, Oct 9, 2019 at 5:01 AM Priya Arora <pr...@smartshore.nl> wrote:

> Hi All,,
>
> Getting this below error while accessing run zookeeper file  to run multi
> process zookeeper process inside docker comnatiner
>
> root@67d5fbd824c4:/usr/share/manifoldcf/multiprocess-zk-example# sh
> runzookeeper.sh
> runzookeeper.sh: 18: runzookeeper.sh: [[: not found
> executecommand.sh: 18: executecommand.sh: [[: not found
>
> Can somebody suggest why am i getting this error.
>
> Thanks
> Priya
>
> On Wed, Oct 9, 2019 at 1:58 PM Priya Arora <pr...@smartshore.nl> wrote:
>
> > Hi All,
> >
> > Any suggestions would be really helpful.
> >
> > Thanks and regards
> > Priya
> >
> > On Thu, Oct 3, 2019 at 10:33 AM Priya Arora <pr...@smartshore.nl> wrote:
> >
> >> Hi Cihad,
> >>
> >> *Do you run all scripts in only one docker container or multiple*?- I
> >> have tried with the approach of creating one sh file(which includes
> call to
> >> all other required sh files to start multiprocess)
> >> *I think these scripts should run in separate containers.  :-*Does
> >> that mean to have 6 different container's for all 6 sh files.
> >>
> >> * I recommend to use mysql or postgresql instead of
> >> start-database[.sh|.bat]* :- I am using postgres as database, and
> >> defined configuration settings in properties-global.xml, so will the
> >> database starts from this file and do need to start start-database.sh
> file.
> >>
> >> *Some docker related config settings are as below:-*
> >>
> >> RUN wget
> >>
> http://apache.mirror.rafal.ca/manifoldcf/apache-manifoldcf-${MANIFOLDCF_VERSION}/apache-manifoldcf-${MANIFOLDCF_VERSION}-bin.tar.gz
> >> && \
> >>     wget
> >>
> https://maven.forgerock.org/repo/repo/eu/agno3/jcifs/jcifs-ng/${CIFS_VERSION}/jcifs-ng-${CIFS_VERSION}.jar
> >> && \
> >>     tar -xzvf apache-manifoldcf-${MANIFOLDCF_VERSION}-bin.tar.gz && \
> >>     cp -R apache-manifoldcf-${MANIFOLDCF_VERSION} /usr/share/manifoldcf
> >> && \
> >>     cp jcifs-ng-${CIFS_VERSION}.jar
> >> /usr/share/manifoldcf/connector-lib-proprietary
> >>
> >> EXPOSE 8345
> >>
> >> WORKDIR /usr/share/manifoldcf/multiprocess-zk-example
> >> COPY config/mf/multiprocess/sh.sh
> >> /usr/share/manifoldcf/multiprocess-zk-example
> >>
> >> CMD [config/mf/multiprocess/sh.sh start]
> >> ,
> >> *sh.sh :- is file that includes all  other file to call.*
> >> #!/bin/bash
> >> sh /usr/share/manifoldcf/multiprocess-zk-example/runzookeeper.sh
> >> sh /usr/share/manifoldcf/multiprocess-zk-example/setglobalproperties.sh
> >> sh /usr/share/manifoldcf/multiprocess-zk-example/start-database.sh
> >> sh /usr/share/manifoldcf/multiprocess-zk-example/initialize.sh
> >> sh /usr/share/manifoldcf/multiprocess-zk-example/start-agents.sh
> >> sh /usr/share/manifoldcf/multiprocess-zk-example/start-agents-2.sh
> >> sh /usr/share/manifoldcf/multiprocess-zk-example/start-webapps.sh
> >>
> >>
> >> Any suggestion would be really helpful.
> >>
> >> Thanks and regards
> >> Priya
> >>
> >> On Tue, Oct 1, 2019 at 7:25 PM Cihad Guzel <cguz...@gmail.com> wrote:
> >>
> >>> Hi Priya,
> >>>
> >>> Do you run all scripts in only one docker container or multiple? How do
> >>> you
> >>> use it? I think these scripts should run in separate containers.
> >>>
> >>> There is not a single command to run multiprocess-zk-example. Maybe you
> >>> can
> >>> run manifoldcf in a single process example. I recommend to use mysql or
> >>> postgresql instead of start-database[.sh|.bat]  if you want to use on
> >>> production environment.
> >>>
> >>> Your container restart problem is related that your scripts in the
> >>> container is terminated. If the script is terminated, the docker
> >>> container
> >>> is stopped and it can start again. Please check your Dockerfile, docker
> >>> run
> >>> command and the runnable script in the container.
> >>>
> >>> You should give more details about that your scripts and Dockerfile for
> >>> more comments.
> >>>
> >>> Kind Regards,
> >>> Cihad Guzel
> >>>
> >>> Priya Arora <pr...@smartshore.nl>, 1 Eki 2019 Sal, 15:10 tarihinde
> şunu
> >>> yazdı:
> >>>
> >>> > Hi All,
> >>> >
> >>> > I am trying to run multi-process zookeeper process inside a docker
> >>> > container.
> >>> > Do we need to follow all steps to run multi process:-
> >>> >
> >>> >    1.  *runzookeeper[.sh|.bat]* script)
> >>> >    2.  *setglobalproperties[.sh|.bat]*)
> >>> >    3. *start-database[.sh|.bat]*)
> >>> >    4.  *initialize[.sh|.bat]*)
> >>> >    5.  *start-agents[.sh|.bat]*, and optionally
> >>> *start-agents-2[.sh|.bat]*)
> >>> >    6. *start-webapps[.sh|.bat]*)
> >>> >
> >>> > Is there any single command to run multi process ,as inside
> dockerfile
> >>> we
> >>> > can configure one command to start up.
> >>> > I have tried the approach to create a single sh/jar file that is
> >>> calling
> >>> > all the required(mentioned above) sh files. but its getting the
> >>> conatiner
> >>> > in restart mode.(every 1,2 minutes)
> >>> > Has any body tried the approach to configure multi process
> environment
> >>> > inside docker container.
> >>> >
> >>> > Also i manually followed the path and started runzookeeper.sh file
> >>> inside
> >>> > docker container but its not progressing after:-
> >>> > main] INFO org.apache.zookeeper.server.NIOServerCnxnFactory - binding
> >>> to
> >>> > port 0.0.0.0/0.0.0.0:8349
> >>> >
> >>> > Can anybody suggest on how to proceed.
> >>> >
> >>> > Thanks and regards
> >>> > Priya
> >>> >
> >>>
> >>
>

Reply via email to