Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

java, hadoop , hbase , jps not working in HDP 2.5.

avatar
New Contributor

hortonworks-hdp25-oraclevirtualbox.png

I checked in ambari HDFS is up and running, HBase is also up and running. But in hdp 2.5 sandbox , if type java or jps or hbase shell it shows nothing.

Kindly, help

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Jose Praveen T

Please check if you are able to run other commands like "hdfs" ? If not then it might be the problem in the way you did ssh to the sandbox.

Are you sure that you have ssh to the sandbox using port 2222 as following? (not any other port)
# ssh root@127.0.0.1  -p 2222

.

Also you can try using the http://127.0.0.1:4200 Web Terminal to see if you are getting this error in your browser terminal as well?

.

You can also try setting the JAVA_HOME and then see if jps/java works. You can find the JAVA path from the running NameNode/DataNode output as

# ps -ef | grep NameNode

Example:

export JAVA_HOME="/usr/jdk64/jdk1.7.0_67"
export PATH=$JAVA_HOME/bin:$PATH

.

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Jose Praveen T

Please check if you are able to run other commands like "hdfs" ? If not then it might be the problem in the way you did ssh to the sandbox.

Are you sure that you have ssh to the sandbox using port 2222 as following? (not any other port)
# ssh root@127.0.0.1  -p 2222

.

Also you can try using the http://127.0.0.1:4200 Web Terminal to see if you are getting this error in your browser terminal as well?

.

You can also try setting the JAVA_HOME and then see if jps/java works. You can find the JAVA path from the running NameNode/DataNode output as

# ps -ef | grep NameNode

Example:

export JAVA_HOME="/usr/jdk64/jdk1.7.0_67"
export PATH=$JAVA_HOME/bin:$PATH

.

avatar
New Contributor

I tried ssh for this port 22 rather 2222 port. Thanks for your help!!!