- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Importerrir: cannot import name SparkSession
- Labels:
-
Apache Spark
Created ‎04-17-2020 06:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am using Cloudera Quickstart VM 5.13.0 to write code using pyspark.
Trying to import SparkSession using below command:
from pyspark.sql import SparkSession
It's throwing an error saying Importerrir: cannot import name SparkSession
I need help to fix this. Please suggest me if anything missed
Created ‎04-30-2020 12:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I have fixed this issue by updating spark to 2.4.5 as SparkSession has introduced from 2.0.
Earlier, spark 1.6 was installed and could not proceed to import SparkSession.
Thanks all...!!!
Regards,
Shankar.
Created ‎04-18-2020 09:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Below is the screenshot of my code and error message.
Created ‎04-30-2020 12:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I have fixed this issue by updating spark to 2.4.5 as SparkSession has introduced from 2.0.
Earlier, spark 1.6 was installed and could not proceed to import SparkSession.
Thanks all...!!!
Regards,
Shankar.
Created ‎02-10-2023 01:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Shankar,
Please did the portal request username and password before allowing you to download Spark 2.4.5 ?
I have the same issue , but it ask me for credentials when I try to download. How do I get this credential? I have tried by just setting up an account, but that did not work.
Thanks
Lewi.
