コード例 #1
0
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
コード例 #2
0
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
コード例 #3
0
ファイル: java_app_runner.py プロジェクト: okulev/seal
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