I am creating a spark session through LivyClient. The code for creating the session is -
var client: LivyClient = null
try {
client = new LivyClientBuilder()
.setURI(new URI("http://127.0.0.1:4141"))
.build();
val pi = client.submit(new FileStream()).get
} finally {
client.stop(true)
}
While creating a session, I am getting the error -
Exception in thread "main" scala.reflect.internal.FatalError: object Predef does not have a member classOf enter image description here
I am using the following versions -
- Apache Livy - 0.5.0-incubating
- Apache Spark - 2.3.0
- Scala - 2.11 (2.11.8)
I have checked the scala-reflect version in all the three and they are same.
I am unable to understand what is causing the below error
client.submit
method – morsik