Mongo-hadoop fails read mongo BSON file

20 views
Skip to first unread message

lida...@gmail.com

unread,
Feb 25, 2014, 6:52:14 PM2/25/14
to mongod...@googlegroups.com
Hi,
Thanks for the mongo-hadoop project ,I am successful read and write mongo data online with it in hadoop2 .
But i fails use read mongodb dump files in hadoop2.This exception occurred,anybody can help me,please.

Error: java.lang.ClassCastException: org.apache.hadoop.io.Text cannot be cast to org.bson.BSONObject
at com.lidl.hadoop.BSONRead$TokenzierMapper.map(BSONRead.java:27)
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:763)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:339)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:162)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:157)
 
Reply all
Reply to author
Forward
0 new messages