You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/02/24 06:32:13 UTC

[jira] [Commented] (SQOOP-892) Sqoop2: Validate acceptable number of mappers and reducers

    [ https://issues.apache.org/jira/browse/SQOOP-892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13585302#comment-13585302 ] 

Hudson commented on SQOOP-892:
------------------------------

Integrated in Sqoop2-hadoop200 #210 (See [https://builds.apache.org/job/Sqoop2-hadoop200/210/])
    SQOOP-892:: Validate acceptable number of mappers and reducers (Revision df3a266c6ca1c50e01c6dd61e099f3662bcccf2f)

     Result = SUCCESS
cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=df3a266c6ca1c50e01c6dd61e099f3662bcccf2f
Files : 
* core/src/test/java/org/apache/sqoop/framework/TestFrameworkValidator.java
* core/src/main/java/org/apache/sqoop/framework/FrameworkValidator.java
* core/src/main/java/org/apache/sqoop/framework/configuration/ExportJobConfiguration.java

                
> Sqoop2: Validate acceptable number of mappers and reducers
> ----------------------------------------------------------
>
>                 Key: SQOOP-892
>                 URL: https://issues.apache.org/jira/browse/SQOOP-892
>             Project: Sqoop
>          Issue Type: Bug
>          Components: sqoop2-client
>    Affects Versions: 1.99.1
>            Reporter: Will McQueen
>            Assignee: Jarek Jarcec Cecho
>             Fix For: 1.99.2
>
>         Attachments: bugSQOOP-892.patch
>
>
> 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)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira