Hadoop : JPS can not find Java installed

前端 未结 11 1852
一生所求
一生所求 2021-01-03 14:48

my configurations are

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


        
相关标签:
11条回答
  • 2021-01-03 15:27

    For java 8 in ubuntu use the following command. sudo apt install openjdk-8-jdk-headless

    0 讨论(0)
  • 2021-01-03 15:32

    For Hadoop, Oracle JDK 6 preferred, I am not sure if someone has used OpenJDK with Hadoop successfully without any patches. FYI, there had been some talks about support for JDK 7 also. For now, there is too much dependency on Oracle JDK. Hope the dependency goes away soon.

    0 讨论(0)
  • 2021-01-03 15:33

    I would like to update topic for those who would face the same problem.

    JDK8 also does not have the "jps" command but JDK7 does have it.

    root@tahirpc:/home/tahir# java -version
    java version "1.7.0_65"
    OpenJDK Runtime Environment (IcedTea 2.5.3) (**7u71-2.5.3-0ubuntu0.14.04.1**)
    OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
    

    root@tahirpc:~# jps
    5036 NodeManager
    4368 NameNode
    4912 ResourceManager
    5315 Jps
    4773 SecondaryNameNode
    4487 DataNode
    
    0 讨论(0)
  • 2021-01-03 15:36

    This might also be a reason. Its simple: See if $javac works. Note: $java might work, check javac. If $javac is not working then $jps will not work either. So you might want to do something like

    export PATH=$PATH:$JAVA_HOME/bin

    and try again. both javac and jps. good luck.

    0 讨论(0)
  • 2021-01-03 15:36

    Open syneptics package manager and install openjdk-7-jdk and openjdk-6-jdk package. AFter that jps will work

    0 讨论(0)
提交回复
热议问题