Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update example to work locally
With setting Master to "local" the example throws a SparkException "A master URL must be set in your configuration"
  • Loading branch information
ets authored Jul 8, 2018
commit 66d56a3c918f6440da238372a833ce8e8fd9b126
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
public class JavaNaiveBayesExample {
public static void main(String[] args) {
SparkConf sparkConf = new SparkConf().setAppName("JavaNaiveBayesExample");
sparkConf.setMaster("local");
JavaSparkContext jsc = new JavaSparkContext(sparkConf);
// $example on$
String path = "data/mllib/sample_libsvm_data.txt";
Expand Down