You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@sqoop.apache.org by Anveshana Na <fr...@gmail.com> on 2012/05/16 09:09:19 UTC

Sqoop Export to Postgres

When I'm trying to export data from hive table postgres..I'm facing a error
msg..any help.. Hive table has columns of string and int and stored as
sequential.
currently I'm using  Sqoop 1.3.0-cdh3u2

12/05/16 06:49:17 INFO mapred.JobClient: Task Id :
attempt_201205071323_2650_m_000000_0, Status : FAILED
java.lang.ClassCastException: org.apache.hadoop.io.BytesWritable cannot be
cast to org.apache.hadoop.io.LongWritable
        at
com.cloudera.sqoop.mapreduce.CombineShimRecordReader.getCurrentKey(CombineShimRecordReader.java:100)
        at
com.cloudera.sqoop.mapreduce.CombineShimRecordReader.getCurrentKey(CombineShimRecordReader.java:43)
        at
org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader.getCurrentKey(CombineFileRecordReader.java:75)
        at
org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.getCurrentKey(MapTask.java:426)
        at
org.apache.hadoop.mapreduce.MapContext.getCurrentKey(MapContext.java:57)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
        at
com.cloudera.sqoop.mapreduce.AutoProgressMapper.run(AutoProgressMapper.java:189)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:639)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:315)
        at org.apache.hadoop.mapred.Child$4.run(Child.java:217)
        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:1063)
        at org.apache.hadoop.mapred.Child.main(Child.java:211)