Uploaded image for project: 'Kite SDK (READ-ONLY)'
  1. Kite SDK (READ-ONLY)
  2. KITE-1071

Kite CLI should return non-zero when HADOOP_HOME isn't set

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.2.0
    • Component/s: Command-line Interface
    • Labels:
      None

      Description

      The CLI wrapper script will return 0 when Hadoop can't be found:

      if [ -x "$HADOOP_COMMON_HOME/bin/hadoop" ]; then
        exec ${HADOOP_COMMON_HOME}/bin/hadoop jar "$0" $flags org.kitesdk.cli.Main ${OPT_OOZIE_ACTION_XML} $config --dollar-zero "$0" "$@"
      else
        echo "ERROR: Cannot find Hadoop installation!"
        echo "You can fix this warning by setting HADOOP_HOME"
        # THIS SHOULD EXIT 1
      fi
      
      exit
      

      It should exit with a non-zero value.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                blue Ryan Blue
                Reporter:
                blue Ryan Blue
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: