hadoop jps 没有命令,Hadoop:不能使用Jps命令

博客内容指出,用户在Hadoop环境下运行jps命令时遇到了问题,提示找不到jps程序。解决方案是将JPS添加到系统路径或者创建别名。JPS可从$JAVA_HOME/bin/jps路径获取。如果不需要使用JPS,可以使用'ps aux | grep java'作为替代方法来查看Java进程。
摘要由CSDN通过智能技术生成

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

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 ;)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值