aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSebastián Ramírez <tiangolo@gmail.com>2016-02-09 08:49:34 +0000
committerSean Owen <sowen@cloudera.com>2016-02-09 08:49:34 +0000
commitc882ec57de509895706dcafea8234238e4277a2d (patch)
tree54cefee7b36f6387f45222a90a66271657447810 /docs
parentce83fe9756582e73ada21c3741d15aa9bbf385ed (diff)
downloadspark-c882ec57de509895706dcafea8234238e4277a2d.tar.gz
spark-c882ec57de509895706dcafea8234238e4277a2d.tar.bz2
spark-c882ec57de509895706dcafea8234238e4277a2d.zip
[SPARK-13040][DOCS] Update JDBC deprecated SPARK_CLASSPATH documentation
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 <tiangolo@gmail.com> Closes #10948 from tiangolo/patch-docs-jdbc.
Diffstat (limited to 'docs')
-rw-r--r--docs/sql-programming-guide.md2
1 files changed, 1 insertions, 1 deletions
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