MarkLogic版本:9.0-6.2MLCP-版本- 9.0.6
使用下面的代码,我试图使用mlcp导出来导出JSON文档的集合(customer)。在我执行脚本并没有创建输出文件之后,我不会从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我验证了数据中心阶段(8010端口)有一个名为customer的集合,其中包含100个JSON文档。linux用户对脚本具有执行权限,在输出路径上具有写权限。用户和密码正确。
有趣的是,当我使用同一个linux用户从同一个目录运行mlcp代码时,我可以将这些文档导入数据中心阶段。
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"我的出口代码有什么问题吗?
发布于 2019-02-11 05:47:27
看起来您有一个错误:它是-output_file_path,而不是-out_file_path。此外,该参数后面的值被视为目录名,不应该存在。
哈哈!
https://stackoverflow.com/questions/54613234
复制相似问题