Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-1330

Ignore blank newlines in managers.d property files

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.4.4
    • Fix Version/s: 1.4.6
    • Component/s: connectors
    • Labels:

      Description

      When Sqoop encounters blank newline in the managers.d property file, it should ignore that instead of throwing

      ERROR sqoop.ConnFactory: Error loading ManagerFactory information from file /usr/lib/sqoop/conf/managers.d/connector: java.io.IOException: the content of connector file must be in form of key=value

      This is due to the line reading logic not expecting such a line: https://github.com/apache/sqoop/blob/branch-1.4.4/src/java/org/apache/sqoop/ConnFactory.java#L217

        Attachments

        1. SQOOP-1330.patch
          0.6 kB
          Chiwan Park

          Activity

            People

            • Assignee:
              chiwanpark Chiwan Park
              Reporter:
              viji_r Viji
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: