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.8 kB
        Jarek Jarcec Cecho
      2. SQOOP-340.patch
        0.9 kB
        Jarek Jarcec Cecho

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        2m 30s 1 Jarek Jarcec Cecho 17/Sep/11 10:14
        Patch Available Patch Available Resolved Resolved
        3d 9h 39m 1 Arvind Prabhakar 20/Sep/11 19:53
        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
        Arvind Prabhakar made changes -
        Fix Version/s 1.4.0 [ 12317345 ]
        Arvind Prabhakar made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Arvind Prabhakar added a comment -

        Patch committed. Thanks Jarek!

        Show
        Arvind Prabhakar added a comment - Patch committed. Thanks Jarek!
        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.
        Jarek Jarcec Cecho made changes -
        Attachment SQOOP-340.patch [ 12494972 ]
        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.
        Jarek Jarcec Cecho made changes -
        Summary Rise exception when both --direct and --as--sequencefile or --as-avrodatafile Rise exception when both --direct and --as--sequencefile or --as-avrodatafile are given
        Jarek Jarcec Cecho made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        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.
        Jarek Jarcec Cecho made changes -
        Field Original Value New Value
        Attachment SQOOP-340.patch [ 12494909 ]
        Jarek Jarcec Cecho created issue -

          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