Skip to content

Commit 885b664

Browse files
committed
Rename DropDataset to DeleteDataset.
1 parent 6803ecb commit 885b664

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

logging/src/main/java/com/cloudera/cdk/examples/logging/DropDataset.java renamed to logging/src/main/java/com/cloudera/cdk/examples/logging/DeleteDataset.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/**
2626
* Drop the events dataset.
2727
*/
28-
public class DropDataset extends Configured implements Tool {
28+
public class DeleteDataset extends Configured implements Tool {
2929

3030
@Override
3131
public int run(String[] args) throws Exception {
@@ -35,13 +35,13 @@ public int run(String[] args) throws Exception {
3535
.rootDirectory(new URI("/tmp/data")).configuration(getConf()).get();
3636

3737
// Drop the events dataset
38-
boolean success = repo.drop("events");
38+
boolean success = repo.delete("events");
3939

4040
return success ? 0 : 1;
4141
}
4242

4343
public static void main(String... args) throws Exception {
44-
int rc = ToolRunner.run(new DropDataset(), args);
44+
int rc = ToolRunner.run(new DeleteDataset(), args);
4545
System.exit(rc);
4646
}
4747
}

0 commit comments

Comments
 (0)