我如何设置有效的主机名以避免出现此异常
Caused by: com.google.protobuf.ServiceException: java.net.UnknownHostException: Invalid host name: local host is: (unknown); destination host is: ""fatima-HP-ProBook-4520s":8042; java.net.UnknownHostException;
答案1
我认为这是一个单节点安装
您需要将 localhost 的主机名映射到 IP,如下所示 /etc/hosts 中的内容
127.0.0.1 localhost localhost.localdomain fatima-HP-ProBook-4520s 127.0.1.1 fatima-HP-ProBook-4520s