Skip to main content

How to Resolve Host not found

Error Message: OS encounters 'Host not found'

Problem Cause:
When the operating system encounters the 'Host not found' error message, it means the DNS resolution failed to retrieve the IP address associated with the domain name. Therefore, we need to change the DNS to use Google DNS.
Solution:
Method 1 / Spark Shell:
Enter the following command in the Spark shell to resolve the issue:

Click on the Spark shell icon in the top right corner
Open Hive shell
image
Enter the command:

echo nameserver 168.95.1.1 > /etc/resolv.conf && echo nameserver 8.8.8.8 >> /etc/resolv.conf  

Method 2 / Run Command:
You can run commands using the 'Run command' option in the upper right corner
image
Enter the command and then run it

If you have any other questions, please message the fan page customer service at https://m.me/gpumine.org .