Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Py4JJavaErrorin in exercise SparkSQL.ipynb on Coursera UCSD

David Ho:

Background information:

I have installed a Cloudera quickstart virtual machine and run pyspark to open a jupyter notebook for practicing SparkSQL on UCSD Big Data Specialization.

The Command goes like:


`from pyspark.sql import SQLContext`
`sqlsc = SQLContext(sc)`
`df = sqlsc.read.format('jdbc') \
.option('url','jdbc:postgresql://localhost/cloudera?user=cloudera') \
.option('dbtable','gameclicks') \
.load()`

the command return the result as above, and it tells me that cloudera database does not exist.

can anyone kindly tell what leads to the problem? Is it cloudera, postgres database or wrong directory?

Appreciate any helps, thanks!



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Py4JJavaErrorin in exercise SparkSQL.ipynb on Coursera UCSD

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×