diff --git a/docs/quick-start.md b/docs/quick-start.md index cb5211af377e..7cb3f7513220 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -389,7 +389,7 @@ As an example, we'll create a simple Spark application, `SimpleApp.py`: from pyspark.sql import SparkSession logFile = "YOUR_SPARK_HOME/README.md" # Should be some file on your system -spark = SparkSession.builder().appName(appName).master(master).getOrCreate() +spark = SparkSession.builder.appName("SimpleApp").getOrCreate() logData = spark.read.text(logFile).cache() numAs = logData.filter(logData.value.contains('a')).count() @@ -421,16 +421,15 @@ $ YOUR_SPARK_HOME/bin/spark-submit \ Lines with a: 46, Lines with b: 23 {% endhighlight %} -If you have PySpark pip installed into your enviroment (e.g. `pip instal pyspark` you can run your application with the regular Python interpeter or use the provided spark-submit as you prefer. +If you have PySpark pip installed into your enviroment (e.g., `pip install pyspark`), you can run your application with the regular Python interpreter or use the provided 'spark-submit' as you prefer. {% highlight bash %} -# Use spark-submit to run your application +# Use the Python interpreter to run your application $ python SimpleApp.py ... Lines with a: 46, Lines with b: 23 {% endhighlight %} -