Spark Installation problem

0 votes

I've downloaded Spark, and unzipped and used the cd command to bin directory but it's showing an error on invoking.

[edureka@localhost ~]$ cd /home/edureka/Downloads/spark-2.4.0-bin-hadoop2.7/bin/[edureka@localhost bin]$ spark-shell
bash: spark-shell: command not found
Jul 5 in Apache Spark by Jin
22 views

1 answer to this question.

0 votes

After downloading Spark, you need to set the path for SPARK_HOME in the .bashrc file. Execute the below command to open the .bashrc file,

vi ~/.bashrc

After this hit the insert button on your keyboard to edit the .bashrc file. Now, set the SPARK_HOME path as below,

SPARK_HOME=<enter the spark directory path here> 
export PATH=$SPARK_HOME/bin:$PATH

After this, source the .bashrc file with the below command,

source ~/.bashrc

Now, everything is set up. You can run the spark shell now.

answered Jul 5 by Rishi

Related Questions In Apache Spark

0 votes
1 answer

Changing Column position in spark dataframe

Yes, you can reorder the dataframe elements. You need ...READ MORE

answered Apr 19, 2018 in Apache Spark by Ashish
• 2,630 points
4,211 views
0 votes
1 answer

Is there any way to check the Spark version?

There are 2 ways to check the ...READ MORE

answered Apr 19, 2018 in Apache Spark by nitinrawat895
• 10,670 points
1,138 views
+1 vote
2 answers

Hadoop 3 compatibility with older versions of Hive, Pig, Sqoop and Spark

Hadoop 3 is not widely used in ...READ MORE

answered Apr 20, 2018 in Apache Spark by kurt_cobain
• 9,240 points
1,716 views
0 votes
1 answer

Efficient way to read specific columns from parquet file in spark

As parquet is a column based storage ...READ MORE

answered Apr 20, 2018 in Apache Spark by kurt_cobain
• 9,240 points
1,213 views
0 votes
1 answer
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,670 points
2,679 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,670 points
279 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
13,294 views
+5 votes
11 answers

Concatenate columns in apache spark dataframe

its late but this how you can ...READ MORE

answered Mar 21 in Apache Spark by anonymous
28,107 views
0 votes
1 answer

How can I write a text file in HDFS not from an RDD, in Spark program?

Yes, you can go ahead and write ...READ MORE

answered May 29, 2018 in Apache Spark by Shubham
• 13,290 points
1,172 views