Created 12-19-2018 05:10 PM
hi all
in our ambari cluster , on masters machine ( name node )
we noticed that /tmp is full with Thousands of empty folders and files , and also folder and files with content that are real huge
and we are worry if /tmp will be full , then deletion will not succeeded
therefore we want to minimized the capacity on /tmp
my question is -
regarding that ambari services are also used the /tmp and HIVE service and others
we want to set the cleaning of /tmp in way that every folder / file will be deleted if they are old then one hour
is it ok?
we have ambari cluster - version 2.6.1 and HDP version - 2.6.4
Created 12-19-2018 05:36 PM
Hi @Michael Bronson,
I dont this ambari is managing the /tmp folder or dont think ambari can help you automate the deletion.
why dont you create some cron job to perform this task of your own.
something like this : https://askubuntu.com/questions/789602/auto-delete-files-older-than-7-days
Please accept the answer if this helps you
Created 12-19-2018 05:48 PM
i not agree with you see that from /tmp
drwx------ 2 hive hadoop 6 Dec 19 16:14 ca97d088-2786-4cab-aaf8-0d9720ab22e0_resources drwx------ 2 hive hadoop 6 Dec 19 16:19 bb2964f9-f197-40ce-a617-a2342c2e28d0_resources drwx------ 2 hive hadoop 6 Dec 19 16:24 12acfc15-f1a4-4418-bb2a-b35b132af7a8_resources drwx------ 2 hive hadoop 6 Dec 19 16:29 94a46118-8841-453a-a124-0504dbcd3120_resources drwx------ 2 hive hadoop 6 Dec 19 16:34 4490a915-be8e-467a-81a1-0ccc53f246ac_resources drwx------ 2 hive hadoop 6 Dec 19 16:39 7ab699f6-22a3-44c3-b9eb-3c12078c6f2f_resources drwx------ 2 hive hadoop 6 Dec 19 16:44 9d8607df-8be7-414b-8d20-b529a4f5fcd2_resources drwx------ 2 hive hadoop 6 Dec 19 16:49 3941981e-a2bc-4286-af65-b74375fe6839_resources drwx------ 2 hive hadoop 6 Dec 19 16:54 f1851c8c-d553-42a7-99d2-b9135fae9d81_resources drwx------ 2 hive hadoop 6 Dec 19 16:59 28f2a0c8-ebc8-469c-ba7c-757b9df15c0c_resources drwx------ 2 hive hadoop 6 Dec 19 17:04 7d001003-fdc7-4c7c-bed0-43afed7a6d0a_resources drwx------ 2 hive hadoop 6 Dec 19 17:09 fc48a69f-fd9e-4530-a00f-8693382e000c_resources drwx------ 2 hive hadoop 6 Dec 19 17:14 9ae68499-c35f-4510-9248-6ccc5f3e5df5_resources drwx------ 2 hive hadoop 6 Dec 19 17:19 fec73ee8-daa4-429a-9a16-75aa96afb05f_resources drwx------ 2 hive hadoop 6 Dec 19 17:24 a2fdbd8d-28e3-4340-bf63-09566e557a0a_resources drwx------ 2 hive hadoop 6 Dec 19 17:29 206aa296-cbfd-450b-a29f-80c1c5f58adf_resources drwx------ 2 hive hadoop 6 Dec 19 17:34 23b94495-a76c-41da-89e6-f01a4f052f80_resources drwx------ 2 hive hadoop 6 Dec 19 17:39 21f73c7e-9c79-449e-a513-619b762808f6_resources