Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-2347

Sqoop2: Typo in code snippet in sqoop documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.99.4
    • 1.99.7
    • docs

    Description

      There is a typo in code snippet on page url http://sqoop.apache.org/docs/1.99.4/ClientAPI.html in the "View Error or Warning valdiation message" section

      private static void printMessage(List<MConfig> configs) {
      for(MConfig config : configs) {
      List<MInput<?>> inputlist = config.getInputs();
      if (config.getValidationMessages() != null) {
      // print every validation message
      for(Message message : config.getValidationMessages())

      { System.out.println("Config validation message: " + message.getMessage()); }

      }
      for (MInput minput : inputlist) {
      if (minput.getValidationStatus() == Status.WARNING) {
      for(Message message : config.getValidationMessages())

      { System.out.println("Config Input Validation Warning: " + message.getMessage()); }

      }
      else if (minput.getValidationStatus() == Status.ERROR) {
      for(Message message : config.getValidationMessages())

      { System.out.println("Config Input Validation Error: " + message.getMessage()); }

      }
      }
      }

      The text in the red needs to replaced by minput.

      Attachments

        1. SQOOP-2347.diff
          1 kB
          Prasanth Chagarlamudi

        Activity

          People

            pchag Prasanth Chagarlamudi
            pchag Prasanth Chagarlamudi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: