You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by deepakkhattar <de...@hotmail.com> on 2016/01/27 10:12:16 UTC

QuorumPeerMain not listed in JPS

Hi,

I have setup 3 node zookeeper cluster, 1 leader and 2 follers start without
any issue. But jps is not listing Quorumpeermai. When I check server status
via
zkServer.sh status it works on all the nodes. Creation on znodes using zkCli
is woring fine and is replicated to other node all 

Pleas suggest how to trouble shoot the issue.

regards

deepa



--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/QuorumPeerMain-not-listed-in-JPS-tp7581949.html
Sent from the zookeeper-user mailing list archive at Nabble.com.

Re: QuorumPeerMain not listed in JPS

Posted by Chris Nauroth <cn...@hortonworks.com>.
Hello,

As described earlier in this thread, the output of jps can be limited by
permission restrictions.  Is it possible that your QuorumPeerMain process
is running with a different user ID from the logged-in user running the
jps command?

Beyond that, I'm not sure that we'll be able to provide more help.  This
is more a question of the behavior of jps than a ZooKeeper question.

--Chris Nauroth




On 3/18/16, 7:44 AM, "quangdaihua" <da...@gmail.com> wrote:

>I got the same problem. I have added the existing account to become root.
>But
>after installed Zookeeper following  the manual instructions. When I check
>JPS the only I got show on the screen was: xxxx Jps.
>
>when used: sudo jps -lm. Can see the QuorumPeerMain.
>
>How to solve that problem. It took me 2 days.
>Anyone, please. HELP?
>
>
>
>--
>View this message in context:
>http://zookeeper-user.578899.n2.nabble.com/QuorumPeerMain-not-listed-in-JP
>S-tp7581949p7582175.html
>Sent from the zookeeper-user mailing list archive at Nabble.com.
>


Re: QuorumPeerMain not listed in JPS

Posted by quangdaihua <da...@gmail.com>.
I got the same problem. I have added the existing account to become root. But
after installed Zookeeper following  the manual instructions. When I check
JPS the only I got show on the screen was: xxxx Jps.

when used: sudo jps -lm. Can see the QuorumPeerMain.

How to solve that problem. It took me 2 days. 
Anyone, please. HELP? 



--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/QuorumPeerMain-not-listed-in-JPS-tp7581949p7582175.html
Sent from the zookeeper-user mailing list archive at Nabble.com.

Re: QuorumPeerMain not listed in JPS

Posted by Chris Nauroth <cn...@hortonworks.com>.
This is a quote from the man page for jps [1].

"The list of JVMs produced by the jps command may be limited by the
permissions granted to the principal running the command. The command will
only list the JVMs for which the principle has access rights as determined
by operating system specific access control mechanisms."

If the ZooKeeper processes were started by a user different from your
currently logged-in user, then that could explain why they are not in the
jps output.  That also would explain why running with sudo would make
those processes visible.


--Chris Nauroth

[1] https://docs.oracle.com/javase/7/docs/technotes/tools/share/jps.html



On 1/27/16, 9:15 AM, "Vikrant Singh" <vi...@gmail.com> wrote:

>I faced this issue as well, but when I ran the same command with "sudo" it
>listed the process. worth trying.
>[vikrant@somebox ~]$ sudo jps -lm
>27867 sun.tools.jps.Jps -lm
>12046 org.apache.zookeeper.server.quorum.QuorumPeerMain
>/home/y/conf/zookeeper/zookeeper.cfg
>[vikrant@somebox~]$ jps -l
>27883 sun.tools.jps.Jps
>[vikrant@somebox ~]$
>
>
>On Wed, Jan 27, 2016 at 7:21 AM, Ted Yu <yu...@gmail.com> wrote:
>
>> Have you tried using 'ps' command and searching for QuorumPeerMain ?
>>
>> Cheers
>>
>> On Wed, Jan 27, 2016 at 1:12 AM, deepakkhattar
>><deepak_khattar@hotmail.com
>> >
>> wrote:
>>
>> > Hi,
>> >
>> > I have setup 3 node zookeeper cluster, 1 leader and 2 follers start
>> without
>> > any issue. But jps is not listing Quorumpeermai. When I check server
>> status
>> > via
>> > zkServer.sh status it works on all the nodes. Creation on znodes using
>> > zkCli
>> > is woring fine and is replicated to other node all
>> >
>> > Pleas suggest how to trouble shoot the issue.
>> >
>> > regards
>> >
>> > deepa
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> >
>> 
>>http://zookeeper-user.578899.n2.nabble.com/QuorumPeerMain-not-listed-in-J
>>PS-tp7581949.html
>> > Sent from the zookeeper-user mailing list archive at Nabble.com.
>> >
>>


Re: QuorumPeerMain not listed in JPS

Posted by Vikrant Singh <vi...@gmail.com>.
I faced this issue as well, but when I ran the same command with "sudo" it
listed the process. worth trying.
[vikrant@somebox ~]$ sudo jps -lm
27867 sun.tools.jps.Jps -lm
12046 org.apache.zookeeper.server.quorum.QuorumPeerMain
/home/y/conf/zookeeper/zookeeper.cfg
[vikrant@somebox~]$ jps -l
27883 sun.tools.jps.Jps
[vikrant@somebox ~]$


On Wed, Jan 27, 2016 at 7:21 AM, Ted Yu <yu...@gmail.com> wrote:

> Have you tried using 'ps' command and searching for QuorumPeerMain ?
>
> Cheers
>
> On Wed, Jan 27, 2016 at 1:12 AM, deepakkhattar <deepak_khattar@hotmail.com
> >
> wrote:
>
> > Hi,
> >
> > I have setup 3 node zookeeper cluster, 1 leader and 2 follers start
> without
> > any issue. But jps is not listing Quorumpeermai. When I check server
> status
> > via
> > zkServer.sh status it works on all the nodes. Creation on znodes using
> > zkCli
> > is woring fine and is replicated to other node all
> >
> > Pleas suggest how to trouble shoot the issue.
> >
> > regards
> >
> > deepa
> >
> >
> >
> > --
> > View this message in context:
> >
> http://zookeeper-user.578899.n2.nabble.com/QuorumPeerMain-not-listed-in-JPS-tp7581949.html
> > Sent from the zookeeper-user mailing list archive at Nabble.com.
> >
>

Re: QuorumPeerMain not listed in JPS

Posted by Ted Yu <yu...@gmail.com>.
Have you tried using 'ps' command and searching for QuorumPeerMain ?

Cheers

On Wed, Jan 27, 2016 at 1:12 AM, deepakkhattar <de...@hotmail.com>
wrote:

> Hi,
>
> I have setup 3 node zookeeper cluster, 1 leader and 2 follers start without
> any issue. But jps is not listing Quorumpeermai. When I check server status
> via
> zkServer.sh status it works on all the nodes. Creation on znodes using
> zkCli
> is woring fine and is replicated to other node all
>
> Pleas suggest how to trouble shoot the issue.
>
> regards
>
> deepa
>
>
>
> --
> View this message in context:
> http://zookeeper-user.578899.n2.nabble.com/QuorumPeerMain-not-listed-in-JPS-tp7581949.html
> Sent from the zookeeper-user mailing list archive at Nabble.com.
>