Exemplo n.º 1
0
Arquivo: edp.py Projeto: madar010/mad
def get_builtin_binaries(job, configs):
    if job.type == JOB_TYPE_JAVA:
        if is_adapt_for_oozie_enabled(configs):
            path = 'service/edp/resources/edp-main-wrapper.jar'
            name = 'builtin-%s.jar' % uuidutils.generate_uuid()
            return [{'raw': files.get_file_binary(path), 'name': name}]
    return []
Exemplo n.º 2
0
Arquivo: edp.py Projeto: crobby/sahara
def get_builtin_binaries(job, configs):
    if job.type == JOB_TYPE_JAVA:
        if is_adapt_for_oozie_enabled(configs):
            path = 'service/edp/resources/edp-main-wrapper.jar'
            name = 'builtin-%s.jar' % six.text_type(uuid.uuid4())
            return [{'raw': files.get_file_binary(path),
                     'name': name}]
    return []