MCPcopy Create free account
hub / github.com/apache/impala / get_intro

Function get_intro

shell/impala_shell/impala_shell.py:2162–2188  ·  view source on GitHub ↗

Get introduction message for start-up. The last character should not be a return.

(options)

Source from the content-addressed store, hash-verified

2160
2161
2162def get_intro(options):
2163 """Get introduction message for start-up. The last character should not be a return."""
2164 if not options.verbose:
2165 return ""
2166
2167 intro = WELCOME_STRING
2168
2169 if not options.ssl and options.creds_ok_in_clear and options.use_ldap:
2170 intro += ("\n\nLDAP authentication is enabled, but the connection to Impala is "
2171 "not secured by TLS.\nALL PASSWORDS WILL BE SENT IN THE CLEAR TO IMPALA.")
2172
2173 if not options.ssl and options.creds_ok_in_clear and options.use_jwt:
2174 intro += ("\n\nJWT authentication is enabled, but the connection to Impala is "
2175 "not secured by TLS.\nALL JWTs WILL BE SENT IN THE CLEAR TO IMPALA.")
2176
2177 if not options.ssl and options.creds_ok_in_clear and options.use_oauth:
2178 intro += ("\n\nOAUTH authentication is enabled, but the connection to Impala is "
2179 "not secured by TLS.\nALL OAUTHs WILL BE SENT IN THE CLEAR TO IMPALA.")
2180
2181 if options.protocol == 'beeswax':
2182 intro += ("\n\nWARNING: The beeswax protocol is deprecated and will be removed in a "
2183 "future version of Impala.")
2184 if options.hs2_fp_format:
2185 intro += ("\n\nWARNING: Formatting floating-point values is "
2186 "not supported with Beeswax protocol")
2187
2188 return intro
2189
2190
2191def _validate_hs2_fp_format_specification(format_specification):

Callers 1

impala_shell_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected