The following error is given when I try to add this line: [info] Set current project to Simple Project (in build file:/C:/Users/D062844/Desktop/Hand sOnSpark/Install/spark-1.0.2-bin-hadoop2/) [info] Compiling 1 Scala source to C:\Users\D062844\Desktop\HandsOnSpark\Install\spark-1.0 .2-bin-hadoop2\target\scala-2.10\classes... [error] C:\Users\D062844\Desktop\HandsOnSpark\Install\spark-1.0.2-bin-hadoop2\src\main\sca la\SimpleApp.scala:1: expected class or object definition [error] System.setProperty("hadoop.home.dir", "c:\\winutil\\") [error] ^ [error] one error found [error] (compile:compile) Compilation failed
Vineet -----Original Message----- From: Sean Owen [mailto:so...@cloudera.com] Sent: Donnerstag, 28. August 2014 16:30 To: Hingorani, Vineet Cc: user@spark.apache.org Subject: Re: Spark-submit not running You should set this as early as possible in your program, before other code runs. On Thu, Aug 28, 2014 at 3:27 PM, Hingorani, Vineet <vineet.hingor...@sap.com> wrote: > Thank you Sean and Guru for giving the information. Btw I have to put this > line, but where should I add it? In my scala file below other ‘import …’ > lines are written? > > System.setProperty("hadoop.home.dir", "d:\\winutil\\") >