Re: How to solve the target:jvm-1.8 error when run start-scala-shell.sh

2021-10-30 Thread Jing Lu
Thanks, Jeff! This is very insightful. On Sat, Oct 30, 2021 at 12:15 AM Jeff Zhang wrote: > The reason is that flink-scala-shell uses scala-2.11 which uses jvm-1.6 as > its target by default, that's why it can not use any library that depends > on jvm-1.8. > > You can use Zeppelin instead which

Re: How to solve the target:jvm-1.8 error when run start-scala-shell.sh

2021-10-30 Thread Jeff Zhang
The reason is that flink-scala-shell uses scala-2.11 which uses jvm-1.6 as its target by default, that's why it can not use any library that depends on jvm-1.8. You can use Zeppelin instead which supports scala-shell of scala-2.12, I have verified that it works in Zeppelin when you use

How to solve the target:jvm-1.8 error when run start-scala-shell.sh

2021-10-29 Thread Jing Lu
Hi Flink users, I am working on testing my code in start-scala-shell.sh. The flink version is: flink-1.12.0-bin-scala_2.11.tgz. I put the jar file ( https://mvnrepository.com/artifact/software.amazon.awssdk/sts/2.15.65) in the lib folder. Then run the start-scala-shell.sh REPL: scala> import