#NEWLINE# def __init__( self , host , port , username ) : #NEWLINE# #INDENT# self . username = username #NEWLINE# self . host = host #NEWLINE# self . port = port #NEWLINE# self . security = self . _get_security ( ) #NEWLINE# self . client = thrift_util . get_client ( SentryPolicyService . Client , host , port , service_name = 'SentryPolicyService' , username = self . username , timeout_seconds = 30 , multiple = True , kerberos_principal = self . security [ 'kerberos_principal_short_name' ] , use_sasl = self . security [ 'use_sasl' ] , mechanism = self . security [ 'mechanism' ] )