'Start oozie process.'

@classmethod
def _start_oozie(cls, cluster):

    OozieServerProvider._setup_conf_dir(cluster)
    args = [(OozieServerProvider.OOZIE_HOME + '/bin/oozied.sh'), 'run']
    env = os.environ
    env['OOZIE_DATA'] = cluster._tmppath('oozie_tmp_dir')
    env['OOZIE_HTTP_PORT'] = OozieServerProvider.OOZIE_TEST_PORT
    conf_dir = os.path.join(cluster.log_dir, 'oozie')
    os.mkdir(conf_dir)
    env['OOZIE_LOG'] = conf_dir
    env['OOZIE_CONFIG'] = cluster._tmppath('conf/oozie')
    LOG.info(('Executing    %s,    env    %s,    cwd    %s' % (repr(args), repr(env), cluster._tmpdir)))
    process = subprocess.Popen(args=args, env=env, cwd=cluster._tmpdir, stdin=subprocess.PIPE)
    return process
