Skip to content

Commit 177d973

Browse files
author
James Lee
committed
remove deprecated API and clean build.gradle
1 parent 5d40767 commit 177d973

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

build.gradle

-10
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
11
group 'jameslee'
22
version '1.0-SNAPSHOT'
33

4-
apply plugin: 'java'
54
apply plugin: 'scala'
65
apply plugin: 'idea'
76
apply plugin: 'eclipse'
87

9-
sourceCompatibility = 1.8
10-
11-
idea {
12-
project {
13-
jdkName = '1.8'
14-
languageLevel = '1.8'
15-
}
16-
}
17-
188
repositories {
199
mavenCentral()
2010
}

src/main/scala/com/sparkTutorial/sparkSql/RddDatasetConversion.scala

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.sparkTutorial.sparkSql
22

33
import com.sparkTutorial.commons.Utils
44
import org.apache.log4j.{Level, Logger}
5-
import org.apache.spark.sql.{SQLContext, SparkSession}
5+
import org.apache.spark.sql.SparkSession
66
import org.apache.spark.{SparkConf, SparkContext}
77

88

@@ -13,7 +13,6 @@ object RddDatasetConversion extends Serializable{
1313
val conf = new SparkConf().setAppName("StackOverFlowSurvey").setMaster("local[1]")
1414

1515
val sc = new SparkContext(conf)
16-
val sqlContext = new SQLContext(sc)
1716

1817
val session = SparkSession.builder().appName("StackOverFlowSurvey").master("local[1]").getOrCreate()
1918

0 commit comments

Comments
 (0)