Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Big Data Hadoop & Spark by (11.4k points)

I am using CDH 5.2. I am able to use spark-shell to run the commands.

How can I run the file(file.spark) which contain spark commands.

1 Answer

0 votes
by (32.3k points)
edited by

In the command line, you can use

spark-shell -i file.scala

This will run the code that is present in file.scala

If you want to know more about Spark, then do check out this awesome video tutorial:

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...