Shopify / pyoozie

Library for querying and scheduling with Apache Oozie
https://py-oozie.readthedocs.io
MIT License
11 stars 12 forks source link

Add Oozie API #4

Closed kmtaylor-github closed 7 years ago

kmtaylor-github commented 7 years ago

Add an interface layer on top of the Oozie REST API to query, submit, and manage workflow/coordinator artifacts.

kmtaylor-github commented 7 years ago

Ping @cfournie

kmtaylor-github commented 7 years ago

Argh! Using requests.json() seems to appease python 3.3-3.5, but the error returned by 3.4+ doesn't match the documented one.

E           assert 'No JSON object could be decoded' in '/home/travis/build/Shopify/pyoozie/pyoozie/oozie_client.py:143: pyoozie.exceptions.OozieCommunicationException: Expecting value: line 1 column 1 (char 0)'
E            +  where '/home/travis/build/Shopify/pyoozie/pyoozie/oozie_client.py:143: pyoozie.exceptions.OozieCommunicationException: Expecting value: line 1 column 1 (char 0)' = str(<ExceptionInfo OozieCommunicationException tblen=2>)

Digging deeper, the error is a ValueError subclass JSONDecodeError, but the message is not as expected.