首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用自定义转换模块导入MLCP

使用自定义转换模块导入MLCP
EN

Stack Overflow用户
提问于 2018-12-11 01:52:52
回答 1查看 163关注 0票数 0

无法使用自定义转换模块选项导入文档。

我正在尝试通过mlcp导入作为SSL上的gradle任务。当我尝试运行任务时,它正在成功构建,但没有导入任何模块。

代码:

代码语言:javascript
复制
task DeployPatterns(type: com.marklogic.gradle.task.MlcpTask) {
classpath = configurations.mlcp
command = "IMPORT"
ssl = true
port = project.mlRestPort.toInteger()
database = mlAppConfig.contentDatabaseName
input_file_type = "documents"
document_type = "xml"
input_file_path = "data/patterns/"
transform_param = "template temp"
transform_module = "/ext/mlcp/transform.xqy"
transform_namespace = "http://transform-test"
output_collections = "config, patterns"
output_permissions = "rest-reader,read,rest-writer,update"
output_uri_replace = ".*data/,'/'"

}

任务正在成功运行,但未执行任何导入。

MarkLogic - 8.0.6-6

Gradle - 3.9.0

mlcp - 9.0.5

EN

回答 1

Stack Overflow用户

发布于 2018-12-14 18:35:31

使用mlcp时,需要提供与MarkLogic服务器交互的用户名。如果用户没有管理员权限,则该用户必须至少具有以下权限

import - hadoop-user-write export - hadoop-user-read copy - hadoop-user-read (input),hadoop-user-write (output)

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

https://stackoverflow.com/questions/53711067

复制
相关文章

相似问题

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