Joe McDonnell has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20386


Change subject: IMPALA-12389: Use -skipTrash for 
HadoopFsCommandLineClient::delete_file_dir
......................................................................

IMPALA-12389: Use -skipTrash for HadoopFsCommandLineClient::delete_file_dir

The default behavior for deleting files on Hadoop is to
move them to a trash folder. The trash folder can be
aged out, but Impala's developer environment sets the
trash to live forever. This is a problem, because the
trash contents will continue to accumulate.

This changes HadoopFsCommandLineClient's delete_file_dir
to use -skipTrash to avoid accumulating the trash for
this case. It also modifies DelegatingHdfsClient to use
HadoopFsCommandLineClient for delete_file_dir. The WebHDFS
client doesn't have the option to skip trash.

Testing:
 - Ran tests locally and examined the trash directory

Change-Id: I2d304113596aaf70a122202a33276fc7c3d599e8
---
M tests/util/hdfs_util.py
1 file changed, 3 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/86/20386/1
--
To view, visit http://gerrit.cloudera.org:8080/20386
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d304113596aaf70a122202a33276fc7c3d599e8
Gerrit-Change-Number: 20386
Gerrit-PatchSet: 1
Gerrit-Owner: Joe McDonnell <joemcdonn...@cloudera.com>

Reply via email to