0

I'm try to use conditional flows on Azkaban. When I submit/upload my project inside web node I receive this error.

Validator Directory Flow reports errors: Error loading flow yaml file sample.flow:Cannot create property=nodes for JavaBean=NodeBean{name='null', config=null, dependsOn=null, type='null', nodes=null, trigger=null} in 'reader', line 1, column 1: nodes: ^ Cannot create property=condition for JavaBean=NodeBean{name='JobB', config=null, dependsOn=[JobA], type='command', nodes=null, trigger=null} in 'reader', line 7, column 4: - name: JobB ^ Unable to find property 'condition' on class: azkaban.project.NodeBean in 'reader', line 11, column 15: condition: ${JobA:param1} == 1 ^ in 'reader', line 2, column 2: - name: JobA ^

I have tried several to create different flows but it seems like a problem relating to the Keyword condition present inside the yaml file.

Questo è il flow di esempio presente anche sulla documentazione

`

nodes:
 - name: JobA
   type: command
   config:
     command: bash ./write_to_props.sh

 - name: JobB
   type: command
   dependsOn:
     - JobA
   config:
     command: echo “This is JobB.”
   condition: ${JobA:param1} == 1

 - name: JobC
   type: command
   dependsOn:
     - JobA
   config:
     command: echo “This is JobC.”
   condition: ${JobA:param1} == 2

 - name: JobD
   type: command
   dependsOn:
     - JobB
     - JobC
   config:
     command: pwd
   condition: one_success

`

While this is the content of write_to_props.sh

`

echo '{"param1": "100"}' > $JOB_OUTPUT_PROP_FILE

`

I expect that there are no syntactic errors as submissive to the Azkaban Web node and that the DAG is performed depending on the condition inserted.

Holsi
  • 21
  • 3

0 Answers0