记录一下hadoop的常见错误

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值