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 in Apache Spark by Hasid
• 370 points
293 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 21 by MD
• 68,280 points

Related Questions In Apache Spark

0 votes
1 answer
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
• 10,950 points
7,072 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,320 points
428 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,320 points
1,029 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 2, 2019 in Big Data Hadoop by ravikiran
• 4,600 points
256 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
810 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
• 10,950 points
6,154 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 in Apache Spark by MD
• 68,280 points
1,162 views