Fix bug in CLI that required sasl module to be installed even if not using Kerberos

This commit is contained in:
Lenni Kuff
2012-10-13 00:26:13 -07:00
committed by Henry Robinson
parent 231b66f37f
commit 42b9e96ce1

View File

@@ -15,7 +15,6 @@ from beeswaxd.BeeswaxService import QueryState
from ImpalaService import ImpalaService
from ImpalaService.ImpalaService import TImpalaQueryOptions
from JavaConstants.constants import DEFAULT_QUERY_OPTIONS
from thrift_sasl import TSaslClientTransport
from thrift.transport.TSocket import TSocket
from thrift.transport.TTransport import TBufferedTransport, TTransportException
from thrift.protocol import TBinaryProtocol
@@ -478,6 +477,7 @@ if __name__ == "__main__":
(options, args) = parser.parse_args()
if options.use_kerberos:
from thrift_sasl import TSaslClientTransport
import sasl
if options.query or options.query_file:
execute_queries_non_interactive_mode(options)