0

我需要将文件从 FTP 位置上传到 marklogic。请指导我

4

3 回答 3

4

MarkLogic 不允许FTP从 访问外部位置XQuery,就像它允许HTTP调用一样。它也不提供FTP服务器,就像它提供WebDAV服务器一样。

但是,您可以轻松地在中间放置一个中介来访问它FTP,并使用其他方式将文档上传到 MarkLogic。后者可以通过WebDAV您可以使用管理界面创建的应用服务器、通过built-inMarkLogic 6 中的 REST api ( http://docs.marklogic.com/REST ) 或通过像 Corona ( http:// developer.marklogic.com/code/corona)。

如果您用 Java 编写中介,您也可以使用(请参阅http://docs.marklogic.com/Java API上的Java API 选项卡)。

于 2013-02-19T19:03:33.750 回答
0

We have a app that needs documents from a shared folder that we running an etl on to get into marklogic. You can do this a number of ways. If you are able to I'd amount the drive on the marklogic box and then read from there. IF that doesnt work see if you can make those files viewable from an http-get requested. IF that doest work then you might want to make a web services.

于 2013-03-17T06:56:48.900 回答
0

我个人会避免WebDav,除非你绝对需要它。这是一次性的、批量的还是连续的工作?

如果一次性或批量,那么我建议使用脚本FTP将文件存储到本地磁盘,然后使用mlcporRecordLoaderxmlsh将它们推送到 MarkLogic。

如果这是一项持续的工作,那么定制 Java 应用程序可能是要走的路。确实意识到这FTP是一个非常敏感的协议..它可能会以多种方式失败并需要特殊的端口开放等。它是在防火墙、NAT 等之前的 80 年代设计的。让 FTP 可靠地工作而不管 MarkLogic 本身就是一门黑魔法。

如果可以使用其他协议FTP,那将是理想的。说scprsynchttp

于 2013-02-21T19:35:50.017 回答