Spark Installation on windows 8

Hi All,

I have downloaded spark for windows and extracted the rar file and found spark-2.1.1-bin-hadoop2.7 in the folder unable to extract the list of subfolders from the file . What should be my move? please suggest.

Thanks in advance.

Regards,
Bharath

Is it showing any errors?

Not able to extract sub folders? - May be corrupted, can you download completely and try again.

NO. when I downloaded it downloaded as tar file spark-2.1.1-bin-hadoop2.7.tar
then when I unzipped I got it as spark-2.1.1-bin-hadoop2.7 and no sub folders.

How do I proceed ?

Regards,
Bharath

How you are unzipping it? Any software?

Can you open the tar file itself in a file compression software and see if there are any files?

I used WinRAR for unzipping the spark software

OK. Please paste the screen shot to see what exactly happening. I tried here in windows 8, it is fine. I am able to get sub folders and files after unzip.

Ok. I dont know how did you get .tar extension to that file. But when you download from the the file has .tgz extension.

It should not show that extension specifically. Please check my screen shot below. So try this way

  1. Manually remove that extension and then say extract here

or
2. Delete that file and download .tgz file from the below link.

https://spark.apache.org/downloads.html

1 Like

Hi ,

I started afresh download but it still takes the tar. tried multiple times unable to get tgz format.

Regards,
Bharath

In the screen shot also you can see that from spark website itself we can download tgz which can be extracted using winrar in windows. So I am not sure how come you are getting tar file which is not extractable.

Hi Vinod,

Thank a ton for all the support.
I was wondering why this is happening.
I have downloaded in other system and copied tgz file in to my system.

Regards,
Bharath

1 Like

Hi Vinod,

stuck with the following error.

C:\spark\bin>spark-shell
’cmd’ is not recognized as an internal or external command,
operable program or batch file.

Please sugest.

Regards,
Bharath

Did you update the system variables?

If no, Please update spark bin in Path variable by going to Advanced System Settings -> Environment Variables -> Update Path Variable with spark bin location.

Then close the any open command prompt and run command prompt again.

Please see the below screen shots for your reference.

Hi Vinod,

I have installed spark and set the environment variables as below still I see this error

Microsoft Windows [Version 6.3.9600]
© 2013 Microsoft Corporation. All rights reserved.

C:\spark\bin>spark-shell
‘cmd’ is not recognized as an internal or external command,
operable program or batch file.

C:\spark\bin>spark-shell
‘cmd’ is not recognized as an internal or external command,
operable program or batch file.

Please help me to proceed.

Thanks in advance.

Regards,
Bharath

Sorry for the delay response…But still your system variables not set properly.