title: Creating Map values in Spark using Scala
body: <p>I am new to spark-scala development. I am trying to create a map values in spark using scala but getting type mismatch error.</p>
  
  <pre><code>scala&gt; val nums = sc.parallelize(Map("red" -&gt; "#FF0000","azure" -&gt; "#F0FFFF","peru" -&gt; "#CD853F"))
  &lt;console&gt;:21: error: type mismatch;
   found   : scala.collection.immutable.Map[String,String]
   required: Seq[?]
  Error occurred in an application involving default arguments.
         val nums = sc.parallelize(Map("red" -&gt; "#FF0000","azure" -&gt; "#F0FFFF","peru" -&gt; "#CD853F"))
  </code></pre>
  
  <p>How should I do this?</p>