为什么我不能阅读hadoop自述文件?
答案 0 :(得分:0)
您可以在下面找到Spark 2.1.0的解决方案
id_status = [['5471944843687229cdfb0000','closed'], ...]
bulk_order = id_status.map do |id, status| # Using array destructuration
{ update_one:
{
filter: { _id: id },
update: { :'$set' => {
status: status,
}}
}
}
end
YourCollection.collection.bulk_write(bulk_order)