首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >使用query_filter导出mlcp

使用query_filter导出mlcp
EN

Stack Overflow用户
提问于 2020-08-26 00:08:09
回答 1查看 118关注 0票数 1

我正在尝试将文件从Marklogic服务器(安装在我的机器上)导出到我的本地环境,并收到以下错误:

代码语言:javascript
运行
复制
mlcp.sh export -host localhost -port 8000 -username admin \
>     -password admin -mode local -output_file_path \
>     /output_dir \
> -database data-hub-FINAL -document_selector {/envelope/instance/name-entity} \
> -query_filter {"wordQuery":{"name":["Jason"]}}


WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.hadoop.security.authentication.util.KerberosUtil (file:/mnt/c/Users/imam/Documents/2020_Learning_Imane/marklo/project/flight_school/mlcp-10.0.4.2/lib/hadoop-auth-2.6.0.jar) to method sun.security.krb5.Config.getInstance()
WARNING: Please consider reporting this to the maintainers of org.apache.hadoop.security.authentication.util.KerberosUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
20/08/25 17:52:05 INFO contentpump.ContentPump: Job name: local_2008896403_1
20/08/25 17:52:05 ERROR mapreduce.MarkLogicInputFormat: com.marklogic.xcc.exceptions.XQueryException: XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected Lbrace_
 [Session: user=admin, cb=data-hub-FINAL [ContentSource: user=admin, cb=data-hub-FINAL [provider: address=localhost/127.0.0.1:8000, pool=1/64]]]
 [Client: XCC/10.0-4, Server: XDBC/10.0-3]
on line 1
expr:  ,
in xdmp:eval("for $f in xdmp:forest-open-replica(xdmp:database-forests(xdmp:da...")
in /MarkLogic/hadoop.xqy, on line 32
expr:  ,
in hadoop:get-splits("", "{/envelope/instance/name-entity}", "cts:query(xdmp:unquote('{wordQuery:{name:[Jason]}}')/*)")
in /eval, on line 5
expr:

我不知道我错过了什么,我已经尝试了一个简单的导入,它工作得很好。所以我猜错误来自于我的查询语法。

有什么想法吗?非常感谢

EN

回答 1

Stack Overflow用户

发布于 2020-08-26 00:55:29

https://docs.marklogic.com/guide/mlcp/export#id_66898

在使用-query_filter时,建议使用选项文件的

,因为XML和JSON序列化查询都包含引号和对Unix和Windows命令shell具有特殊意义的其他字符,这使得正确转义查询具有挑战性。如果在命令行上使用-query_filter,则必须对序列化查询加上引号,并且可能需要对其他特殊字符进行转义。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63582913

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档