File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
dataset/src/main/java/com/cloudera/cdk/examples/data Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2424import org .apache .hadoop .util .ToolRunner ;
2525
2626/**
27- * Drop the users dataset and HCatalog metadata.
27+ * Delete the users dataset and HCatalog metadata.
2828 */
2929public class DeleteHCatalogUserDataset extends Configured implements Tool {
3030
@@ -34,7 +34,7 @@ public int run(String[] args) throws Exception {
3434 // Construct an HCatalog dataset repository using managed Hive tables
3535 DatasetRepository repo = new HCatalogDatasetRepository ();
3636
37- // Drop the users dataset
37+ // Delete the users dataset
3838 boolean success = repo .delete ("users" );
3939
4040 return success ? 0 : 1 ;
Original file line number Diff line number Diff line change 2323import org .apache .hadoop .util .ToolRunner ;
2424
2525/**
26- * Drop the products dataset.
26+ * Delete the products dataset.
2727 */
2828public class DeleteProductDataset extends Configured implements Tool {
2929
@@ -34,7 +34,7 @@ public int run(String[] args) throws Exception {
3434 DatasetRepository repo = new FileSystemDatasetRepository .Builder ()
3535 .rootDirectory (new URI ("/tmp/data" )).configuration (getConf ()).get ();
3636
37- // Drop the products dataset
37+ // Delete the products dataset
3838 boolean success = repo .delete ("products" );
3939
4040 return success ? 0 : 1 ;
Original file line number Diff line number Diff line change 2323import org .apache .hadoop .util .ToolRunner ;
2424
2525/**
26- * Drop the users dataset.
26+ * Delete the users dataset.
2727 */
2828public class DeleteUserDataset extends Configured implements Tool {
2929
@@ -34,7 +34,7 @@ public int run(String[] args) throws Exception {
3434 DatasetRepository repo = new FileSystemDatasetRepository .Builder ()
3535 .rootDirectory (new URI ("/tmp/data" )).configuration (getConf ()).get ();
3636
37- // Drop the users dataset
37+ // Delete the users dataset
3838 boolean success = repo .delete ("users" );
3939
4040 return success ? 0 : 1 ;
You can’t perform that action at this time.
0 commit comments