diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md index 550a40010e8281a49c729270e8dd213f7542d4c7..ce53a39f9f604700ec0609ee3def27d3fdc4dab7 100644 --- a/docs/sql-programming-guide.md +++ b/docs/sql-programming-guide.md @@ -1869,7 +1869,7 @@ spark classpath. For example, to connect to postgres from the Spark Shell you wo following command: {% highlight bash %} -SPARK_CLASSPATH=postgresql-9.3-1102-jdbc41.jar bin/spark-shell +bin/spark-shell --driver-class-path postgresql-9.4.1207.jar --jars postgresql-9.4.1207.jar {% endhighlight %} Tables from the remote database can be loaded as a DataFrame or Spark SQL Temporary table using