1

mlcp バージョン 9.0.6 を使用しています。プラットフォーム: Linux

エンタープライズ スケジューラ Zena を介して mlcp ジョブを実行すると、mlcp は正常に完了しますが、Zena でタスクが失敗します。

同じタスクで gradle 調和ジョブを実行しようとしましたが、正常に実行されました。簡単なファイル移動機能も試してみましたが、これも成功しています。しかし、mlcp は期待される成功応答をエンタープライズ スケジューラに返さないため、エンタープライズ スケジューラ タスクが失敗します。

以下は、mlcp によって返されるサンプル ログです。ログが示すように、mlcp のロードは成功し、STAGING DB のデータを確認できますが、mlcp はスケジューラに成功の応答を伝えていません。

エラー: 19/05/09 15:47:48 INFO contentpump.LocalJobRunner: コンテンツ タイプ: XML 19/05/09 15:47:48 INFO contentpump.ContentPump: ジョブ名: local_1527018875_1 19/05/09 15:47:48 INFO contentpump.FileAndDirectoryInputFormat: プロセスへの合計入力パス: 1 19/05/09 15:47:50 INFO contentpump.LocalJobRunner: 完了 47% 19/05/09 15:47:51 INFO contentpump.LocalJobRunner: 完了 100% 19/ 05/09 15:48:23 INFO contentpump.LocalJobRunner: com.marklogic.mapreduce.MarkLogicCounter: 19/05/09 15:48:23 INFO contentpump.LocalJobRunner: INPUT_RECORDS: 2798 19/05/09 15:48:23 INFO contentpump.LocalJobRunner: OUTPUT_RECORDS: 2798 19/05/09 15:48:23 INFO contentpump.LocalJobRunner: OUTPUT_RECORDS_COMMITTED: 2798 19/05/09 15:48:23 INFO contentpump.LocalJobRunner: OUTPUT_RECORDS_FAILED: 0 19/05/09 15: 48:23 INFO contentpump.LocalJobRunner: 合計実行時間: 35 秒

アップデート

これがmlcpコードです

#!/bin/bash

mlcp.sh import -ssl \
-host testhost \
-port 8010 \
-username unm \
-password pw \
-mode local \
-input_file_path /data/SourceFiles/QA/Customer \
-input_file_type aggregates \
-aggregate_record_namespace "http://new.webservice.namespace" \
-output_collections customerstaging,customerHarmonize \
-output_permissions data-hub-role,read,data-hub-role,update \
-output_uri_prefix /customer/ \
-aggregate_record_element PartyDownload \
-thread_count 48 \
-transform_module /ext/reusefunctions/customerDocument.sjs

exit 0

最後に明示的な「exit 0」がありますが、それでもジョブは失敗します。以下のように調和ステップを正常に実行できます。

(cd /data/EODH && gradle hubRunFlow -PentityName="customer" PflowName="customer-harmonize-process" -PflowType="harmonize" -PenvironmentName=uat -PthreadCount=32)

if [ $? -eq 0 ]
then
  echo "Success: Files moved."
  exit 0
else
  echo "Failure."
  exit 1
fi
4

0 に答える 0