How to execute scala programming

0 votes
How to execute scala programming?
Nov 16, 2020 in Big Data Hadoop by anonymous
• 10,440 points
95 views

1 answer to this question.

0 votes

We can execute a Scala program in two modes: one is an interactive mode and another is script mode.

Interactive Mode

Open the command prompt and use the following command to open Scala.

\>scala

If Scala is installed in your system, the following output will be displayed −

Welcome to Scala version 2.9.0.1
Type in expressions to have them evaluated.
Type :help for more information.

Type the following text to the right of the Scala prompt and press the Enter key −

scala> println("Hello, Scala!");

It will produce the following result −

Hello, Scala!
answered Nov 16, 2020 by Gitika
• 65,870 points

Related Questions In Big Data Hadoop

0 votes
1 answer

How to practice programming with Hadoop?

Well there are multiple ways to solve ...READ MORE

answered Mar 29, 2018 in Big Data Hadoop by kurt_cobain
• 9,390 points
1,121 views
0 votes
1 answer

How to groupBy/count then filter on count in Scala

I think the exception is caused because ...READ MORE

answered Apr 19, 2018 in Big Data Hadoop by kurt_cobain
• 9,390 points
22,293 views
0 votes
1 answer

How to execute python script in hadoop file system (hdfs)?

If you are simply looking to distribute ...READ MORE

answered Sep 19, 2018 in Big Data Hadoop by digger
• 26,700 points
7,740 views
0 votes
1 answer

How to write a file in HDFS using Java Programming language?

Define the HADOOP_CONF_DIR environment variable to your Hadoop configuration ...READ MORE

answered Sep 28, 2018 in Big Data Hadoop by Frankie
• 9,810 points
1,335 views
0 votes
1 answer

How to start working with scala?

Scala can be installed on any UNIX ...READ MORE

answered Nov 16, 2020 in Big Data Hadoop by Gitika
• 65,870 points
56 views
0 votes
1 answer

How to write a Scala program in script mode?

Open notepad and add the following code ...READ MORE

answered Nov 16, 2020 in Big Data Hadoop by Gitika
• 65,870 points
93 views
0 votes
1 answer

How to import scala packages?

Scala packages can be imported so that ...READ MORE

answered Nov 16, 2020 in Big Data Hadoop by Gitika
• 65,870 points
57 views
0 votes
1 answer

How to declare a variable in Scala?

The following is an example program that ...READ MORE

answered Nov 16, 2020 in Big Data Hadoop by Gitika
• 65,870 points
76 views
0 votes
1 answer

how to execute pig script in MapReduce mode?

Hey, To execute pig script we can use ...READ MORE

answered May 7, 2019 in Big Data Hadoop by Gitika
• 65,870 points
543 views
0 votes
1 answer

How to execute job In Oozie?

Hi, You can use this command to execute the job ...READ MORE

answered Jun 17, 2019 in Big Data Hadoop by Gitika
• 65,870 points
106 views