Review Board 1.7.22


OOZIE-769 Adding "-debug" option to Oozie CLI for debug statements to stdout

Review Request #4407 - Created March 19, 2012 and discarded

Mona Chitnis
trunk
OOZIE-769
Reviewers
oozie
oozie
Currently, you can export the env variable OOZIE_DEBUG to a non-zero value to get debug statements on stdout after job submit/run. This patch is making this feature available by alternately specifying '-debug' through the CLI arguments.

e.g. oozie job -run -config <job.properties> -debug

Starting right now with getting basic debug output such as the Http connection URL to the server, this can be later extended for printing more debug statements at various stages of the Oozie process. 

 

Diff revision 3 (Latest)

1 2 3
1 2 3

  1. trunk/client/src/main/java/org/apache/oozie/cli/OozieCLI.java: Loading...
  2. trunk/core/src/test/java/org/apache/oozie/client/TestOozieCLI.java: Loading...
Content-Type: text/html; charset=utf-8
trunk/client/src/main/java/org/apache/oozie/cli/OozieCLI.java
Revision 1308447 New Change
Diff currently unavailable.
Error: The file '/repos/asf/oozie/trunk/client/src/main/java/org/apache/oozie/cli/OozieCLI.java' (r1308447) could not be found in the repository: '/repos/asf/!svn/bc/1308447/oozie/trunk/client/src/main/java/org/apache/oozie/cli/OozieCLI.java' path not found
Details
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.22-py2.7.egg/reviewboard/diffviewer/views.py", line 117, in view_diff
    request=request)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.22-py2.7.egg/reviewboard/diffviewer/diffutils.py", line 344, in populate_diff_chunks
    chunks = generator.get_chunks()
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.22-py2.7.egg/reviewboard/diffviewer/chunk_generator.py", line 137, in get_chunks
    large_data=True)
  File "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.28-py2.7.egg/djblets/util/misc.py", line 157, in cache_memoize
    data = lookup_callable()
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.22-py2.7.egg/reviewboard/diffviewer/chunk_generator.py", line 136, in <lambda>
    lambda: list(self._get_chunks_uncached()),
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.22-py2.7.egg/reviewboard/diffviewer/chunk_generator.py", line 141, in _get_chunks_uncached
    old = get_original_file(self.filediff, self.request)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.22-py2.7.egg/reviewboard/diffviewer/diffutils.py", line 126, in get_original_file
    request=request)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.22-py2.7.egg/reviewboard/scmtools/models.py", line 192, in get_file
    large_data=True)[0]
  File "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.28-py2.7.egg/djblets/util/misc.py", line 157, in cache_memoize
    data = lookup_callable()
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.22-py2.7.egg/reviewboard/scmtools/models.py", line 191, in <lambda>
    request)],
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.22-py2.7.egg/reviewboard/scmtools/models.py", line 287, in _get_file_uncached
    data = self.get_scmtool().get_file(path, revision)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.22-py2.7.egg/reviewboard/scmtools/svn.py", line 191, in get_file
    return self._do_on_path(get_file_data, path, revision)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.22-py2.7.egg/reviewboard/scmtools/svn.py", line 165, in _do_on_path
    raise FileNotFoundError(path, revision, detail=str(e))
FileNotFoundError: The file '/repos/asf/oozie/trunk/client/src/main/java/org/apache/oozie/cli/OozieCLI.java' (r1308447) could not be found in the repository: '/repos/asf/!svn/bc/1308447/oozie/trunk/client/src/main/java/org/apache/oozie/cli/OozieCLI.java' path not found
trunk/core/src/test/java/org/apache/oozie/client/TestOozieCLI.java
Revision 1308447 New Change
 
  1. trunk/client/src/main/java/org/apache/oozie/cli/OozieCLI.java: Loading...
  2. trunk/core/src/test/java/org/apache/oozie/client/TestOozieCLI.java: Loading...