title: scala console error: object apache is not a member of package org
body: <p>I am trying the code proposed here:
  <a href="http://spark.apache.org/docs/1.2.1/mllib-ensembles.html#classification" rel="nofollow noreferrer">http://spark.apache.org/docs/1.2.1/mllib-ensembles.html#classification</a></p>
  
  <p>using the Scala console (Scala version = Scala code runner version 2.10.4), and get the following error:</p>
  
  <pre><code>scala&gt; import org.apache.spark.mllib.tree.RandomForest
  &lt;console&gt;:8: error: object apache is not a member of package org
             import org.apache.spark.mllib.tree.RandomForest
                        ^
  </code></pre>
  
  <p>I then followed the advice from <a href="https://stackoverflow.com/a/28270036/190791">here</a> and tried to build a simple self-contained application, but ran into a different problem:</p>
  
  <pre><code>root@sd:~/simple# sbt package
  [info] Set current project to Simple Project (in build file:/root/simple/)
  [info] Updating {file:/root/simple/}default-c5720e...
  [info] Resolving org.scala-lang#scala-library;2.10.4 ...
  [info] Resolving org.apache.spark#spark-core_2.10.4;1.2.0 ...
  [warn]  module not found: org.apache.spark#spark-core_2.10.4;1.2.0
  [warn] ==== local: tried
  [warn]   /root/.ivy2/local/org.apache.spark/spark-core_2.10.4/1.2.0/ivys/ivy.xml
  [warn] ==== public: tried
  [warn]   http://repo1.maven.org/maven2/org/apache/spark/spark-core_2.10.4/1.2.0/spark-core_2.10.4-1.2.0.pom
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]  ::          UNRESOLVED DEPENDENCIES         ::
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]  :: org.apache.spark#spark-core_2.10.4;1.2.0: not found
  </code></pre>
  
  <p>Can anyone advise what I could try?</p>