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
For java 8 in ubuntu use the following command. sudo apt install openjdk-8-jdk-headless
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.
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
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.
Open syneptics package manager and install openjdk-7-jdk
and openjdk-6-jdk
package. AFter that jps will work