Community Articles
Find and share helpful community-sourced technical articles
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Labels (1)

SYMPTOM: Ranger plugin is enabled for HIVE. Restarting HIVE service its not able to start and stucking on below error


2015-10-15 13:02:51,683 - u"File['/var/lib/ambari-agent/data/tmp/ojdbc6.jar']" {'content': DownloadSource('')} 

2015-10-15 13:02:51,796 - Not downloading the file from, because /var/lib/ambari-agent/data/tmp/oracle-jdbc-driver.jar already exists 

2015-10-15 13:02:51,996 - call['hdp-select status hadoop-client'] {'timeout': 20}


Ranger Hive policies http url calls were taking forever to return results Ranger makes a lot of calls to urllib2.urlopen(request) that don't have a timeout in Ambari 2.0 Opened Ambari BUG to put time=5 in the file.



1) Edit /usr/lib/python2.6/site-packages/resource-management/libraries/functions/ and copy to all host to be safe (only Hive nodes)

all urllib2.urlopen(request) do urllib2.urlopen(request, timeout=5)

2) Delete duplicate x_group_users - MYSQL

Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
2 of 2
Last update:
‎02-16-2020 10:25 PM
Updated by:
Top Kudoed Authors