Looking into this. First shot looks like some changes are missing. Regards Vikram.
On Feb 17, 2012, at 11:46 AM, Alan Gates (Commented) (JIRA) wrote: > > [ > https://issues.apache.org/jira/browse/HCATALOG-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210474#comment-13210474 > ] > > Alan Gates commented on HCATALOG-239: > ------------------------------------- > > When I apply this patch I see failures in several unit tests, including > TestHCatNonPartitioned and TestHCatDynamicPartitioned with the following: > > {code} > org.apache.hcatalog.common.HCatException : 2001 : Error setting output > information. Cause : java.lang.ClassCastException: > org.apache.hcatalog.rcfile.RCFileInputDriver cannot be cast to > org.apache.hcatalog.mapreduce.HCatStorageHandler > org.apache.hcatalog.common.HCatException : 2001 : Error setting output > information. Cause : java.lang.ClassCastException: > org.apache.hcatalog.rcfile.RCFileInputDriver cannot be cast to > org.apache.hcatalog.mapreduce.HCatStorageHandler > at > org.apache.hcatalog.mapreduce.HCatBaseInputFormat.getSplits(HCatBaseInputFormat.java:189) > at org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:962) > at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:979) > at org.apache.hadoop.mapred.JobClient.access$600(JobClient.java:174) > at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:897) > at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:850) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:396) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1083) > at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:850) > at org.apache.hadoop.mapreduce.Job.submit(Job.java:465) > at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:495) > at > org.apache.hcatalog.mapreduce.HCatMapReduceTest.runMRRead(HCatMapReduceTest.java:313) > at > org.apache.hcatalog.mapreduce.HCatMapReduceTest.runMRRead(HCatMapReduceTest.java:281) > at > org.apache.hcatalog.mapreduce.TestHCatNonPartitioned.testHCatNonPartitionedTable(TestHCatNonPartitioned.java:111) > Caused by: java.lang.ClassCastException: > org.apache.hcatalog.rcfile.RCFileInputDriver cannot be cast to > org.apache.hcatalog.mapreduce.HCatStorageHandler > at org.apache.hcatalog.common.HCatUtil.getStorageHandler(HCatUtil.java:514) > at > org.apache.hcatalog.mapreduce.HCatBaseInputFormat.getSplits(HCatBaseInputFormat.java:170) > {code} > >> Changes to HCatInputFormat to make it use SerDes instead of StorageDrivers >> -------------------------------------------------------------------------- >> >> Key: HCATALOG-239 >> URL: https://issues.apache.org/jira/browse/HCATALOG-239 >> Project: HCatalog >> Issue Type: Sub-task >> Components: storage handlers >> Affects Versions: 0.4 >> Reporter: Alan Gates >> Assignee: Vikram Dixit K >> Fix For: 0.4 >> >> Attachments: 239.patch, 239_1.patch, 239_2.patch, 239_3.patch, >> 239_4.patch >> >> >> This JIRA covers changes to HCatInputFormat and InputJobInfo. See >> HCATALOG-237 for details and design notes. > > -- > This message is automatically generated by JIRA. > If you think it was sent incorrectly, please contact your JIRA > administrators: > https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa > For more information on JIRA, see: http://www.atlassian.com/software/jira > >
