cloudera / cloudera-scripts-for-log4j

Scripts for addressing log4j zero day security issue
Apache License 2.0
87 stars 68 forks source link

/tmp as backup dir is hardcoded #24

Open nashvm opened 2 years ago

nashvm commented 2 years ago

Hi,

backups go the /tmp hardcoded. On our systems /tmp is not big enough., so we change it to an other directory.

Question: can you make the “/tmp” backup dir an option or variable?

export TMPDIR=/opt/cloudera/tmp

changes we need to make: local_path=“/opt/cloudera/tmp/hdfs_tar_files.${current_time}” hdfs_bc_path=“/opt/cloudera/tmp/backup.${current_time}"

Regards, Hans

jtran-cloudera commented 2 years ago

Thanks for the report. We will consider making it customizable.

lhoss commented 2 years ago

I had exactly the same issue ( /tmp is not big enough), due to 5GB+ CDSW parcel .tar.gz files

lhoss commented 2 years ago

Update