Skip navigation links

Package io.cdap.cdap.api.app

An Application is a logical grouping of Datasets and programs.

See: Description

Package io.cdap.cdap.api.app Description

An Application is a logical grouping of Datasets and programs.

Application

Every Application must either implement the Application interface or extend the AbstractApplication class. Extending AbstractApplication is simpler and helps produce cleaner code.

To create a CDAP Application, first begin by extending the AbstractApplication class, then implement its configure() method. In the configure method, specify the Application's metadata (its name and description), and declare and configure each of the Application elements.

Example usage:

 
 public class MyApp extends AbstractApplication {
    @Override
   public void configure() {
     setName("myApp");
     setDescription("My Sample Application");
     createDataset("myCounters", "KeyValueTable");
     addSpark(new MySparkJob());
     addMapReduce(new MyMapReduceJob());
     addWorkflow(new MyAppWorkflow());
   }
 }
 
 

Dataset

A Dataset defines the storage and retrieval of data. In addition to the several Dataset implementations CDAP provides, you can also implement your own Custom Datasets.

See Dataset for details.

Spark

A Spark program defines the processing of data using Spark.

MapReduce

A MapReduce program to process in batch using MapReduce

Workflow

A Workflow program to orchestrate a series of mapreduce or spark jobs.

Skip navigation links

Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.