0

MarkLogic 版本 - 9.0-6.2 DHF 版本:2.0.6(id 'com.marklogic.ml-data-hub' 版本 '2.0.6')

尝试通过“gradle mlReloadModules”命令部署更改,但注意到未部署 REST 扩展 billing.sjs。此文件 (billing.sjs) 保存在 \data-hub\EODH\plugins\entities\billing\harmonize\REST\services 中,我从 \data-hub\EODH 目录执行了多次“gradle mlReloadmodules”命令

我去了 data-hub-MODULES db 并浏览了 /marklogic.rest.resource/billing/assets/resource.sjs 以查看旧代码仍然存在。

在重新加载模块之前,我还执行了“rm .tmp/user-modules-deploy-timestamps.properties”。

以下是“gradle mlReloadmodules -d”命令的选定输出部分

23:17:34.455 [调试] [com.marklogic.com.marklogic.client.ext.modulesloader.impl.EntityDefModulesFinder] 在 baseDir 中查找模块:G:\data-hub\EODH\plugins\entities\billing 23:17: 34.455 [DEBUG] [com.marklogic.com.marklogic.client.ext.modulesloader.impl.EntityDefModulesFinder] 在baseDir中查找模块,修改为:file:/G:/data-hub/EODH/plugins/entities/ billing/ 23:17:34.455 [DEBUG] [com.marklogic.com.marklogic.client.ext.modulesloader.impl.EntityDefModulesFinder] 在路径中查找实体定义:file:/G:/data-hub/EODH/plugins/entities /计费/.entity.json 23:17:34.455 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 在目录树中寻找匹配资源 [G:\data-hub\EODH\plugins\entities\billing] 23: 17:34.456 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 搜索目录 [G:\data-hub\EODH\plugins\entities\billing] 寻找匹配模式的文件 [G:/data-hub/EODH /plugins/entities/billing/.entity.json] 23:17:34.456 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 已解决的位置模式 [file:/G:/data-hub/EODH/ plugins /实体/计费/.entity.json] 到资源 [] 23:17:34.457 [DEBUG] [com.marklogic.client.ext.modulesloader.impl.DefaultModulesLoader] 从基本目录加载模块:G:\data-hub\EODH\plugins\entities \billing\harmonize\REST 23:17:34.470 [DEBUG] [com.marklogic.client.ext.modulesloader.impl.PropertiesModuleManager] 从以下位置加载属性:G:\data-hub\EODH.tmp\user-modules-deploy- timestamps.properties 23:17:34.470 [DEBUG] [com.marklogic.appdeployer.command.modules.AllButAssetsModulesFinder] 在 baseDir 中查找模块:G:\data-hub\EODH\plugins\entities\billing\harmonize\REST 23:17 :34.470 [DEBUG] [com.marklogic.appdeployer.command.modules.AllButAssetsModulesFinder] 在baseDir中查找模块,修改为:file:/G:/data-hub/EODH/plugins/entities/billing/harmonize/REST / 23:17:34.470 [调试] [com.marklogic.appdeployer。command.modules.AllButAssetsModulesFinder] 在路径中查找命名空间:file:/G:/data-hub/EODH/plugins/entities/billing/harmonize/REST/namespaces/.* 23:17:34.471 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 在目录树中寻找匹配资源 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\ namespaces] 23:17:34.471 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 跳过 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\namespaces] 因为它没有存在 23:17:34.471 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 已解决的位置模式 [file:/G:/data-hub/EODH/plugins/entities/billing/harmonize/REST/namespaces/ .] 到资源 [] 23:17:34.471 [DEBUG] [com.marklogic.appdeployer.command.modules.AllButAssetsModulesFinder] 在路径中查找选项模块:file:/G:/data-hub/EODH/plugins/entities/billing/协调/REST/选项/ 23:17:34.471 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 在目录树中寻找匹配资源 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\options] 23:17:34.471 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 搜索目录 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\options] 文件匹配模式 [ G:/data-hub/EODH/plugins/entities/billing/harmonize/REST/options/ ] 23:17:34.472 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 解决位置模式 [file:/G:/data-hub/EODH/plugins/entities/billing/harmonize/REST/options/ . ] 到资源 [文件 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\options\BillingInfoList.json]] 23:17:34.472 [DEBUG] [com.marklogic.appdeployer.command.modules .AllButAssetsModulesFinder] 在路径中查找 REST 属性文件:file:/G:/data-hub/EODH/plugins/entities/billing/harmonize/REST/rest-properties.json 23:17:34.472 [DEBUG] [com.marklogic. appdeployer.command.modules.AllButAssetsModulesFinder] 在以下路径查找服务模块:file:/G: /data-hub/EODH/plugins/entities/billing/harmonize/REST/services/.xq 23:17:34.472 [调试] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 在目录树中寻找匹配资源 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\services] 23:17:34.472 [调试] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 搜索目录 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\services] 文件匹配模式 [ G:/data-hub/EODH/plugins/entities/billing/harmonize/REST/services/ .xq ] 23:17:34.473 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 已解决的位置模式 [文件:/G: /data-hub/EODH/plugins/entities/billing/harmonize/REST/services/.xq] 到资源 [] 23:17:34.473 [DEBUG] [com.marklogic.appdeployer.command.modules.AllButAssetsModulesFinder] 在路径查找服务模块:file:/G:/data-hub/EODH/plugins/entities/billing/ harmonize/REST/services/ .sjs 23:17:34.473 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 在目录树中寻找匹配资源 [G:\data-hub\EODH\plugins\entities\ billing\harmonize\REST\services] 23:17:34.473 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 搜索目录 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST \services] 用于匹配模式的文件 [G:/data-hub/EODH/plugins/entities/billing/harmonize/REST/services/.sjs] 23:17:34.474 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 已解决的位置模式 [file:/G:/data-hub/EODH/plugins/entities/billing/harmonize/REST/ services/ .sjs] 到资源 [文件 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\services\billing.sjs],文件 [G:\data-hub\EODH\plugins\entities \billing\harmonize\REST\services\billing360.sjs],文件 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\services\billingReg.sjs]] 23:17:34.474 [调试] [com.marklogic.appdeployer.command.modules.AllButAssetsModulesFinder] 在路径查找转换模块:file:/G:/data-hub/EODH/plugins/entities/billing/harmonize/REST/transforms/.xq* 23:17:34.474 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 在目录树中寻找匹配资源 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST \transforms] 23:17:34.474 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 跳过 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\transforms] 因为它确实不存在 23:17:34.474 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 已解决的位置模式 [file:/G:/data-hub/EODH/plugins/entities/billing/harmonize/REST/transforms /.xq _] 到资源 [] 23:17:34.474 [DEBUG] [com.marklogic.appdeployer.command.modules.AllButAssetsModulesFinder] 在路径查找转换模块:file:/G:/data-hub/EODH/plugins/entities/billing/协调/REST/transforms/.xsl 23:17:34.474 [调试] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 在目录树中寻找匹配资源 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\transforms] 23:17:34.475 [调试] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 跳过 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\transforms] 因为它不存在 23 :17:34.475 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 解决位置模式 [file:/G: /data-hub/EODH/plugins/entities/billing/harmonize/REST/transforms/.xsl] 到资源 [] 23:17:34.475 [DEBUG] [com.marklogic.appdeployer.command.modules.AllButAssetsModulesFinder] 在路径查找转换模块:file:/G:/data-hub/EODH/plugins/entities/billing/协调/REST/转换/.sjs 23:17:34.475 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 在目录树中寻找匹配资源 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\ transforms] 23:17:34.475 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 跳过 [G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\transforms] 因为它没有存在 23:17:34.475 [DEBUG] [org.springframework.core.io.support.PathMatchingResourcePatternResolver] 已解决的位置模式 [file:/G:/data-hub/EODH/plugins/entities/billing/harmonize/REST/transforms/.sjs] 到资源 [] 23:17:34.475 [INFO] [com.marklogic.client.ext.modulesloader.impl.DefaultModulesLoader] 从文件 BillingInfoList.json 加载 BillingInfoList 查询选项 23:17:34.489 [DEBUG] [com. marklogic.client.impl.OkHttpServices] Putting /config/query/BillingInfoList 23:17:34.529 [DEBUG] [com.marklogic.client.ext.modulesloader.impl.DefaultExtensionMetadataProvider] 无法从资源文件构建元数据:file:/G :/data-hub/EODH/plugins/entities/billing/harmonize/REST/services/billing.sjs;原因:G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\services\metadata\billing.xml (系统找不到指定的文件)23:17:34.530 [INFO] [com.marklogic. client.ext.modulesloader.impl.DefaultModulesLoader] 从文件 billing.sjs 23:17:34.540 [INFO] [com.marklogic. client.impl.ResourceExtensionsImpl] 为计费编写资源服务源 23:17:34.540 [DEBUG] [com.marklogic.client.impl.OkHttpServices] Putting config/resources/billing 23:17:34.552 [DEBUG] [com.marklogic. client.ext.modulesloader.impl.DefaultExtensionMetadataProvider] 无法从资源文件构建元数据:file:/G:/data-hub/EODH/plugins/entities/billing/harmonize/REST/services/billing360.sjs;原因:G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\services\metadata\billing360.xml(系统找不到指定的文件)23:17:34.553 [INFO] [com.marklogic. client.ext.modulesloader.impl.DefaultModulesLoader] 从文件 billing360.sjs 23:17:34.560 加载 billing360 资源扩展 [INFO] [com.marklogic.client.impl.ResourceExtensionsImpl] 为 billing360 23:17:34 编写资源服务源。560 [DEBUG] [com.marklogic.client.impl.OkHttpServices] Putting config/resources/billing360 23:17:34.576 [DEBUG] [com.marklogic.client.ext.modulesloader.impl.DefaultExtensionMetadataProvider] 无法从资源构建元数据文件:file:/G:/data-hub/EODH/plugins/entities/billing/harmonize/REST/services/billingReg.sjs;原因:G:\data-hub\EODH\plugins\entities\billing\harmonize\REST\services\metadata\billingReg.xml(系统找不到指定的文件)23:17:34.577 [INFO] [com.marklogic. client.ext.modulesloader.impl.DefaultModulesLoader] 从文件 billingReg.sjs 加载 billingReg 资源扩展 23:17:34.583 [INFO] [com.marklogic.client.impl.ResourceExtensionsImpl] 为 billingReg 23:17:34.583 编写资源服务源 [调试] [com.marklogic.client.impl。

4

2 回答 2

1

Gradle 任务名称不区分大小写。属性名称区分大小写。文件路径的大小写敏感性(可能是该票证中的问题)由操作系统确定。

一件事是验证部署路径中的所有目录都没有设置为区分大小写。Windows 运行的 Linux 工具(适用于 Linux 的 Windows 子系统 - Bash shell)将创建区分大小写的文件夹。可以通过编辑wsl.conf更改此默认行为

您可以使用以下命令检查是否区分大小写:

fsutil.exe file queryCaseSensitiveInfo C:\folder

区分大小写是按目录设置的,不影响子目录,因此可能需要检查文件路径中的每个目录。

您也可能在 4.0.x 代码中遇到已知错误DHF 不部署 REST 扩展。它已在 4.1.0 及更高版本中得到修复。

如果这是您面临的问题,建议您迁移到最新版本的Data Hub Framework,因为部署过程中有很多错误修复和增强。

如果此时这不是一个选项,问题评论中详细说明了解决方法:

https://github.com/marklogic/marklogic-data-hub/issues/1574#issuecomment-441785549

于 2019-03-19T20:16:57.320 回答
0

我们使用的是 2.0.3 版本。我注意到小写的“mlreloadmodules”不工作,但混合大小写的“mlReloadModules”工作正常。我们的 MarkLogic 部署在 windows(社区版)上,我是从 powershell 运行的,所以我们之前没有看到区分大小写的问题,所以这对我们来说是一个意外的行为。如果我发现任何新内容,我将密切关注部署和更新。

感谢大家的回应。

于 2019-03-20T15:18:24.513 回答