@Override
  public void serviceStart() throws IOException {
    scheduler.scheduleAtFixedRate(this::cleanup, 0, cleanupIntervalSec, TimeUnit.SECONDS);
  }
LocalDirCleaner is an LLAP daemon service to clean up old local files. Under normal circumstances,
intermediate/local files are cleaned up (typically at end of the DAG), but daemons crash sometimes,
and the attached local disk might end up being the same when a new daemon starts (this applies to
on-prem as well as cloud scenarios).
llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/LocalDirCleaner.java