Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on
06-02-2022
09:41 AM
- last edited on
04-21-2026
12:55 AM
by
GrazittiAPI
Hello,
due to a problem with a script, we have almost saturated the HDFS available space.
I suppose this is caused by temporary Hive files that have not been cleaned up due to the abnormal termination of the script.
I would like to check the /tmp/hive folder on HDFS but my user, that has administrative privileges, cannot access the /tmp/hive folder.
Is there a way to check and clean such folder?
Any help would be appreciated.
KRs,
Andrea
Created 06-07-2022 10:45 AM
Hi Andrea,
use hdfs keytab to clear them
NAME=hdfs;
KEYTAB=$(find /run/cloudera-scm-agent/process -name ${NAME}.keytab -path "*${NAME}-*" | sort | tail -n 1);
PRINCIPAL=$(klist -kt "$KEYTAB" | awk '{ print $4 }' | grep "^${NAME}" | head -n 1);
kinit -kt "${KEYTAB}" "${PRINCIPAL}"
Thanks,
Vinay
Created 06-02-2022 12:00 PM
Hi Andrea,
Is this a kerberized environment?
Best,
-JMP
Created 06-02-2022 02:51 PM
Hi JM, yes it's a kerberized environment.
KRs,
Andrea
Created 06-06-2022 02:51 PM
Created 06-07-2022 10:45 AM
Hi Andrea,
use hdfs keytab to clear them
NAME=hdfs;
KEYTAB=$(find /run/cloudera-scm-agent/process -name ${NAME}.keytab -path "*${NAME}-*" | sort | tail -n 1);
PRINCIPAL=$(klist -kt "$KEYTAB" | awk '{ print $4 }' | grep "^${NAME}" | head -n 1);
kinit -kt "${KEYTAB}" "${PRINCIPAL}"
Thanks,
Vinay