Get introduction message for start-up. The last character should not be a return.
(options)
| 2160 | |
| 2161 | |
| 2162 | def 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 | |
| 2191 | def _validate_hs2_fp_format_specification(format_specification): |