public static String getBaseName(LocalResource lr) {
    return FilenameUtils.getName(lr.getResource().getFile());
  }
Testing related; creates an empty archive to served being localized as hive-exec
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java