Sqoop
  1. Sqoop
  2. SQOOP-340

Rise exception when both --direct and --as--sequencefile or --as-avrodatafile are given

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0-incubating
    • Component/s: tools
    • Labels:
      None

      Description

      I was very excited when I saw that sqoop is able to use direct import from MySQL to HDFS and that it's able to save output as SequenceFile. Unfortunately sqoop is not able to do both at the same time, but it will accept both parameters on command line. The --as-sequencefile is ignored and file is still exported to CSV. Which make sense, but it's very confusing for the end user. Would be nice, if sqoop would rise an Exception in case that both parameters are present on the command line.

      1. SQOOP-340.patch
        0.9 kB
        Jarek Jarcec Cecho
      2. SQOOP-340.patch
        0.8 kB
        Jarek Jarcec Cecho

        Activity

        Hide
        Jarek Jarcec Cecho added a comment -

        This patch is throwing exception in case that user requested direct export and non text file export at the same time.

        Show
        Jarek Jarcec Cecho added a comment - This patch is throwing exception in case that user requested direct export and non text file export at the same time.
        Hide
        Jarek Jarcec Cecho added a comment -

        More accurate test and error description.

        Show
        Jarek Jarcec Cecho added a comment - More accurate test and error description.
        Hide
        Arvind Prabhakar added a comment -

        Patch looks good. Will commit if tests pass.

        Show
        Arvind Prabhakar added a comment - Patch looks good. Will commit if tests pass.
        Hide
        Arvind Prabhakar added a comment -

        Patch committed. Thanks Jarek!

        Show
        Arvind Prabhakar added a comment - Patch committed. Thanks Jarek!
        Hide
        Hudson added a comment -

        Integrated in Sqoop-jdk-1.6 #26 (See https://builds.apache.org/job/Sqoop-jdk-1.6/26/)
        SQOOP-340. Explicit error message for invalid options.

        (Jarek Jarcec Cecho via Arvind Prabhakar)

        arvind : http://svn.apache.org/viewvc/?view=rev&rev=1173304
        Files :

        • /incubator/sqoop/trunk/src/java/com/cloudera/sqoop/tool/ImportTool.java
        Show
        Hudson added a comment - Integrated in Sqoop-jdk-1.6 #26 (See https://builds.apache.org/job/Sqoop-jdk-1.6/26/ ) SQOOP-340 . Explicit error message for invalid options. (Jarek Jarcec Cecho via Arvind Prabhakar) arvind : http://svn.apache.org/viewvc/?view=rev&rev=1173304 Files : /incubator/sqoop/trunk/src/java/com/cloudera/sqoop/tool/ImportTool.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development