【问题标题】:MarkLogic - mlcp export of JSON documentsMarkLogic - JSON 文档的 mlcp 导出
【发布时间】:2019-02-10 04:01:10
【问题描述】:

MarkLogic 版本:9.0-6.2 MLCP - 版本 - 9.0.6

我正在尝试使用以下代码通过 mlcp 导出导出 JSON 文档的集合(客户)。执行脚本后,我没有收到来自 mlcp 的任何响应,并且没有创建输出文件。

mlcp.sh export -ssl \
-host localhost \
-port 8010 \
-username uname \
-password pword \
-mode local \
-out_file_path /test/TestFiles/customer.txt \
-collection_filter customer \
-output_type document

我验证了 data-hub-STAGING(8010 端口)有一个名为 customer 的集合,其中包含 100 个 JSON 文档。 linux用户对脚本有执行权限,对输出路径有写权限。用户名和密码正确。

有趣的是,当我在同一目录下以相同的 linux 用户运行 mlcp 代码时,我能够将文档导入 data-hub-STAGING

mlcp.sh import -ssl \
-host localhost \
-port 8010 \
-username uname \
-password pword \
-mode local \
-input_file_path /test/TestFiles/Customer \
-input_file_type documents \
-output_collections customer \
-output_uri_prefix /customer/ \
-output_uri_suffix ".json"

我的导出代码有什么问题吗?

【问题讨论】:

  • 看起来你打错了:它是-output_file_path,而不是-out_file_path。此外,该参数后面的值被视为目录名称,并且不应该存在。
  • 非常感谢!现在可以了。

标签: marklogic-9 mlcp marklogic-dhf


【解决方案1】:

看起来你有一个错字:它是-output_file_path,而不是-out_file_path。此外,该参数后面的值被视为目录名称,并且不应该存在。

HTH!

【讨论】:

    猜你喜欢
    • 2023-03-20
    • 1970-01-01
    • 1970-01-01
    • 2014-05-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-26
    相关资源
    最近更新 更多