Questions tagged [scala-shell]

8 questions
2
votes
1 answer

Executing Linux Command in Scala-Shell

I'm working on a project where I'm needing to execute some linux commands (sqoop command) in my Scala application. See sample command I tried executing with MySql on my VM. import sys.process._ "sqoop eval --connect…
Ope Baba
  • 65
  • 8
2
votes
1 answer

scala EPFL Exception in thread "main" java.lang.NoClassDefFoundError: javax/script/Compilable

I am a complete noob on Scala and JVM programming. The team I recently joined uses scala to build programs to be run on Spark. The stack at work is stable and functional but its complexity does not match the needs I have at home: merely the one to…
zar3bski
  • 2,773
  • 7
  • 25
  • 58
1
vote
1 answer

Constructor signature is changed if I define case class in spark-shell (scala-shell)

I define case class in spark-shell or scala-shell, and found its constructor signature is changed, there's one extra parameter $iw added, what is that? why that happens? This issue caused me unable to create new instance via its constructor in…
zjffdu
  • 25,496
  • 45
  • 109
  • 159
1
vote
2 answers

Read from Kafka into Flink Scala Shell

I'm attempting to connect to and read from Kafka (2.1) on my local machine, in the scala-shell that comes with Flink (1.7.2). Here's what I'm doing : :require flink-connector-kafka_2.11-1.7.1.jar :require…
div93
  • 205
  • 1
  • 3
  • 14
0
votes
0 answers

Exception is truncated in scala shell

I ran some code in scala shell and get the following error. It looks like the exception is truncated, I can not get what the root cause for the NPE. How can I see the full stacktrace in scala shell ? Thanks Caused by:…
zjffdu
  • 25,496
  • 45
  • 109
  • 159
0
votes
1 answer

how to start and stop flink scala-shell in Apache flink

how to start and stop flink scala-shell in apache flink I have started flink scala shell using the command /bin/start-scala-shell.sh local. But dont know how to stop ?
TR RAO
  • 19
  • 4
0
votes
1 answer

I can't load myfile.scala in scala-shell

I have a Scala file and I want to run it on Scala Shell. I am using the following command: load somepath\myfile.scala After that console tells me: usage: :load -v file Why my file can't be run?
juninho10
  • 21
  • 2
0
votes
1 answer

Why the class defined in scala shell is public static

It is weird to me that the class defined in scala shell is public static but not public, I don't know why, anyone knows ? Thanks scala> class Split{} defined class Split scala> import java.lang.reflect.Modifier import…
zjffdu
  • 25,496
  • 45
  • 109
  • 159