mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
Fix bug in CLI that required sasl module to be installed even if not using Kerberos
This commit is contained in:
committed by
Henry Robinson
parent
231b66f37f
commit
42b9e96ce1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user