Re: NEWBIE/not able to connect to postgresql using jdbc

2015-04-20 Thread Akhil Das
try doing a sc.addJar(path\to\your\postgres\jar) Thanks Best Regards On Mon, Apr 20, 2015 at 12:26 PM, shashanksoni shashankso...@gmail.com wrote: I am using spark 1.3 standalone cluster on my local windows and trying to load data from one of our server. Below is my code - import os

NEWBIE/not able to connect to postgresql using jdbc

2015-04-20 Thread shashanksoni
I am using spark 1.3 standalone cluster on my local windows and trying to load data from one of our server. Below is my code - import os os.environ['SPARK_CLASSPATH'] = C:\Users\ACERNEW3\Desktop\Spark\spark-1.3.0-bin-hadoop2.4\postgresql-9.2-1002.jdbc3.jar from pyspark import SparkContext,