1
0

[HUDI-544] Archived commits command code cleanup (#1242)

* Archived commits command code cleanup
This commit is contained in:
hongdd
2020-09-26 00:36:41 +08:00
committed by GitHub
parent 6837118c21
commit 2eaba0962a
3 changed files with 24 additions and 7 deletions

View File

@@ -132,6 +132,13 @@ public class ITTestHoodieSanity extends ITTestBase {
String hdfsPath = "/" + hiveTableName;
String hdfsUrl = HDFS_BASE_URL + hdfsPath;
// Delete hdfs path if it exists
try {
executeCommandStringInDocker(ADHOC_1_CONTAINER, "hdfs dfs -rm -r " + hdfsUrl, true);
} catch (AssertionError ex) {
// Path not exists, pass
}
// Drop Table if it exists
try {
dropHiveTables(hiveTableName, tableType);