MCPcopy Create free account
hub / github.com/baidu/tera / run_cmd

Method run_cmd

example/docker/cluster_setup.py:18–25  ·  view source on GitHub ↗
(self, ip, cmd)

Source from the content-addressed store, hash-verified

16 self.s.set_missing_host_key_policy(paramiko.AutoAddPolicy())
17
18 def run_cmd(self, ip, cmd):
19 try:
20 self.s.connect(ip)
21 stdin, stdout, stderr = self.s.exec_command(cmd)
22 self.s.close()
23 except:
24 traceback.print_exc()
25 return stdin, stdout, stderr
26
27def parse_input():
28 parser = argparse.ArgumentParser()

Callers 3

start_zkFunction · 0.80
start_hdfsFunction · 0.80
start_teraFunction · 0.80

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected