Helper to remove a dfs file from the minicluster DFS @param miniCluster reference to the Minicluster where the file should be deleted @param fileName pathname of the file to be deleted @throws IOException
(MiniGenericCluster miniCluster, String fileName)
| 472 | * @throws IOException |
| 473 | */ |
| 474 | static public void deleteFile(MiniGenericCluster miniCluster, String fileName) |
| 475 | throws IOException { |
| 476 | FileSystem fs = miniCluster.getFileSystem(); |
| 477 | if(Util.WINDOWS){ |
| 478 | fileName = fileName.replace('\\','/'); |
| 479 | } |
| 480 | fs.delete(new Path(fileName), true); |
| 481 | } |
| 482 | |
| 483 | /** |
| 484 | * Deletes a dfs file from the MiniCluster DFS quietly |
no test coverage detected