[ 
https://issues.apache.org/jira/browse/FLINK-20635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konstantin Knauf updated FLINK-20635:
-------------------------------------
      Labels:   (was: auto-closed)
    Priority: Not a Priority  (was: Minor)

> Scala REPL with java.lang.NoSuchMethod: Errorjava.lang.NoSuchMethodError
> ------------------------------------------------------------------------
>
>                 Key: FLINK-20635
>                 URL: https://issues.apache.org/jira/browse/FLINK-20635
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Scala
>    Affects Versions: 1.10.2
>         Environment: CDH: 5.16.2
> YARN: 2.6.0+cdh5.16.2+2863
>            Reporter: Rafael Lu
>            Priority: Not a Priority
>
> When I use Scala REPL shell with YARN mode, there will be an error occured, 
> just like the following messages.
> {code:java}
> // code placeholder
> $ ./bin/start-scala-shell.sh yarn
> scala> Exception in thread "main" java.lang.NoSuchMethodError: 
> jline.console.completer.CandidateListCompletionHandler.setPrintSpaceAfterFullCompletion(Z)V
> at 
> scala.tools.nsc.interpreter.jline.JLineConsoleReader.initCompletion(JLineReader.scala:139)
> at 
> scala.tools.nsc.interpreter.jline.InteractiveReader.postInit(JLineReader.scala:54)
> at 
> scala.tools.nsc.interpreter.ILoop$$anonfun$process$1$$anonfun$25.apply(ILoop.scala:899)
> at 
> scala.tools.nsc.interpreter.ILoop$$anonfun$process$1$$anonfun$25.apply(ILoop.scala:897)
> at 
> scala.tools.nsc.interpreter.SplashReader.postInit(InteractiveReader.scala:130)
> at 
> scala.tools.nsc.interpreter.ILoop$$anonfun$process$1$$anonfun$scala$tools$nsc$interpreter$ILoop$$anonfun$$loopPostInit$1$1.apply$mcV$sp(ILoop.scala:926)
> at 
> scala.tools.nsc.interpreter.ILoop$$anonfun$process$1$$anonfun$scala$tools$nsc$interpreter$ILoop$$anonfun$$loopPostInit$1$1.apply(ILoop.scala:908)
> at 
> scala.tools.nsc.interpreter.ILoop$$anonfun$process$1$$anonfun$scala$tools$nsc$interpreter$ILoop$$anonfun$$loopPostInit$1$1.apply(ILoop.scala:908)
> at scala.tools.nsc.interpreter.ILoop$$anonfun$mumly$1.apply(ILoop.scala:189)
> at scala.tools.nsc.interpreter.IMain.beQuietDuring(IMain.scala:221)
> at scala.tools.nsc.interpreter.ILoop.mumly(ILoop.scala:186)
> at 
> scala.tools.nsc.interpreter.ILoop$$anonfun$process$1$$anonfun$startup$1$1.apply(ILoop.scala:979)
> at 
> scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply$mcZ$sp(ILoop.scala:990)
> at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:891)
> at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:891)
> at 
> scala.reflect.internal.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:97)
> at scala.tools.nsc.interpreter.ILoop.process(ILoop.scala:891)
> at org.apache.flink.api.scala.FlinkShell$.startShell(FlinkShell.scala:187)
> at org.apache.flink.api.scala.FlinkShell$.main(FlinkShell.scala:131)
> at org.apache.flink.api.scala.FlinkShell.main(FlinkShell.scala)
> {code}
>  
> The reason is that there is a jar named jline-2.11.jar with yarn. When I 
> remove this jar from yarn, or with yarn version greater than 2.7.0, there is 
> no error.
>  
> YARN-2815(https://issues.apache.org/jira/browse/YARN-2815) has removed jline 
> since YARN 2.7.0.
>  
> If that means Scala REPL with YARN mode requires that YARN version must 
> greater than 2.7.0 ?
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to