'job_control(jobid, action) -> None
Raise RestException on error.'

def job_control(self, jobid, action, properties=None, parameters=None):

    if (action not in ('start', 'suspend', 'resume', 'kill', 'rerun', 'coord-rerun', 'bundle-rerun', 'change', 'ignore', 'update')):
        msg = ('Invalid    oozie    job    action:    %s' % (action,))
        LOG.error(msg)
        raise ValueError(msg)
    properties = self._get_oozie_properties(properties)
    params = self._get_params()
    params['action'] = action
    if (parameters is not None):
        params.update(parameters)
    return self._root.put(('job/%s' % jobid), params, data=config_gen(properties), contenttype=_XML_CONTENT_TYPE)
