xquery api将数据从marklogic上传到Amazon s3 [英] xquery api to upload data from marklogic to amazon s3

查看:66
本文介绍了xquery api将数据从marklogic上传到Amazon s3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从xquery将文件保存到Amazon S3,而不是将其本地存储在marklogic服务器框中(现在使用xdmp:save).是否有xquery api可以将文件从我的xquery上传到S3?

I have a requirement to save files to amazon S3 from my xquery, instead of storing it locally in my marklogic server box (using xdmp:save right now). Is there an xquery api to upload this file to S3 from my xquery?

推荐答案

如果您正在EC2实例上运行MarkLogic,则该解决方案已经存在.S3被视为本机文件系统,因此请使用xdmp:save("S3://bucket/..."bla)有效.但是您需要在管理面板中填写凭据.

If you are running MarkLogic on an EC2 instance, then the solution is there already.. S3 is treated like a native filesystem, so using xdmp:save("S3://bucket/..." bla) works. But you need to fill in your credentials in the admin panel.

文档在此处: https://docs.marklogic.com/guide/ec2/管理#id_98406

请注意,您甚至还可以在S3上存储林(但不能启用日记功能)

Note that you can even store forests on S3 as well (but not with journalling turned on)

这篇关于xquery api将数据从marklogic上传到Amazon s3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆