From c882ec57de509895706dcafea8234238e4277a2d Mon Sep 17 00:00:00 2001 From: Sebastián Ramírez Date: Tue, 9 Feb 2016 08:49:34 +0000 Subject: [SPARK-13040][DOCS] Update JDBC deprecated SPARK_CLASSPATH documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update JDBC documentation based on http://stackoverflow.com/a/30947090/219530 as SPARK_CLASSPATH is deprecated. Also, that's how it worked, it didn't work with the SPARK_CLASSPATH or the --jars alone. This would solve issue: https://issues.apache.org/jira/browse/SPARK-13040 Author: Sebastián Ramírez Closes #10948 from tiangolo/patch-docs-jdbc. --- docs/sql-programming-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md index 550a40010e..ce53a39f9f 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 -- cgit v1.2.3