By using this site, you acknowledge that you have read and understand our Cookie policy, Privacy policy and Terms .

arrow_back Apache Spark 2.4.3 Installation on Windows 10 using Windows Subsystem for Linux

account_circle Jonathan

I folllowed your instructions and installed scala after installing hadoop. But when I try to run the SparkPi example, i get the following;

scala> run-example SparkPi 10

<console>:24: error: not found: value run

       run-example SparkPi 10

       ^

<console>:24: error: not found: value example

       run-example SparkPi 10

Not sure what the error is. Thanks.

Sincerely

Jonathan


reply Reply

comment Comments

account_circle Raymondarrow_drop_down

Hi,

run-example is a command not an Scala function. The script file exists in $SPARK_HOME/bin folder. Thus please directly run it in bash (WSL terminal) instead of running it in Spark shell.

Let me know if you have other questions.


format_quote

person Jonathan access_time 7 months ago
Re: Apache Spark 2.4.3 Installation on Windows 10 using Windows Subsystem for Linux

I folllowed your instructions and installed scala after installing hadoop. But when I try to run the SparkPi example, i get the following;

scala> run-example SparkPi 10

<console>:24: error: not found: value run

       run-example SparkPi 10

       ^

<console>:24: error: not found: value example

       run-example SparkPi 10

Not sure what the error is. Thanks.

Sincerely

Jonathan

reply Reply
account_circle Raymond

Articles about Apache Spark

open_in_new View