Browse Source

AMBARI-10011 - Restarting HBase with Ranger Enabled Does Not Log Proper Exception (jonathanhurley)

Jonathan Hurley 10 năm trước cách đây
mục cha
commit
7d8b92234a

+ 1 - 1
ambari-common/src/main/python/resource_management/libraries/functions/ranger_functions.py

@@ -122,7 +122,7 @@ class Rangeradmin:
     except urllib2.URLError, e:
     except urllib2.URLError, e:
       if isinstance(e, urllib2.HTTPError):
       if isinstance(e, urllib2.HTTPError):
         Logger.error("HTTP Code: {0}".format(e.code))
         Logger.error("HTTP Code: {0}".format(e.code))
-        Logger.error("HTTP Data: {0}".foramt(e.read()))
+        Logger.error("HTTP Data: {0}".format(e.read()))
       else:
       else:
         Logger.error("Error: {0}".format(e.reason))
         Logger.error("Error: {0}".format(e.reason))
       return None
       return None