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

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.8
    • 0.9
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: