Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-13242

[MiNiFi] Sync Resource command

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-M4
    • MiNiFi
    • None

    Description

      Handle Sync resource command. (Download files, and store version id/hash)

      • check if agent has enough disk space
      • extension types should be downloaded to extension folder
      • other types are relative to the asset folder (that must be different than the old asset push command folder)
      • the agent maintains a local repo, so it can be kept in sync with the C2 server

      Heartbeat operation:
      operation type: SYNC
      operand type: RESOURCE

      args:

      "args": {
        "globalHash": {
          "digest": "xzy123",
          "hashType": "SHA1"
        },
        "resourceList": [
          {
            "resourceId": "abc123",
            "resourceName": "a.txt",
            "resourceType": "ASSET",
            "resourcePath": "valami/barmi",
            "digest": "hij987",
            "hashType": "SHA1",
            "url": "/c2/resource/abc123"
          },
          {
              "resourceId": "def123",
              "resourceName": "b.nar",
              "resourceType": "EXTENSION",
              "resourcePath": null,
              "digest": "mno666",
              "hashType": "SHA1",
              "url": "/c2/resource/def123"
          }
        ]
      }
      

      Attachments

        Issue Links

          Activity

            People

              briansolo1985 Ferenc Kis
              briansolo1985 Ferenc Kis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h