hue 读取hive metastore错误 NameError: global name '_' is not defined
File "/opt/app/prog/hue-3.7.1/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/opt/app/prog/hue-3.7.1/apps/metastore/src/metastore/views.py", line 106, in show_tables
db = dbms.get(request.user)
File "/opt/app/prog/hue-3.7.1/apps/beeswax/src/beeswax/server/dbms.py", line 57, in get
DBMS_CACHE[user.username][query_server['server_name']] = HiveServer2Dbms(HiveServerClientCompatible(HiveServerClient(query_server, user)), QueryHistory.SERVER_TYPE[1][0])
File "/opt/app/prog/hue-3.7.1/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 307, in __init__
use_sasl, mechanism, kerberos_principal_short_name, impersonation_enabled, ldap_username, ldap_password = self.get_security()
File "/opt/app/prog/hue-3.7.1/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 369, in get_security
raise Exception(_('%s server authentication not supported. Valid are %s.' % (hive_mechanism, HiveServerClient.HS2_MECHANISMS.keys())))
NameError: global name '_' is not defined
请检查hive-site.xml配置。