Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Out-of-scope User Stories (4.0 and beyond)

  1. Support of accessing entities other than dataset/stream in different namespace. For example, a cdap user in namespace ns1, I should be able to create an application app1 using an artifact artifact2 which is present in namespace ns2. 
  2. Cross namespace access in explore queries with cdap namespace. Currently, users can do cross namespace access by providing the underlying hive database name.
  3. Admin interface for Dataset should be able to perform crossname namespace access. 

References


Appendix A: API changes

  1. Code Block
    languagejava
    titleChanges for dataset
    // Dataset Context:
    <T extends Dataset> T getDataset(String namespace, String name) 
    <T extends Dataset> T getDataset(String namespace, String name, Map<String, String> arguments) 
    
    
    
    // Add APIs to programs to support accessing dataset from a different namespace: 
    
    // MapReduce: 
    context.addInput(Input.ofStream("stream").fromNamespace("ns")); 
    
    // Spark: 
    public <K, V> JavaPairRDD<K, V> fromDataset(String namespace, String datasetName) 
    
    public <K, V> JavaPairRDD<K, V> fromDataset(String namespace, String datasetName, Map<String, String> arguments) 
    
    public abstract <K, V> JavaPairRDD<K, V> fromDataset(String namespace, String datasetName, Map<String, String> arguments, @Nullable Iterable<? extends Split> splits); 
Code Block
languagejava
titleChanges for dataset
// Dataset Context:
<T extends Dataset> T getDataset(String namespace, String name) 
<T extends Dataset> T getDataset(String namespace, String name, Map<String, String> arguments) 



// Add APIs to programs to support accessing dataset from a different namespace: 

// MapReduce: 
context.addInput(Input.ofStream("stream").fromNamespace("ns")); 

// Spark: 
public <K, V> JavaPairRDD<K, V> fromDataset(String namespace, String datasetName) 

public <K, V> JavaPairRDD<K, V> fromDataset(String namespace, String datasetName, Map<String, String> arguments) 

public abstract <K, V> JavaPairRDD<K, V> fromDataset(String namespace, String datasetName, Map<String, String> arguments, @Nullable Iterable<? extends Split> splits);