Support Questions
Find answers, ask questions, and share your expertise

Fail: Failed to download file from http://ip-172-31-9-148.us-west-1.compute.internal:8080/resources//mysql-connector-java.jar due to HTTP error: HTTP Error 404: Not Found

Fail: Failed to download file from http://ip-172-31-9-148.us-west-1.compute.internal:8080/resources//mysql-connector-java.jar due to HTTP error: HTTP Error 404: Not Found

 
4 REPLIES 4
Highlighted

Re: Fail: Failed to download file from http://ip-172-31-9-148.us-west-1.compute.internal:8080/resources//mysql-connector-java.jar due to HTTP error: HTTP Error 404: Not Found

Contributor
Highlighted

Re: Fail: Failed to download file from http://ip-172-31-9-148.us-west-1.compute.internal:8080/resources//mysql-connector-java.jar due to HTTP error: HTTP Error 404: Not Found

Mentor

@vivekananda chagam

That's definitely a networking issue.You are using the internal Private IP .. ip-172-31-9-148 which is can't access the internet you should try the Public DNS Public IP and if not download from your laptop and use WinSCP to transfer it to one of the nodes.

You could give and restrict access to ONLY one node in the cluster to access the internet then SCP the mysql-connector-java.jar to the desired hosts.

Hope that helps.

Highlighted

Re: Fail: Failed to download file from http://ip-172-31-9-148.us-west-1.compute.internal:8080/resources//mysql-connector-java.jar due to HTTP error: HTTP Error 404: Not Found

INFO 2018-03-26 04:59:24,672 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'ip-172-31-15-165.us-west-1.compute.internal' using socket.getfqdn().
ERROR 2018-03-26 04:59:24,672 main.py:244 - Ambari agent machine hostname (ip-172-31-15-165.us-west-1.compute.internal) does not match expected ambari server hostname (ec2-54-153-3-119.us-west-1.compute.amazonaws.com). Aborting registration. Please check hostname, hostname -f and /etc/hosts file to confirm your hostname is setup correctly
INFO 2018-03-26 04:59:24,673 ExitHelper.py:56 - Performing cleanup before exiting...
", None)

Connection to ec2-54-153-3-119.us-west-1.compute.amazonaws.com closed.screenshot-16.png
Highlighted

Re: Fail: Failed to download file from http://ip-172-31-9-148.us-west-1.compute.internal:8080/resources//mysql-connector-java.jar due to HTTP error: HTTP Error 404: Not Found

Super Mentor

@vivekananda chagam

FQDN setup is one of the mose important prerequisite for clusters managed by amabri.

.

Please make sure that all your hosts including the ambari server host are having correct FQDN defined and the following command on ever host shows their correct FQDN

# hostname -f

.

Please check the hosts file of every machine if they are able to determine each other using the FQDN?

# cat /etc/hosts

.

Following link shows how we can ensure FQDN setup. https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-installation-ppc/content/collect_...

1. https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-installation-ppc/content/edit_the...

2. https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-installation-ppc/content/set_the_...

3. https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-installation-ppc/content/edit_the...

.

Don't have an account?