PySpark Tutorial 2: Create SparkSession in PySpark | PySpark with Python

  Рет қаралды 15,040

Stats Wire

Stats Wire

Күн бұрын

Пікірлер: 39
@arihantjain2289
@arihantjain2289 Жыл бұрын
Can you help me my spark session is taking forever to create like 1 hour the command is still not executed. What to do?
@StatsWire
@StatsWire Жыл бұрын
Did you follow the steps? or you should check the documentation
@Sehajbir_Singh12
@Sehajbir_Singh12 7 ай бұрын
is there a way to save the session before exitingg, and open and continue from where we left ?
@StatsWire
@StatsWire 6 ай бұрын
You can pass the parameter to keep the session alive based on the hours
@ashwinjoshi3331
@ashwinjoshi3331 Жыл бұрын
Hi, I am facing below issue while importing spark session Error : "cannot import name 'SparkSesson' from 'pyspark.sql' (C:\bigdata\spark3\python\pyspark\sql\__init__.py)" I used the command "from pyspark.sql import SparkSesson" I am not sure if it is anything related to path ?
@StatsWire
@StatsWire Жыл бұрын
You have made a spelling mistake in the above statement ""from pyspark.sql import SparkSesson", i is missing in SparkSession
@parayou6274
@parayou6274 2 жыл бұрын
I am trying everything, but I can't initialize the Spark Session I got stuck on this Error: NameError: name 'SparkSession' is not defined Could you help me ?
@StatsWire
@StatsWire 2 жыл бұрын
Is spark properly installed? First import SparkSession and see you are able to import it.
@satishmajji481
@satishmajji481 2 жыл бұрын
You said both are entry points for spark functionality. What's the exact difference between SparkContext and SparkSession?
@StatsWire
@StatsWire 2 жыл бұрын
SparkContext used to work before the spark 2.0 version and now we just need sparksession. We don't need sparkcontext anymore.
@glong6327
@glong6327 2 жыл бұрын
Hi. I had followed your instruction but it got an issue: my Executors in Spark UI shows nothing. Do you have any idea? Thanks for your helpful video.
@StatsWire
@StatsWire 2 жыл бұрын
Are you able to create sparksession? You can set some executors then see.
@172_venkateshtohgaonkar5
@172_venkateshtohgaonkar5 11 ай бұрын
hii i am facing issue while creating the spark session ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
@StatsWire
@StatsWire 10 ай бұрын
This looks like some connection issue.
@helovesdata8483
@helovesdata8483 2 жыл бұрын
How do you setup the 8 cores on a local system? I put local 4 and its only using 2.
@StatsWire
@StatsWire 2 жыл бұрын
Try to increase the core and see how much it is using
@nullb1423
@nullb1423 2 жыл бұрын
When I execute line 2 I get: "The system cannot find the given path". in cmd Do you know how I can solve that problem?
@StatsWire
@StatsWire 2 жыл бұрын
Have you set environment variables?
@nullb1423
@nullb1423 2 жыл бұрын
@@StatsWire yes
@ana-in1ws
@ana-in1ws Жыл бұрын
Hey i am facing the same issue. Do you know how to resolve this?
@shivakant4698
@shivakant4698 3 жыл бұрын
I launched spark shell but sc or spark is not available please solve this issue.
@StatsWire
@StatsWire 3 жыл бұрын
Can you please paste the error here so I can help you?
@mazharalamsiddiqui6904
@mazharalamsiddiqui6904 3 жыл бұрын
Very nice tutorial
@StatsWire
@StatsWire 3 жыл бұрын
Thank you
@madhumallarapu5384
@madhumallarapu5384 2 жыл бұрын
Thank you sir
@StatsWire
@StatsWire 2 жыл бұрын
You're welcome
@anupgupta5781
@anupgupta5781 3 жыл бұрын
I sm always getting error this spark may be existing one but I am trying for first time
@StatsWire
@StatsWire 3 жыл бұрын
Can you please paste the error here so I can help you
@anupgupta5781
@anupgupta5781 3 жыл бұрын
@@StatsWire hey thanks for your reply that error was because of Java Path , also again getting another error could you help which Java and Python version are compatible
@StatsWire
@StatsWire 3 жыл бұрын
@@anupgupta5781 first you need to set up spark properly like you will have to install java jdk, hadoop etc. My java version is 14.0.2 and python version is 3.8.3 I will share a link with you, you can watch the video install and install pyspark Link: kzbin.info/www/bejne/bYKkp5iLh65rkKs
@anupgupta5781
@anupgupta5781 3 жыл бұрын
@@StatsWire thankyou
@StatsWire
@StatsWire 3 жыл бұрын
@@anupgupta5781 you're welcome
@sandeepnelwade
@sandeepnelwade 2 жыл бұрын
Got error when I create sparksession
@StatsWire
@StatsWire 2 жыл бұрын
Can you please paste the error.
@لاالہالااللہ-ع8و6ز
@لاالہالااللہ-ع8و6ز 2 жыл бұрын
I am stuck here " spark=SparkSession.builder.appName("Practice").getOrCreat().config("spark").getOrCreat()" he is showing error : AttributeError: 'Builder' object has no attribute 'getOrCreat'
@StatsWire
@StatsWire 2 жыл бұрын
Did you install spark correctly?
@لاالہالااللہ-ع8و6ز
@لاالہالااللہ-ع8و6ز 2 жыл бұрын
@@StatsWire I am using only Jupyter without installing
@StatsWire
@StatsWire 2 жыл бұрын
@@لاالہالااللہ-ع8و6ز First you have to install spark
@fariz2441
@fariz2441 Жыл бұрын
I think your problem might be because you mistyped where you typed 'getOrCreat()' instead of 'getOrCreate()'
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Building LLM Agents with Tool Use
7:39
Jay Alammar
Рет қаралды 148 М.
The ONLY PySpark Tutorial You Will Ever Need.
17:21
Moran Reznik
Рет қаралды 151 М.
Advancing Spark - Understanding the Spark UI
30:19
Advancing Analytics
Рет қаралды 57 М.
Spark Session vs Spark Context | Spark Internals
8:08
Data Savvy
Рет қаралды 73 М.
Spark Session vs Spark Context | Explained in 5 mins | Spark
4:29
shafi usman
Рет қаралды 3,9 М.
Learn Apache Spark in 10 Minutes | Step by Step Guide
10:47
Darshil Parmar
Рет қаралды 394 М.
#2 Different ways of creating Data Frame in PySpark | Data Frame in PySpark
16:21
Keshav- Learn !T - Self
Рет қаралды 3 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН