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

Incorrect permissions on manager.d directory can lead to NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.4
    • Fix Version/s: 1.4.6
    • Component/s: None
    • Labels:

      Description

      I got a report that when files in manager.d have incorrect permissions (Sqoop can't read them), we will get following NPE:

      14/07/17 08:43:46 ERROR tool.BaseSqoopTool: Got error creating database manager: java.lang.NullPointerException
      at java.util.Arrays.sort(Arrays.java:1078)
      at org.apache.sqoop.ConnFactory.loadManagersFromConfDir(ConnFactory.java:289)
      at org.apache.sqoop.ConnFactory.instantiateFactories(ConnFactory.java:85)
      

        Attachments

        1. SQOOP-1387.patch
          1 kB
          Chiwan Park
        2. SQOOP-1387-2.patch
          0.9 kB
          Chiwan Park
        3. SQOOP-1387-3.patch
          0.9 kB
          Chiwan Park
        4. SQOOP-1387-4.patch
          0.9 kB
          Chiwan Park

          Activity

            People

            • Assignee:
              chiwanpark Chiwan Park
              Reporter:
              jarcec Jarek Jarcec Cecho
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: