You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2016/02/09 09:49:36 UTC

spark git commit: [SPARK-13040][DOCS] Update JDBC deprecated SPARK_CLASSPATH documentation

Repository: spark
Updated Branches:
  refs/heads/master ce83fe975 -> c882ec57d


[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 <ti...@gmail.com>

Closes #10948 from tiangolo/patch-docs-jdbc.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/c882ec57
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/c882ec57
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/c882ec57

Branch: refs/heads/master
Commit: c882ec57de509895706dcafea8234238e4277a2d
Parents: ce83fe9
Author: Sebastián Ramírez <ti...@gmail.com>
Authored: Tue Feb 9 08:49:34 2016 +0000
Committer: Sean Owen <so...@cloudera.com>
Committed: Tue Feb 9 08:49:34 2016 +0000

----------------------------------------------------------------------
 docs/sql-programming-guide.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/c882ec57/docs/sql-programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md
index 550a400..ce53a39 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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org