Pivotal Knowledge Base


Hive Services Fail to Start giving Error: "HTTP Error 404: Not Found"


 Product  Version
 Pivotal HD  2.4.x
 Ambari   2.2.x


Hiveserver2 service fails to start from Ambari.

Hive MetaStore service fails to start from Ambari.

Error Message from Ambari WebUI

Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/common-services/HIVE/", line 185, in <module>
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute
File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line 51, in __call__
return self.get_content()
File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line 195, in get_content
raise Fail("Failed to download file from {0} due to HTTP error: {1}".format(self.url, str(ex)))
resource_management.core.exceptions.Fail: Failed to download file from https://bdl8node01.isus.emc.com:8443/resources//postgres-jdbc-driver.jar due to HTTP error: HTTP Error 404: Not Found
stdout: /var/lib/ambari-agent/data/output-477.txt


For some unknown reason, a symbolic link postgres-jdbc-driver.jar was removed from the directory of /var/lib/amvari-server/resources/. It is possible it got removed by mistake during a cluster maintenance.


1. Identify the JDBC driver (.jar) file from the Ambari server node:

# locate postgresql | grep jdbc | grep jar

2. Make a symbolic link of "postgres-jdbc-driver.jar" under /var/lib/ambari-server/resources and make it pointing to the identified file:

# cd /var/lib/ambari-server/resources/
# ln -s /usr/lib/ambari-server/postgresql-9.3-1101-jdbc4.jar postgres-jdbc-driver.jar

3. Restart the related Hive services from Ambari.



Powered by Zendesk