[main] net.DNS: Unable to determine address of the host-falling back to "localhost" address 解决方案

问题出处:虚拟机Ubuntu在安装Hbase单节点时遇到这问题

解决方案:

1.先查看下/etc/hostname 下的name(假设这里的内容是master,便于我下面的操作)

 cat /etc/hostname

2.编辑/etc/hosts 的内容,添加xxxx.xxxx.xxxx.xxxx    master(xxxx.xxxx.xxxx.xxxx是你虚拟机的ip,可以通过ifconfig查看,master是你在hostname中查到的东东)

sudo vim /etc/hosts

小编就是这么完美解决的。

猜你喜欢

转载自blog.csdn.net/WJWFighting/article/details/82081286
今日推荐