env R No such file or directory

0 votes

Hi,

I tried to set sparkR .But I am getting the below error.

$ Spark_Home/bin/sparkR

$ env : R : No such file or directory

I checked all the environment variables. But still I'm getting the same error.

Can anyone solve the issue?

Thank You

Jan 31, 2020 in Apache Spark by Hasid
• 370 points
1,787 views

1 answer to this question.

0 votes

Hi@akhtar,

I also got this error. I am able to cross this problem with below steps:

  • First thing before install R, check to spark home setting using the below command.
$ echo $SPARK_HOME
/opt/spark-2.1.0-bin-hadoop2.6
  • Later you need to install R using below way:
$ sudo yum install R
  • After R installation completed, then check the R Sys env variable using the below command.

$ Sys.getenv("SPARK_HOME")
"/opt/spark-2.1.0-bin-hadoop2.6"
  • The final step to run the below command.
cd $SPARK_HOME
../bin/sparkR
answered Jul 22, 2020 by MD
• 95,460 points

Related Questions In Apache Spark

0 votes
1 answer

if i want to see my public key after running cat <path> command in gitbash but saying no such file or directory.

Hey, @KK, You can fix this issue may be ...READ MORE

answered May 26, 2020 in Apache Spark by Gitika
• 65,770 points
856 views
0 votes
1 answer

Is it better to have one large parquet file or lots of smaller parquet files?

Ideally, you would use snappy compression (default) ...READ MORE

answered May 23, 2018 in Apache Spark by nitinrawat895
• 11,380 points
13,729 views
0 votes
1 answer

Which query to use for better performance, join in SQL or using Dataset API?

DataFrames and SparkSQL performed almost about the ...READ MORE

answered Apr 19, 2018 in Apache Spark by kurt_cobain
• 9,350 points
1,825 views
0 votes
1 answer

reduceByKey or reduceByKeyLocally , which should be preferred ?

Yes, they both merge the values using ...READ MORE

answered Apr 20, 2018 in Apache Spark by kurt_cobain
• 9,350 points
2,483 views
+1 vote
2 answers
0 votes
1 answer

Is it possible to run Apache Spark without Hadoop?

Though Spark and Hadoop were the frameworks designed ...READ MORE

answered May 3, 2019 in Big Data Hadoop by ravikiran
• 4,620 points
1,247 views
0 votes
1 answer

What do we exactly mean by “Hadoop” – the definition of Hadoop?

The official definition of Apache Hadoop given ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by Shubham
1,873 views
+1 vote
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
• 11,380 points
11,028 views
0 votes
1 answer

env: ‘python’: No such file or directory in pyspark.

Hi@akhtar, This error occurs because your python version ...READ MORE

answered Apr 7, 2020 in Apache Spark by MD
• 95,460 points
6,405 views
0 votes
1 answer
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