Download scalaIDE to run scala applications http://scala-ide.org/
Now we’ll see the installation steps :
- Install Java 7 or later. Set JAVA_HOME and PATH variable as environment variables.
- Download Scala 2.10 and install. Set SCALA_HOME andadd %SCALA_HOME%\bin in PATH variable in environment variables. To test whether Scala is installed or not, run following command.
- Next thing is Spark. Spark can be installed in two ways.
- Building Spark using SBT
- Use Prebuilt Spark package
- Download SBT and install. Set SBT_HOME and PATH variable in environment variables.
- Download source code from Spark website against any of the Hadoop version.
- Run sbt assembly command to build the Spark package
- You need to set Hadoop version also while building as follows :
- sbt –Pyarn –pHadoop 2.3 assembly
Using Spark Prebuilt Package:
- Choose a Spark prebuilt package for Hadoop i.e. Prebuilt for Hadoop 2.3/2.4 or later. Download and extract it to any drive i.e. D:\spark-1.2.1-bin-hadoop2.3
- Set SPARK_HOME and add %SPARK_HOME%\bin in PATH in environment variables
- Run following command on command line.
- You’ll get and error for winutils.exe:
Though we aren’t using Hadoop with Spark, but somewhere it checks for HADOOP_HOME variable in configuration. So to overcome this error, download winutils.exe and place it in any location (i.e. D:\winutils\bin\winutils.exe).
- Set HADOOP_HOME = D:\winutils in environment variable
- Now, Re run the command “spark-shell’ , you’ll see the scala shell
- Here sometimes you can get the \tmp\hive folder have read and write permissions. Because of this issue you were unable to create sqlcontext. To fix this issue:
From command line --> winutil folder --> bin\winutil.exe chmod 777 /tmp/hive
if office workstation you will not have permissions to change. But if your installation points to D: folder then you can give the access to the /tmp/hive.
- For Spark UI : open http://localhost:4040/ in browser
- For testing the successful setup you can run the example :
- It will execute the program and return the result :
Enjoy the installation process :-)
Very nice article,thank you...
ReplyDeleteBig Data Hadoop Training
what is azure
ReplyDeleteazure trial account
azure data factory
adf interview questions
azure certification path
azure traffic manager
cloudkeeda
cloudkeeda
Smm panel
ReplyDeleteSmm panel
İs ilanlari blog
instagram takipçi satın al
hirdavatciburada.com
Https://www.beyazesyateknikservisi.com.tr/
servis
jeton hilesi indir
pendik arçelik klima servisi
ReplyDeletetuzla samsung klima servisi
kadıköy mitsubishi klima servisi
ümraniye beko klima servisi
pendik toshiba klima servisi
pendik beko klima servisi
tuzla lg klima servisi
tuzla alarko carrier klima servisi
tuzla daikin klima servisi
uc satın al
ReplyDeleteyurtdışı kargo
nft nasıl alınır
en son çıkan perde modelleri
en son çıkan perde modelleri
minecraft premium
özel ambulans
lisans satın al
Good content. You write beautiful things.
ReplyDeletesportsbet
sportsbet
mrbahis
korsan taksi
vbet
hacklink
taksi
mrbahis
vbet
manisa
ReplyDeletemaraş
mardin
marmaris
mersin
İV23
kocaeli
ReplyDeletekonya
kuşadası
kütahya
malatya
NDK
şile
ReplyDeletesincan
balıkesir
zonguldak
marmaris
VBK3G5
https://saglamproxy.com
ReplyDeletemetin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
TSNJ
ağrı
ReplyDeleteaksaray
amasya
antep
ardahan
JKW0
ağrı
ReplyDeleteaksaray
amasya
antep
ardahan
AUDRK
çorlu
ReplyDeletebolu
ısparta
afyon
amasya
EEF6Q3
صيانة افران جدة fBUlR5u3Wm
ReplyDelete