cloudera-scripts-for-log4j icon indicating copy to clipboard operation
cloudera-scripts-for-log4j copied to clipboard

Script Scans all Parcels

Open belugabehr opened this issue 4 years ago • 4 comments

Hello,

The script (by default) scan /opt/cloudera for jar/tar/war files. This has the affect of also modifying files which are not part of Cloudera's stack e.g. StreamSets managed by CM. Is there a way the script can check the top-level directories to ensure that they are Cloudera products before scanning?

Thanks.

belugabehr avatar Dec 13 '21 17:12 belugabehr

Should be able to determine by inspecting the following file:

/opt/cloudera/<parcel>/meta/parcel.json

belugabehr avatar Dec 14 '21 14:12 belugabehr

    "description": "Cloudera Runtime",
    "displayName": "Cloudera Runtime",
    "extraVersionInfo": {
        "baseVersion": "cdh7.2.13",
        "fullVersion": "7.2.13-1.cdh7.2.13.p0.19580285-el7",
        "patchCount": "0"
    },

belugabehr avatar Dec 14 '21 14:12 belugabehr

Thanks for the report. We will think about how to handle this.

jtran-cloudera avatar Dec 16 '21 00:12 jtran-cloudera

And I'ld suggest, when working on such a feature, to add a flag (via a new ENV var?) to allow disabling patching the parcel .tar.gz alltogether

This would alleviate the issue with too small /tmp dirs, resp. non configurable tmp dirs for .tar.gz processing, see: https://github.com/cloudera/cloudera-scripts-for-log4j/issues/24#issuecomment-997813641

lhoss avatar Dec 20 '21 11:12 lhoss