rana@ubuntu:/usr/local/hadoop/hadoop-2.7.3/bin$ start-yarn.sh
starting yarn daemons
starting resourcemanager, logging to /usr/local/hadoop/hadoop-2.7.3/logs/yarn-rana-resourcemanager-ubuntu.out
localhost: starting nodemanager, logging to /usr/local/hadoop/hadoop-2.7.3/logs/yarn-rana-nodemanager-ubuntu.out
rana@ubuntu:/usr/local/hadoop/hadoop-2.7.3/bin$ jps
The program 'jps' can be found in the following packages:
* openjdk-8-jdk-headless
* openjdk-9-jdk-headless
Try: sudo apt install <selected package>
rana@ubuntu:/usr/local/hadoop/hadoop-2.7.3/bin$ sudo jps
sudo: jps: command not found
我正在尝试安装hadoop,最后我收到了jps命令找不到的错误
任何人都可以帮助我 谢谢
答案 0 :(得分:0)
您应该在环境文件中将JAVA_HOME/bin
地址添加到PATH,我的意思是bashrc
。因此,使用命令nano ~/.bashrc
打开环境文件,然后在文件末尾添加行export PATH=$JAVA_HOME/bin:$PATH
,并按control + x
保存。关闭文件后,使用命令source ~/.bashrc
编译文件并更新到新设置。现在JPS
命令将起作用!
答案 1 :(得分:0)
我有同样的问题,我通过输入以下内容解决了我的问题: -
sudo apt install openjdk-8-jdk-headless
希望这个有用:)