Unused import statement 'SparkConf'

Hi, I am trying to complile the following code on PyCharm:

#lines:
from pyspark import SparkConf, SparkContext

sc = SparkContext(master=“local”, appName=“Spark Demo”)
print(sc.textFile(“C:\deckofcards.txt”).first())
#lastline

However I got the following issue:

Unused import statement ‘SparkConf’

Does anybody knows the reason and could help me out please?


Learn Spark 1.6.x or Spark 2.x on our state of the art big data labs

  • Click here for access to state of the art 13 node Hadoop and Spark Cluster