Posts

Showing posts with the label scala

Scala Meta: Confused about the versions

Scala Meta: Confused about the versions In the tutorial you find 2 versions for Scala-Meta. lazy val MetaVersion = "3.7.2" lazy val MetaVersion1 = "1.8.0" I am a bit confused as they seem to refer the same project: lazy val scalameta1 = "org.scalameta" %% "scalameta" % MetaVersion1 lazy val scalameta = "org.scalameta" %% "scalameta" % MetaVersion Can somebody point out the difference, and when you use which one of these? The Tutorial only mentions "3.7.2" , but with that I got the exception "3.7.2" ERROR: new-style ("inline") macros require scala.meta ERROR: new-style ("inline") macros require scala.meta explained here: new-style-inline-macros-require-scala-meta 1 Answer 1 3.7.2 is the current version of scalameta (actually already 3.7.4). 1.8.0 is the last version of scalameta that worked with scal...

Apache Livy doesn't work with local jar file

Apache Livy doesn't work with local jar file I am trying to run local jar file with spark-submit which is working perfectly fine. Here is the command- spark-submit --class "SimpleApp" --master local myProject/target/scala-2.11/simple-project_2.11-1.0.jar But when I am trying with curl curl -X POST --data '{ "file": "file:///home/user/myProject/target/scala-2.11/simple-project_2.11-1.0.jar", "className": "SimpleApp", }' -H "Content-Type: application/json" http://server:8998/batches It is throwing error "requirement failed: Local path /home/user/myProject/target/scala-2.11/simple-project_2.11-1.0.jar cannot be added to user sessions." Here is my livy.conf file, as some article suggest to change few things. # What host address to start the server on. By default, Livy will bind to all network interfaces. livy.server.host = 0.0.0.0 # What port to start the server on. livy.server.port = 8998 # What spark mas...