我正在使用 pentaho 数据集成工具从 SQL Server 数据库填充 Mongodb 集合。mongodb 集合中没有定义索引。由于在集合中创建了重复的 id,因此作业失败。
我想知道在哪种情况下可能会导致问题。任何建议都会非常有帮助。
occurred during write: com.mongodb.MongoException$Network: Write operation to server /myhost:27017 failed on database transactions
ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : An error occurred during write: com.mongodb.MongoException$DuplicateKey:
{ "serverUsed" : "/myhost:27017" , "connectionId" : 186 , "err" :
"insertDocument :: caused by :: 11000 E11000 duplicate key error
index: transactions.datacollection.$_id_ dup key: { :
ObjectId('534fe5644503839b0f6d47a2') }" , "code" : 11000 , "n" : 0 ,
"ok" : 1.0}
ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy)
: An error occurred during write:
com.mongodb.MongoException$DuplicateKey: { "serverUsed" :
"/myhost:27017" , "connectionId" : 186 , "err" : "insertDocument ::
caused by :: 11000 E11000 duplicate key error index:
transactions.datacollection.$_id_ dup key: { :
ObjectId('534fe5644503839b0f6d47a2') }" , "code" : 11000 , "n" : 0 ,
"ok" : 1.0}
ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy)
: An error occurred during write: com.mongodb.MongoException$Network:
Write operation to server /myhost:27017 failed on database
transactions
MongoDB Output.0 - ERROR (version 5.0.1-stable, build 1 from
2013-11-15_16-08-58 by buildguy) : An error occurred during write:
com.mongodb.MongoException$DuplicateKey: { "serverUsed" :
"/myhost:27017" , "connectionId" : 187 , "err" : "insertDocument ::
caused by :: 11000 E11000 duplicate key error index:
transactions.datacollection.$_id_ dup key: { :
ObjectId('534fe5644503839b0f6d47a2') }" , "code" : 11000 , "n" : 0 ,
"ok" : 1.0}
ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : Unexpected error ERROR (version 5.0.1-stable, build 1 from
2013-11-15_16-08-58 by buildguy) :