问题描述
问题是:
hduser @ saket -K53SM:/ usr / local / hadoop $ jps
程序'jps'可以在以下软件包中找到:
* openjdk-6-jdk
* openjdk-7-jdk
尝试:sudo apt-get install< selected package>
我的配置是
hduser @ saket-K53SM:/ usr / local / hadoop $ java -version
java版本1.6.0_33
Java™SE运行时环境(build 1.6.0_33- b04)
Java HotSpot™64位服务器虚拟机(构建20.8-b03,混合模式)
设置conf / hadoop-env.sh
hduser @ saket -K53SM:/ usr / local / hadoop $ cat conf / hadoop-env.sh | grep JAVA_HOME
#唯一需要的环境变量是JAVA_HOME。所有其他的都是
#在这个文件中设置JAVA_HOME,以便它在
上正确定义export JAVA_HOME = / usr / lib / jvm / jdk1.6.0_33 /
我知道有一个问题(http://stackoverflow.com/questions/7843422/hadoop-jps-can-not-find-java-安装)与此类似。
但是我在这里安装了Sun jdk。所以任何帮助将不胜感激。
这实际上不是Hadoop问题。 Hadoop不使用JPS。
如果找不到JPS,则必须将其放入路径或创建别名。
可以在 $ JAVA_HOME / bin / jps
下找到JPS可执行文件。
例如别名可以是:
$ b $ pre> alias jps ='/ usr / lib / jvm / jdk1.6.0_33 / bin / jps'
或者如果您不关心使用JPS,您可以改为使用
ps aux | grep java
给你相同的结果;)
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
Try: sudo apt-get install <selected package>
My configuration is
hduser@saket-K53SM:/usr/local/hadoop$ java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
set up conf/hadoop-env.sh
hduser@saket-K53SM:/usr/local/hadoop$ cat conf/hadoop-env.sh | grep JAVA_HOME
# The only required environment variable is JAVA_HOME. All others are
# set JAVA_HOME in this file, so that it is correctly defined on
export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_33/
I know there is a question (http://stackoverflow.com/questions/7843422/hadoop-jps-can-not-find-java-installed) similar to this one.But i have installed Sun jdk here. So any help would be appreciated..
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 ;)
这篇关于Hadoop:不能使用Jps命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!