---
# System prepended metadata

title: OOZIE CLI Commands

---

# OOZIE CLI Commands

Habiendo establecido una conexión SSH a todos los nodos:

#### Descargar worflow

```shell=bash
hdfs dfs -get /user/woombat/vector_correlation
cd vector_correlation
```

#### Run
```shell=bash
oozie job \
-oozie http://clusternode4.c.clusterwoombat-final.internal:11000/oozie \
-config oozie-workflow.properties \
-run \
-doas woombat \
-Doozie.wf.rerun.failnodes=true \
-Doozie.auth.token.cache=false \
-Dskip_cycles_increment=false \
-Dconfig_file=config_correlation.v2.cfg
```

Este comando retorna el ID del workflow. Recomiendo que agreguen el ID retornado a una variable de entorno de la siguiente forma:

```shell=bash
export WORKFLOW_ID=00000XX-XXXXXXXXXXXXXXX-oozie-oozi-W
```

#### Rerun

```shell=bash
oozie job \
-oozie http://clusternode4.c.clusterwoombat-final.internal:11000/oozie \
-rerun ${WORKFLOW_ID} \
-doas woombat \
-Doozie.wf.rerun.failnodes=true \
-Doozie.auth.token.cache=false
```


#### Activar spark
Agregar al comando de oozie el siguiente parametro:

```shell=bash
-Dskip_cycles_increment=true
```