How to install Scala Build Tool SBT on ubuntu

+1 vote
Hi,

I need to make Scala project for that I need to install SBT on my ubuntu. Can Someone help with the exact steps how to install?
Jul 23, 2019 in Apache Spark by Neerja
1,695 views

1 answer to this question.

+1 vote
Best answer

Hey,

To install SBT on Ubuntu first you need to make sure Java 8 jdk is installed or not, to install java 8 jdk in your OS use this command in your terminal:

sudo apt-get install openjdk-8-jdk

Next, you should check your Java is installed or not in your system, to check which version of Java is installed in your system check with this command:

javac -version

If not installed then you can follow this: https://www.edureka.co/community/39741/install-java-on-ubuntu?show=39741#q39741

After you are done with the Java installation you can install Scala with the help of this command in your terminal:

wget https://downloads.lightbend.com/scala/2.13.0/scala-2.13.0.rpm

It will install Scala in your system and check to Scala has installed in your Ubuntu use this command:

scala -version

This will show which version of Scala you are using.

Now to install SBT you need to use this command in your terminal:

sudo yum install sbt

After installing you need to create a directory for SBT where the project will be created, for that you need to use this command:

mkdir sbt_project 
cd sbt_project 

Inside sbt_project you need to give sbt (which will download will the necessary files for sbt)

Once you see sbt: sbt_project command prompt in your terminal, that means your SBT has installed properly.

Hope it helps.

To know more about Spark Scala, It's recommended to join Spark training online today.

Thanks!!

answered Jul 23, 2019 by Gitika
• 65,770 points

selected Jul 24, 2019 by Vardhan

Related Questions In Apache Spark

0 votes
1 answer

How to stop messages from being displayed on spark console?

In your log4j.properties file you need to ...READ MORE

answered Apr 24, 2018 in Apache Spark by kurt_cobain
• 9,350 points
5,617 views
0 votes
1 answer

When running Spark on Yarn, do I need to install Spark on all nodes of Yarn Cluster?

No, it is not necessary to install ...READ MORE

answered Jun 14, 2018 in Apache Spark by nitinrawat895
• 11,380 points
6,312 views
0 votes
1 answer

How to stop INFO messages displaying on Spark console?

Just do the following: Edit your conf/log4j.properties file ...READ MORE

answered Aug 21, 2018 in Apache Spark by nitinrawat895
• 11,380 points
2,374 views
0 votes
1 answer

How to delay live entity updates on Spark ?

You can do this by increasing the ...READ MORE

answered Mar 6, 2019 in Apache Spark by Rohit
743 views
0 votes
1 answer
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
1,330 views
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
1,227 views
0 votes
1 answer

Install Python on Ubuntu

@Abha you are right about pre-installation of python, ...READ MORE

answered Mar 1, 2019 in Python by Pratibha
• 3,690 points
1,182 views
0 votes
1 answer

How to calculate the result of formula with Scala?

Hi, You can use a simple mathematical calculation ...READ MORE

answered Jul 1, 2019 in Apache Spark by Gitika
• 65,770 points
1,307 views
0 votes
2 answers

How to execute a function in apache-scala?

Function Definition : def test():Unit{ var a=10 var b=20 var c=a+b } calling ...READ MORE

answered Aug 5, 2020 in Apache Spark by Ramkumar Ramasamy
1,129 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP