Re: Multiprocess-ZK- Inside a docker container(linux)

2019-10-10 Thread Karl Wright
There is nothing special about running in Docker.  Something in your setup
is just incorrect.
Karl

On Thu, Oct 10, 2019 at 2:26 AM Priya Arora  wrote:

> I have tested the working of multiprocess_zk_example outside the docker,
> it's working fine. But has anybody implemented the way to run all process
> of multi process inside docker.
>
> On Thu, Oct 10, 2019 at 11:32 AM Karl Wright  wrote:
>
>> Well, I confirmed that the multiprocess_zk example scripts work fine
>> outside of docker.  You'll have to debug why it's not working for you I'm
>> afraid.
>>
>> Karl
>>
>>
>> On Thu, Oct 10, 2019 at 12:56 AM Priya Arora  wrote:
>>
>>> Yes , it is same, checked again
>>> [image: image.png]
>>>
>>> On Wed, Oct 9, 2019 at 8:06 PM Karl Wright  wrote:
>>>
 JAVA_HOME should point to the jdk root, not to the bin/java directory.
 Karl

 On Wed, Oct 9, 2019 at 10:32 AM Priya Arora 
 wrote:

> Yes JAVA_HOME , has been set as usr/local/openjdk-8/bin/java, as the
> docker image of Java is based on openjdk
>
>
> > On 09-Oct-2019, at 7:57 PM, Karl Wright  wrote:
> >
>



Re: Multiprocess-ZK- Inside a docker container(linux)

2019-10-10 Thread Priya Arora
I have tested the working of multiprocess_zk_example outside the docker,
it's working fine. But has anybody implemented the way to run all process
of multi process inside docker.

On Thu, Oct 10, 2019 at 11:32 AM Karl Wright  wrote:

> Well, I confirmed that the multiprocess_zk example scripts work fine
> outside of docker.  You'll have to debug why it's not working for you I'm
> afraid.
>
> Karl
>
>
> On Thu, Oct 10, 2019 at 12:56 AM Priya Arora  wrote:
>
>> Yes , it is same, checked again
>> [image: image.png]
>>
>> On Wed, Oct 9, 2019 at 8:06 PM Karl Wright  wrote:
>>
>>> JAVA_HOME should point to the jdk root, not to the bin/java directory.
>>> Karl
>>>
>>> On Wed, Oct 9, 2019 at 10:32 AM Priya Arora  wrote:
>>>
 Yes JAVA_HOME , has been set as usr/local/openjdk-8/bin/java, as the
 docker image of Java is based on openjdk


 > On 09-Oct-2019, at 7:57 PM, Karl Wright  wrote:
 >

>>>


Re: Multiprocess-ZK- Inside a docker container(linux)

2019-10-10 Thread Karl Wright
Well, I confirmed that the multiprocess_zk example scripts work fine
outside of docker.  You'll have to debug why it's not working for you I'm
afraid.

Karl


On Thu, Oct 10, 2019 at 12:56 AM Priya Arora  wrote:

> Yes , it is same, checked again
> [image: image.png]
>
> On Wed, Oct 9, 2019 at 8:06 PM Karl Wright  wrote:
>
>> JAVA_HOME should point to the jdk root, not to the bin/java directory.
>> Karl
>>
>> On Wed, Oct 9, 2019 at 10:32 AM Priya Arora  wrote:
>>
>>> Yes JAVA_HOME , has been set as usr/local/openjdk-8/bin/java, as the
>>> docker image of Java is based on openjdk
>>>
>>>
>>> > On 09-Oct-2019, at 7:57 PM, Karl Wright  wrote:
>>> >
>>>
>>


Re: Multiprocess-ZK- Inside a docker container(linux)

2019-10-09 Thread Priya Arora
Yes , it is same, checked again
[image: image.png]

On Wed, Oct 9, 2019 at 8:06 PM Karl Wright  wrote:

> JAVA_HOME should point to the jdk root, not to the bin/java directory.
> Karl
>
> On Wed, Oct 9, 2019 at 10:32 AM Priya Arora  wrote:
>
>> Yes JAVA_HOME , has been set as usr/local/openjdk-8/bin/java, as the
>> docker image of Java is based on openjdk
>>
>>
>> > On 09-Oct-2019, at 7:57 PM, Karl Wright  wrote:
>> >
>>
>


Re: Multiprocess-ZK- Inside a docker container(linux)

2019-10-09 Thread Karl Wright
JAVA_HOME should point to the jdk root, not to the bin/java directory.
Karl

On Wed, Oct 9, 2019 at 10:32 AM Priya Arora  wrote:

> Yes JAVA_HOME , has been set as usr/local/openjdk-8/bin/java, as the
> docker image of Java is based on openjdk
>
>
> > On 09-Oct-2019, at 7:57 PM, Karl Wright  wrote:
> >
>


Re: Multiprocess-ZK- Inside a docker container(linux)

2019-10-09 Thread Priya Arora
Yes JAVA_HOME , has been set as usr/local/openjdk-8/bin/java, as the docker 
image of Java is based on openjdk


> On 09-Oct-2019, at 7:57 PM, Karl Wright  wrote:
> 


Re: Multiprocess-ZK- Inside a docker container(linux)

2019-10-09 Thread Karl Wright
Do you have JAVA_HOME set?
Karl


On Wed, Oct 9, 2019 at 5:01 AM Priya Arora  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  wrote:
>
> > Hi All,
> >
> > Any suggestions would be really helpful.
> >
> > Thanks and regards
> > Priya
> >
> > On Thu, Oct 3, 2019 at 10:33 AM Priya Arora  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  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 , 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 

Re: Multiprocess-ZK- Inside a docker container(linux)

2019-10-02 Thread Priya Arora
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  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 , 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
> >
>


Multiprocess-ZK- Inside a docker container(linux)

2019-10-01 Thread Priya Arora
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