Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/s/a/sahara-HEAD/sahara/service/validations/edp/job.py   sahara(Download)
def check_mains_libs(data, **kwargs):
    mains = data.get("mains", [])
    libs = data.get("libs", [])
    job_type, subtype = edp.split_job_type(data.get("type"))
    streaming = (job_type == edp.JOB_TYPE_MAPREDUCE and

src/s/a/sahara-HEAD/sahara/service/validations/edp/job_executor.py   sahara(Download)
def check_job_executor(data, job_id):
    job = api.get_job(job_id)
    job_type, subtype = edp.split_job_type(job.type)
 
    # Check if cluster contains Oozie service to run job

src/s/a/sahara-2014.1/sahara/service/validations/edp/job_executor.py   sahara(Download)
def check_job_executor(data, job_id):
    job = api.get_job(job_id)
    job_type, subtype = edp.split_job_type(job.type)
 
    # Check if cluster contains Oozie service to run job

src/s/a/sahara-2014.1/sahara/service/validations/edp/job.py   sahara(Download)
def check_mains_libs(data, **kwargs):
    mains = data.get("mains", [])
    libs = data.get("libs", [])
    job_type, subtype = edp.split_job_type(data.get("type"))
    streaming = job_type == "MapReduce" and subtype == "Streaming"

src/s/a/sahara-HEAD/sahara/tests/unit/utils/test_edp.py   sahara(Download)
    def test_split_job_type(self):
        jtype, stype = edp.split_job_type(edp.JOB_TYPE_MAPREDUCE)
        self.assertEqual(jtype, edp.JOB_TYPE_MAPREDUCE)
        self.assertEqual(stype, edp.JOB_SUBTYPE_NONE)
 
        jtype, stype = edp.split_job_type(edp.JOB_TYPE_MAPREDUCE_STREAMING)

src/s/a/sahara-2014.1/sahara/tests/unit/utils/test_edp.py   sahara(Download)
    def test_split_job_type(self):
        jtype, stype = edp.split_job_type("MapReduce")
        self.assertEqual(jtype, "MapReduce")
        self.assertEqual(stype, "")
 
        jtype, stype = edp.split_job_type(MAPRED_STREAMING)