1

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"

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

4

1 回答 1

2

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

于 2019-02-11T05:47:27.660 回答