Sqoop
  1. Sqoop
  2. SQOOP-652

Improve error message generated in DataDrivenDBInputFormat when no splitter is available

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.4.2
    • Fix Version/s: 1.4.3
    • Component/s: None
    • Labels:

      Description

      Currently DataDrivenDBInputFormat will throw following exception in case that there is no available Splitter:

      DBSplitter splitter = getSplitter(sqlDataType);
      if (null == splitter) {
        throw new IOException("Unknown SQL data type: " + sqlDataType);
      }
      

      Text of the exception is very confusing as it's not describing what has actually happened. Would be great if this message would be improved by saying that Sqoop do not have splitter for given sql type and therefore user should either use different split column (argument --split-by) or lower number of mappers to 1 (splitters are not used in such case).

        Activity

        Jarek Jarcec Cecho created issue -
        Linden Hillenbrand made changes -
        Field Original Value New Value
        Assignee Linden Hillenbrand [ lhillenbrand ]
        Linden Hillenbrand made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Linden Hillenbrand made changes -
        Attachment DataDrivenDBInputFormat.patch [ 12560175 ]
        Linden Hillenbrand made changes -
        Status In Progress [ 3 ] Patch Available [ 10002 ]
        Linden Hillenbrand made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Linden Hillenbrand made changes -
        Attachment DataDrivenDBInputFormat.patch [ 12560175 ]
        Linden Hillenbrand made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Linden Hillenbrand made changes -
        Attachment DataDrivenDBInputFormat.patch [ 12561632 ]
        Linden Hillenbrand made changes -
        Status In Progress [ 3 ] Patch Available [ 10002 ]
        Jarek Jarcec Cecho made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Linden Hillenbrand
            Reporter:
            Jarek Jarcec Cecho
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development