Hadoop: Cannot use Jps command

前端 未结 7 2055
被撕碎了的回忆
被撕碎了的回忆 2020-12-14 11:10

The problem is

  hduser@saket-K53SM:/usr/local/hadoop$ jps
  The program \'jps\' can be found in the following packages:
  * openjdk-6-jdk
  * openjdk-7-jdk
         


        
7条回答
  •  隐瞒了意图╮
    2020-12-14 11:31

    That is actually not a Hadoop problem. Hadoop does not use JPS.

    If JPS can't be found, you have to put it into your path or create an alias. The JPS executable can be found under $JAVA_HOME/bin/jps.

    The alias for example could be:

    alias jps='/usr/lib/jvm/jdk1.6.0_33/bin/jps'
    

    Or if you don't care about using JPS, you could instead do a

    ps aux | grep java
    

    which will approx. give you the same result ;)

提交回复
热议问题