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

Function get_shell_cmd

tests/shell/util.py:187–201  ·  view source on GitHub ↗

Get the basic shell command to start the shell, given the provided test vector. Returns the command as a list of string arguments.

(vector)

Source from the content-addressed store, hash-verified

185
186
187def get_shell_cmd(vector):
188 """Get the basic shell command to start the shell, given the provided test vector.
189 Returns the command as a list of string arguments."""
190 impala_shell_executable = get_impala_shell_executable(vector)
191 if vector.get_value_with_default("strict_hs2_protocol", False):
192 protocol = vector.get_value(PROTOCOL)
193 return impala_shell_executable + [
194 "--protocol={0}".format(protocol),
195 "--strict_hs2_protocol",
196 "--use_ldap_test_password",
197 "-i{0}".format(get_impalad_host_port(vector))]
198 else:
199 return impala_shell_executable + [
200 "--protocol={0}".format(vector.get_value("protocol")),
201 "-i{0}".format(get_impalad_host_port(vector))]
202
203
204def spawn_shell(shell_cmd):

Calls 5

get_impalad_host_portFunction · 0.85
get_valueMethod · 0.45
formatMethod · 0.45