def main(class_name, app_name): print >>sys.stderr, "Using hadoop executable", hadut.hadoop print >>sys.stderr, "Using seal jar", seal.jar_path() retcode = hadut.run_hadoop_jar(seal.jar_path(), class_name, args_list=sys.argv[1:]) if retcode != 0 and retcode != 3: # 3 for usage error print >>sys.stderr, "Error running", app_name return retcode
def main(class_name, app_name, args): print >>sys.stderr, "Using hadoop executable", pydoop.hadoop_exec() print >>sys.stderr, "Using seal jar", seal.jar_path() retcode = seal_utilities.run_hadoop_jar(seal.jar_path(), class_name, args_list=args) if retcode != 0 and retcode != 3: # 3 for usage error print >>sys.stderr, "Error running", app_name return retcode
def main(class_name, app_name): print >> sys.stderr, "Using hadoop executable", hadut.hadoop print >> sys.stderr, "Using seal jar", seal.jar_path() retcode = hadut.run_hadoop_jar(seal.jar_path(), class_name, args_list=sys.argv[1:]) if retcode != 0 and retcode != 3: # 3 for usage error print >> sys.stderr, "Error running", app_name return retcode
def __init__(self, test_dir): self.test_dir = test_dir self.test_name = os.path.basename(test_dir) self.jar = seal.jar_path() self.output_dir = "/tmp/%s.%d" % (self.test_name, os.getpid()) self.seal_dir = os.path.abspath( os.path.join(os.path.dirname(__file__), '..', '..') ) self.logger = logging.getLogger(self.test_name)
def __init__(self, test_dir): self.test_dir = test_dir self.test_name = os.path.basename(test_dir) self.jar = seal.jar_path() self.output_dir = "/tmp/%s.%d" % (self.test_name, os.getpid()) self.seal_dir = os.path.abspath( os.path.join(os.path.dirname(__file__), '..', '..')) self.logger = logging.getLogger(self.test_name)
def __init__(self, test_dir): self.test_dir = test_dir self.test_name = os.path.basename(test_dir) self.jar = seal.jar_path() self.output_dir = "/tmp/%s.%d" % (self.test_name, os.getpid()) self.seal_dir = os.path.abspath( os.path.join(os.path.dirname(__file__), '..', '..') ) self.logger = logging.getLogger(self.test_name) self.parser = argparse.ArgumentParser(description="Run this integration test") self.parser.add_argument('--debug', action='store_true', help="Turn on debug mode") self.parser.add_argument('--no-cleanup', action='store_true', help="Don't delete temporary files (for debugging)") self.options = None