

def _set_properties(coordinator, root, namespace):
    namespaces = {
        'n': namespace,
    }
    properties = []
    props = root.xpath('n:action/n:workflow/n:configuration/n:property', namespaces=namespaces)
    seen = {
        
    }
    for prop in props:
        name = prop.xpath('n:name', namespaces=namespaces)[0].text
        value = prop.xpath('n:value', namespaces=namespaces)[0].text
        if (name not in seen):
            properties.append({
                'name': name,
                'value': value,
            })
            seen[name] = True
    coordinator.job_properties = json.dumps(properties)

dataset/ETHPy150Open cloudera/hue/apps/oozie/src/oozie/importlib/coordinators.py _set_properties/original