title: Field "features" does not exist. SparkML
body: <p>I am trying to build a model in Spark ML with Zeppelin.
  I am new to this area and would like some help. I think i need to set the correct datatypes to the column and set the first column as the label. Any help would be greatly appreciated, thank you</p>
  
  <pre><code>val training = sc.textFile("hdfs:///ford/fordTrain.csv")
  val header = training.first
  val inferSchema = true  
  val df = training.toDF
  
  val lr = new LogisticRegression()
  .setMaxIter(10)
  .setRegParam(0.3)
  .setElasticNetParam(0.8)
  
   val lrModel = lr.fit(df)
  
  // Print the coefficients and intercept for multinomial logistic regression
  println(s"Coefficients: \n${lrModel.coefficientMatrix}")
  println(s"Intercepts: ${lrModel.interceptVector}")
  </code></pre>
  
  <p>A snippet of the csv file i am using is:</p>
  
  <pre><code>IsAlert,P1,P2,P3,P4,P5,P6,P7,P8,E1,E2
  0,34.7406,9.84593,1400,42.8571,0.290601,572,104.895,0,0,0,
  </code></pre>