在执行mongodb中执行Js语句时,提示错误:
pymongo.errors.OperationFailure: cannot run map reduce without the Js engine
这是因为mongodb默认情况下配置Js引擎,但是在我们的SIT / UAT环境中,由于DBA会产生安全问题,因此禁用Js引擎来运行JavaScript代码。
如果想要继续执行Js代码,那么就需要打开Js引擎。
如果是用mongodb源码编译,那么可以执行以下代码:
scons --release --usev8
以上是内存溢出为你收集整理的pymongo.errors.OperationFailure: cannot run map reduce without the js engine全部内容,希望文章能够帮你解决pymongo.errors.OperationFailure: cannot run map reduce without the js engine所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)