-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I'm trying to visualize a workflow for troubleshooting purposes and getting assert
Using the latest stable vipe from pip. I validated the XML document
$ cat tenant-data-copy-wf.xml |vipe-oozie2png > tenant-data-copy-wf.png --horizontal_orientation
Error occurred while analyzing tag "b'<?xml version=\'1.0\' encoding=\'utf8\'?>\n<action name="distcp-to-dr-0-update-action">\n \n <distcp>\n <configuration>\n <property>\n <name> oozie.launcher.mapreduce.job.hdfs-servers </name>\n <value>\n ${replaceAll(distcpHdfsServers, nameNode_dr, wf:actionData(\'snapshot-prep\')[\'DRNameNodeExported[0]\'])}\n </value>\n </property>\n </configuration>\n <arg>-Dmapreduce.output.fileoutputformat.compress=false</arg>\n <arg>-Dmapreduce.map.output.compress=false</arg>\n <arg>-Dmapreduce.job.hdfs-servers.token-renewal.exclude=${drNameService}</arg>\n <arg>-update</arg>\n <arg>-diff</arg>\n <arg> ${wf:actionData(\'snapshot-prep\')[\'DRLatestSnapshotName[0]\']} </arg>\n <arg> s${snapshotName} </arg>\n <arg>-strategy</arg>\n <arg>dynamic</arg>\n <arg>-m</arg>\n <arg>40</arg>\n <arg> -prbugpx </arg>\n <arg> /.reserved/raw/${srcPath} </arg>\n <arg>\n ${wf:actionData(\'snapshot-prep\')[\'DRNameNodeExported[0]\']}/.reserved/raw/${destPath}\n </arg>\n </distcp>\n <ok to="hdfs-dr-snapshot-0" />\n <error to="distcp-to-dr-0-update-action-no-diff" />\n </action>\n '"
Traceback (most recent call last):
File "/usr/local/bin/vipe-oozie2png", line 65, in <module>
not args.horizontal_orientation)
File "/Users/j.martinez.poblete/.pyenv/versions/3.7.3/lib/python3.7/site-packages/vipe/oozie2png.py", line 65, in convert_oozie_to_png
vertical_orientation)
File "/Users/j.martinez.poblete/.pyenv/versions/3.7.3/lib/python3.7/site-packages/vipe/oozie2png.py", line 35, in convert_oozie_to_dot
oozie_graph = oozie_read(xml_oozie_string)
File "/Users/j.martinez.poblete/.pyenv/versions/3.7.3/lib/python3.7/site-packages/vipe/oozie/reader/reader.py", line 61, in read
(name, node) = handlers_register[tag_name](child)
File "/Users/j.martinez.poblete/.pyenv/versions/3.7.3/lib/python3.7/site-packages/vipe/oozie/reader/handlers.py", line 82, in handle_action
assert len(src_dst_args) == 2
AssertionError
Metadata
Metadata
Assignees
Labels
No labels