Questions & Answers:
Question1: jps not found:
the edition of the java in not correct:
If you use the apt, you could use apt-cache search openjdk-8
then you could get a series of name like:
openjdk-8-jdk
openjdk-8-jdk-headless
previously I "apt install openjdk-8-jdk-headless " and set the os' environment
then when I try to use jps, it will say that jps not found.
then I typed" apt install openjdk-8-jdk"
it solved.
when I type jps
it will show the process numbers and program/like
15073 Da ctaNode
17313 Jps
so forth.
And I tested it on anotther machine, I found both of the "apt install openjdk-8-jdk" and "apt install openjdk-8-jdk-headless" are needed.
Question 2:
It looks like you are making HTTP request to a Hadoop IPC port. This is not the correct port for the web interface on this daemon.
How to solve it?
use $hdfs getconf -confKey dfs.namenode.http-address
then use localhost:9870
what if hdfs not found?
use source /etc/profile
then it will work:
How my profile looks like:
use $vim /etc/profile
The fact is that if your shut down the terminal and restart the terminal again, seems that you have to retype the $source /etc/profile to make sure the path to be added again.