Files
impala/shell/impala_shell_config_defaults.py
Abdullah Yousufi cc517a26d5 IMPALA-1126: Remove strict unicode mode flag in shell
Removed the the --strict_unicode command-line option flag
because encoding to utf-8 is the same regardless if the
encoding policy is strict or ignore.

Change-Id: If71062d580072c51acb1bb401471ca818c97a9be
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3725
Reviewed-by: Abdullah Yousufi <abdullah.yousufi@cloudera.com>
Tested-by: jenkins
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4078
2014-08-27 22:27:42 -07:00

43 lines
1.4 KiB
Python

#!/usr/bin/env python
# Copyright 2014 Cloudera Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# defaults for OptionParser options stored in dict
import getpass
import os
import socket
impala_shell_defaults = {
'impalad': socket.getfqdn() + ':21000',
'query': None,
'query_file': None,
'use_kerberos': False,
'output_file': None,
'write_delimited': False,
'print_header': False,
'output_delimiter': '\\t',
'kerberos_service_name': 'impala',
'verbose': True,
'show_profiles': False,
'version': False,
'ignore_query_failure': False,
'refresh_after_connect': False,
'default_db': None,
'use_ldap': False,
'user': getpass.getuser(),
'ssl': False,
'ca_cert': None,
'config_file': os.path.expanduser("~/.impalarc")
}