Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Explain what the below code does package com.clairvoyant.spark_workshop.exercise3.java; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaSparkContext; /** * Created by robertsanders on 11/1/15. */ public class Exercise3JavaSparkApp { public
Explain what the below code does
package com.clairvoyant.spark_workshop.exercise3.java;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaSparkContext;
/**
* Created by robertsanders on 11/1/15.
*/
public class Exercise3JavaSparkApp {
public static void main(String[] args) {
SparkConf conf = new SparkConf().setAppName("Exercise3JavaSparkApp").setMaster("yarn-client");
JavaSparkContext sc = new JavaSparkContext(conf);
}
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
ANSWER This code sets up a SparkConf object with the app name Exercise3JavaSparkApp and the master U...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started