Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ls -l /usr/share/aws/redshift/jdbc/
- RedshiftJDBC41-1.2.7.1003.jar
- RedshiftJDBC42-1.2.7.1003.jar
- import org.apache.spark.sql._
- val sqlContext = new SQLContext(sc)
- val df : DataFrame = sqlContext.read
- .option("url","jdbc:redshift://host:PORT/DB-name?user=user&password=password")
- .option("dbtable","tablename")
- .load()
- org.apache.spark.sql.AnalysisException: Unable to infer schema for Parquet. It must be specified manually.;
Add Comment
Please, Sign In to add comment