That function is simply deletes a directory recursively. you can use alternative libraries. see this discussion http://stackoverflow.com/questions/779519/delete-files-recursively-in-java
On Tue, Aug 5, 2014 at 5:02 PM, JiajiaJing <jj.jing0...@gmail.com> wrote: > Hi TD, > > I encountered a problem when trying to run the KafkaStreamSuite.scala unit > test. > I added "scalatest-maven-plugin" to my pom.xml, then ran "mvn test", and got > the follow error message: > > error: object Utils in package util cannot be accessed in package > org.apache.spark.util > [INFO] brokerConf.logDirs.foreach { f => > Utils.deleteRecursively(new File(f)) } > [INFO] ^ > > I checked that Utils.scala does exists under > "spark/core/src/main/scala/org/apache/spark/util/", so I have no idea about > why this access error. > Could you please help me with this? > > Thank you very much! > > Best Regards, > > Jiajia > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Unit-Test-for-Spark-Streaming-tp11394p11505.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@spark.apache.org > For additional commands, e-mail: user-h...@spark.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org