Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-20635

Scala REPL with java.lang.NoSuchMethod: Errorjava.lang.NoSuchMethodError

Details

    • Bug
    • Status: Closed
    • Not a Priority
    • Resolution: Won't Fix
    • 1.10.2
    • None
    • API / Scala
    • None
    • CDH: 5.16.2

      YARN: 2.6.0+cdh5.16.2+2863

    Description

      When I use Scala REPL shell with YARN mode, there will be an error occured, just like the following messages.

      // 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)
      

       

      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 ?

       

      Attachments

        Activity

          martijnvisser Martijn Visser added a comment -

          Support for Scala Shell has been removed in Flink and therefore this ticket is marked as "Won't fix"

          martijnvisser Martijn Visser added a comment - Support for Scala Shell has been removed in Flink and therefore this ticket is marked as "Won't fix"
          knaufk Konstantin Knauf added a comment - Re-opening in accordance with https://issues.apache.org/jira/browse/FLINK-23206 .
          flink-jira-bot Flink Jira Bot added a comment -

          This issue was labeled "stale-minor" 7 days ago and has not received any updates so I have gone ahead and closed it. If you are still affected by this or would like to raise the priority of this ticket please re-open, removing the label "auto-closed" and raise the ticket priority accordingly.

          flink-jira-bot Flink Jira Bot added a comment - This issue was labeled "stale-minor" 7 days ago and has not received any updates so I have gone ahead and closed it. If you are still affected by this or would like to raise the priority of this ticket please re-open, removing the label "auto-closed" and raise the ticket priority accordingly.
          flink-jira-bot Flink Jira Bot added a comment -

          I am the Flink Jira Bot and I help the community manage its development. I noticed that neither this issue nor its subtasks had updates for 180 days, so I labeled it "stale-minor". If you are still affected by this bug or are still interested in this issue, please update and remove the label.

          flink-jira-bot Flink Jira Bot added a comment - I am the Flink Jira Bot and I help the community manage its development. I noticed that neither this issue nor its subtasks had updates for 180 days, so I labeled it "stale-minor". If you are still affected by this bug or are still interested in this issue, please update and remove the label.

          People

            Unassigned Unassigned
            luguoqing Rafael Lu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: