title: Execute code scala from spark in Zeppelin
body: <p>I would like to run a scala code on Zeppelin from Spark cluster.</p>
  
  <p>For example: 
  This is code into hdfs Spark "HelloWorldScala.scala":</p>
  
  <pre><code>object HelloWorldScala{
   def main (arg: Array[String]): Unit = {
   val conf = new SparkConf().setAppName("myApp_Enrico")
  
   val spark = SparkSession.builder.config(conf).getOrCreate()
   val aList = List(1,2,3,4,5,6,7,8,9,10)
   val aRdd = spark.sparkContext.parallelize(aList)
   println("********* HELLO WORLD AND HELLO SPARK!! ******")
   println("Print even numbers")
   aRdd.filter(x=&gt;x%2==0).map(x=&gt;x*2).collect().foreach(println)
    }
  
  }
  </code></pre>
  
  <p>I would like to import in Zeppelin the HelloWorldScala file and run main, but I see the error:</p>
  
  <p>Error code Zeppelin</p>
  
  <p><img src="https://i.stack.imgur.com/haYtM.png" alt="Error code Zeppelin screenshot"></p>