Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
531 views
in Technique[技术] by (71.8m points)

mongodb - Error : "pymongo.errors.OperationFailure: Feature not supported: splitVector" While using ReadFromMongoDB in Apache Beam

I am trying to read data from mongodb(which is running in AWS Documentdb) and write to bigquery.

I have written python code for that and running it using python3 command. My pipeline string looks like below:

p | ReadFromMongoDB(uri='mongodb://documentdb_url:27017',db="test_db",coll="test_collection") | beam.Map(json_parse_fun) | 'WriteToBigQuery' >> beam.io.WriteToBigQuery('target_bq_table', write_disposition=beam.io.BigQueryDisposition.WRITE_APPEND)

json_parse_fun() converts mongodb data into JSON file.

but when i run this code, dataflow job fails with below error:

pymongo.errors.OperationFailure: Feature not supported: splitVector
question from:https://stackoverflow.com/questions/65879156/error-pymongo-errors-operationfailure-feature-not-supported-splitvector-wh

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

MongoDB does not "run in DocumentDB".

DocumentDB is an imitation database implementing some of MongoDB's features. You found a feature it doesn't implement.

See "Feature not supported: $text" in document db with mongodb 3.6 compatiability.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...