Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert executing #26

Open
jpoblete opened this issue Jan 13, 2020 · 0 comments
Open

Assert executing #26

jpoblete opened this issue Jan 13, 2020 · 0 comments

Comments

@jpoblete
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant