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

Function run_impala_shell_cmd_no_expect

tests/shell/util.py:143–160  ·  view source on GitHub ↗

Runs the Impala shell on the commandline. 'shell_args' is a string which represents the commandline options. Returns a ImpalaShellResult. Does not assert based on success or failure of command.

(vector, shell_args, env=None, stdin_input=None,
                                   wait_until_connected=True, stdout_file=None,
                                   stderr_file=None)

Source from the content-addressed store, hash-verified

141
142
143def run_impala_shell_cmd_no_expect(vector, shell_args, env=None, stdin_input=None,
144 wait_until_connected=True, stdout_file=None,
145 stderr_file=None):
146 """Runs the Impala shell on the commandline.
147
148 'shell_args' is a string which represents the commandline options.
149 Returns a ImpalaShellResult.
150
151 Does not assert based on success or failure of command.
152 """
153 # Only wait_until_connected if we also have input to send. Otherwise expect that
154 # the command will run without input and exit. Avoid waiting as ImpalaShell may
155 # exit before it can detect there is a successful connection and assert False.
156 p = ImpalaShell(vector, shell_args, env=env,
157 wait_until_connected=wait_until_connected and stdin_input,
158 stdout_file=stdout_file, stderr_file=stderr_file)
159 result = p.get_result(stdin_input)
160 return result
161
162
163def get_impalad_host_port(vector):

Callers 2

test_wildcard_san_sslMethod · 0.90
run_impala_shell_cmdFunction · 0.85

Calls 2

get_resultMethod · 0.95
ImpalaShellClass · 0.70

Tested by 1

test_wildcard_san_sslMethod · 0.72