Uploaded image for project: 'TOREE'
  1. TOREE
  2. TOREE-395

Provide a way to disable automatic printing of results in Toree Scala

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.2.0
    • 0.2.0
    • None
    • None

    Description

      Scala REPL supports a flag, ":silent" to enable/disable automatic printing of results (those messages begin with "res"). This is also supported in Spark shell. But for Toree Scala kernel, this flag is not supported. Thus the result of a cell would be always printed.

      But if there is any logging mechanism, the results would be recorded in a log file, while this may not be desirable. For instance, a user may not want any sensitive data logged when running "dataRDD.take(5)" in a cell.

      Also found the possible source codes for this:
      https://github.com/apache/incubator-toree/blob/master/scala-interpreter/src/main/scala/org/apache/toree/kernel/interpreter/scala/ScalaInterpreter.scala

      There are three methods with silent: Boolean = false as parameter.

      Attachments

        Issue Links

          Activity

            People

              kbates Kevin Bates
              liukun1016 Kun Liu
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: