MarkLogic DHF 5.2.1快速入门-本地设置-找不到流程

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

我在本地从ML9升级到ML10后,尝试设置DHF 5.2.1。快速入门设置很顺利,我也创建了一个实体和流程。运行流程时,出现以下错误:

本地消息:无法在文档上应用资源。服务器消息:缺少指定的流GradeIngestionFlow。

GradeIngestionFlow是我的流程名称。我尝试在“流量”选项卡上使用选项“ REDEPLOY”,然后运行,但仍然遇到相同的错误。我还可以在“ C:\ DHF \ flows”下看到该流程。以下是来自JOBS DB的完整错误日志。有人可以帮助调试此错误吗?

{
"job": {
"jobId": "0f6dfb8b-b3b3-437c-b500-65327aae775d", 
"flow": "GradeIngestionFlow", 
"user": "joshi", 
"lastAttemptedStep": "1", 
"lastCompletedStep": 0, 
"jobStatus": "failed", 
"timeStarted": "2020-05-17T01:21:11.8611683+05:30", 
"timeEnded": "2020-05-17T01:21:12.8723422+05:30", 
"stepResponses": {
"1": {
"flowName": "GradeIngestionFlow", 
"stepName": "GradeIngestionStep", 
"stepDefinitionName": "default-ingestion", 
"stepDefinitionType": "ingestion", 
"stepOutput": [
"Local message: Could not apply resource at documents. Server Message: The specified flow GradeIngestionFlow is missing."
], 
"fullOutput": null, 
"status": "failed step 1", 
"totalEvents": 16, 
"successfulEvents": 0, 
"failedEvents": 16, 
"successfulBatches": 0, 
"failedBatches": 1, 
"success": false, 
"stepStartTime": "2020-05-17T01:21:12.4422097+05:30", 
"stepEndTime": "2020-05-17T01:21:12.8335275+05:30"
}
}
}
}

我尚未尝试使用gradle进行设置。

Entities & Flows Structure

json文件的内容:

{
  "name" : "GradeIngestionFlow",
  "description" : "Grade inegsiton",
  "batchSize" : 100,
  "threadCount" : 4,
  "stopOnError" : false,
  "options" : { },
  "version" : 0,
  "steps" : {
    "1" : {
      "name" : "GradeIngestionStep",
      "description" : "Grade Ingestion",
      "options" : {
        "additionalCollections" : [ ],
        "headers" : {
          "sources" : [ {
            "name" : "GradeIngestionFlow"
          } ],
          "createdOn" : "currentDateTime",
          "createdBy" : "currentUser"
        },
        "sourceQuery" : "cts.collectionQuery([])",
        "collections" : [ "GradeIngestionStep" ],
        "permissions" : "data-hub-operator,read,data-hub-operator,update",
        "outputFormat" : "xml",
        "targetDatabase" : "data-hub-STAGING"
      },
      "customHook" : {
        "module" : "",
        "parameters" : { },
        "user" : "",
        "runBefore" : false
      },
      "retryLimit" : null,
      "batchSize" : 100,
      "threadCount" : 4,
      "stepDefinitionName" : "default-ingestion",
      "stepDefinitionType" : "INGESTION",
      "fileLocations" : {
        "inputFilePath" : "C:\\Users\\Joshi\\DHF\\Ingestion",
        "inputFileType" : "csv",
        "outputURIReplacement" : "",
        "separator" : ","
      }
    }
  }
}
marklogic marklogic-dhf
1个回答
0
投票

根据您的项目结构,如果我没记错的话,您已经修改了GradeIngestionFlow并尝试在GradeIngestionFlow或其他流程中添加/删除映射流/步骤,然后使用QuickStart“ REDEPLOY”,但出现以下错误:

enter image description here

1。请使用Gradle进行项目部署。除非需要可视化documents,否则我很少触摸GUI。

这是Gradle部署的结果:

enter image description here

2。请确保您的帐户“ joshi”具有适当的数据中心角色,以执行不同的Gradle任务。谢谢!

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