MarkLogic - JSON文件的铝塑复合出口

问题描述 投票:0回答:1

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

我试图用出口出口铝塑复合JSON文件的集合(客户),使用下面的代码。我没有收到来自任何铝塑复合响应后,我执行脚本,输出文件不被创建。

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

我验证了数据中心分期(8010端口)有一个名为客户提供100个JSON文件的集合。 Linux的用户有执行上的输出路径上的脚本和写入权限的权限。用户和密码是否正确。

有趣的是,当我运行下面的代码MLCP从同一目录下,用相同的Linux用户,我可以把文件导入到数据中心分期

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"

什么毛病我出口的代码?

marklogic-9 mlcp marklogic-dhf
1个回答
0
投票

看起来你有一个错字:它是-output_file_path,不-out_file_path。同样,遵循参数的值被视为一个目录名,并且不应该还不存在。

HTH!

© www.soinside.com 2019 - 2024. All rights reserved.