环境:vmware安装的ubuntu22.04 LTS
JDK:1.8.0_135
python:python2.7.18
python3.10.6
com.mongodb.MongoQueryException: Query failed with error code 352 and error message 'Unsupported OP_QUERY command: find. The client driver may require an upgrade. For more details see https://dochub.mongodb.org/core/legacy-opcode-removal ' on server *:27017
1条答案
按热度按时间hof1towb1#
修改mongodbreader下的mongo-java-driver版本到3.12.2,就可以正常读取mongo6.的数据,之前的是3.2.2版本应该是过低了。我也是借鉴别人的经验。