Hadoop: Cannot use Jps command

前端 未结 7 2054
被撕碎了的回忆
被撕碎了的回忆 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:15

    This problem is caused since you have installed JDK from Oracle (may be). You can fix this problem by using update-alternatives program to link jps to standard path directory. Use this command to fix this in a terminal

     sudo update-alternatives --install /usr/bin/jps jps /usr/lib/jvm/jdk1.6/bin/jps 1
    

    Use the actual jps program path in the appropriate jdk (your version of jdk) instead of jdk1.6 which is specific to me. Hope this will help.

提交回复
热议问题