I tried on refreshed copy of master branch: $ bin/spark-shell --jars /home/hbase/.m2/repository/org/scalatest/scalatest_2.11/2.2.6/scalatest_2.11-2.2.6.jar ... scala> import org.scalatest.{BeforeAndAfter, BeforeAndAfterAll} import org.scalatest.{BeforeAndAfter, BeforeAndAfterAll}
BTW I noticed an extra leading comma after '--jars' in your email. Not sure if that matters. On Thu, Apr 21, 2016 at 8:39 AM, Ted Yu <yuzhih...@gmail.com> wrote: > Mich: > > $ jar tvf > /home/hbase/.m2/repository/org/scalatest/scalatest_2.11/2.2.6/scalatest_2.11-2.2.6.jar > | grep BeforeAndAfter > 4257 Sat Dec 26 14:35:48 PST 2015 > org/scalatest/BeforeAndAfter$class.class > 2602 Sat Dec 26 14:35:48 PST 2015 org/scalatest/BeforeAndAfter.class > 1998 Sat Dec 26 14:35:48 PST 2015 > org/scalatest/BeforeAndAfterAll$$anonfun$run$1.class > > FYI > > On Thu, Apr 21, 2016 at 8:35 AM, Mich Talebzadeh < > mich.talebza...@gmail.com> wrote: > >> to Mario, Alonso, Luciano, user >> Hi, >> >> Following example in >> >> >> https://github.com/agsachin/spark/blob/CEP/external/kafka/src/test/scala/org/apache/spark/streaming/kafka/DirectKafkaStreamSuite.scala#L532 >> >> Does anyone know which jar file this belongs to? >> >> I use *scalatest_2.11-2.2.6.jar *in my spark-shell >> >> spark-shell --master spark://50.140.197.217:7077 --jars >> ,/home/hduser/jars/junit-4.12.jar,/home/hduser/jars/spark-streaming-kafka-assembly_2.10-1.6.1.jar, >> /*home/hduser/jars/scalatest_2.11-2.2.6.jar'* >> >> scala> import org.scalatest.{BeforeAndAfter, BeforeAndAfterAll} >> <console>:28: error: object scalatest is not a member of package org >> import org.scalatest.{BeforeAndAfter, BeforeAndAfterAll} >> >> Thanks >> >> Dr Mich Talebzadeh >> >> >> >> LinkedIn * >> https://www.linkedin.com/profile/view?id=AAEAAAAWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw >> <https://www.linkedin.com/profile/view?id=AAEAAAAWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw>* >> >> >> >> http://talebzadehmich.wordpress.com >> >> >> > >