[
https://issues.apache.org/jira/browse/SQOOP-3008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15950294#comment-15950294
]
hu xiaodong commented on SQOOP-3008:
------------------------------------
the integration tests:
org.apache.sqoop.integration.connector.hdfs.OutputDirectoryTest.testOutputDirectoryIsNotEmptyWithDeleteOption
Caused by: org.apache.hadoop.security.AccessControlException: Permission
denied: user=sqoopclient, access=WRITE,
inode="/tmp/mapreduce-job-io/org.apache.sqoop.integration.connector.hdfs.OutputDirectoryTest":hadoop:supergroup:drwxr-xr-x
at
org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkFsPermission(FSPermissionChecker.java:271)
at
org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:257)
at
org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:238)
at
org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:182)
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkPermission(FSNamesystem.java:6512)
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.deleteInternal(FSNamesystem.java:3973)
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.deleteInt(FSNamesystem.java:3925)
I think there is a permission problem about the test.
> GenericJdbcPartitioner.constructTextConditions(String, Object, Object,
> String, String, boolean, boolean) may occur java.lang.ClassCastException
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SQOOP-3008
> URL: https://issues.apache.org/jira/browse/SQOOP-3008
> Project: Sqoop
> Issue Type: Bug
> Components: connectors/generic
> Affects Versions: 1.99.6, 1.99.7
> Reporter: hu xiaodong
> Attachments: SQOOP-3008.patch
>
>
> org.apache.sqoop.connector.jdbc.GenericJdbcPartitioner.constructTextConditions(String,
> Object, Object, String, String, boolean, boolean)
> this function has such cast:
> String lbString = prefix + bigDecimalToText((BigDecimal)lowerBound);
> String ubString = prefix + bigDecimalToText((BigDecimal)upperBound);
> and
> org.apache.sqoop.connector.jdbc.GenericJdbcPartitioner.partitionTextColumn()
> has this statement:
> constructTextConditions(prefix, 0, 0,
> partitionMinValue, partitionMaxValue, true, true)
> it will cause java.lang.ClassCastException: java.lang.Integer cannot be cast
> to java.math.BigDecimal
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)