Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-1291

MahoutDriver yields cosmetically suboptimal exception when bin/mahout runs without args, on some Hadoop versions

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.9
    • Component/s: None
    • Labels:
      None

      Description

      If you run bin/mahout without arguments, an error is correctly displayed about lack of an argument. The part that displays the error is actually within Hadoop code. In some versions of Hadoop, in the error case, it will quit the JVM with System.exit(). In others, it does not.

      In the calling code in MahoutDriver, in this error case, the main() method does not actually return. So, for versions where Hadoop code doesn't immediately exit the JVM, execution continues. This yields another exception. It's pretty harmless but ugly.

      Attached is a one-line fix, to return from main() in the error case, which is more correct to begin with.

        Attachments

        1. MAHOUT-1291.patch
          0.6 kB
          Sean R. Owen

          Activity

            People

            • Assignee:
              smarthi Suneel Marthi
              Reporter:
              srowen Sean R. Owen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: