Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-892

Sqoop2: Validate acceptable number of mappers and reducers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.99.1
    • 1.99.2
    • sqoop2-client
    • None

    Description

      When configuring a import or export job with the sqoop2 client, an input value of 0 for the number of extactors in a shouldn't be allowed. Currently, entering a 0 value results in:

      Exception: java.lang.ArithmeticException: / by zero
      Stack trace: java.lang.ArithmeticException: / by zero
      at org.apache.sqoop.connector.jdbc.GenericJdbcImportPartitioner.partitionIntegerColumn(GenericJdbcImportPartitioner.java:107)
      at org.apache.sqoop.connector.jdbc.GenericJdbcImportPartitioner.getPartitions(GenericJdbcImportPartitioner.java:57)
      at org.apache.sqoop.connector.jdbc.GenericJdbcImportPartitioner.getPartitions(GenericJdbcImportPartitioner.java:31)
      at org.apache.sqoop.job.mr.SqoopInputFormat.getSplits(SqoopInputFormat.java:69)
      at org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:1064)

      Attachments

        1. bugSQOOP-892.patch
          9 kB
          Jarek Jarcec Cecho

        Issue Links

          Activity

            People

              jarcec Jarek Jarcec Cecho
              will@cloudera.com Will McQueen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: