Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-4115

Case classes do not work with Spark New Interpreter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 0.8.1
    • None
    • zeppelin-interpreter
    • None
    • Zeppelin 0.8.1.  Spark 2.2.2 . RHEL 7.

    Description

      If I define a scala case class and attempt to use it in a notebook such as the following code snippet:

      case class Test(id: String, role: String, resst: String)
      val test = Test("1", "Hello", "World")
      val rdd1 = sc.parallelize(List(test))
      
      rdd1.first()
      

      The run will fail with different exceptions - either MethodNotFound or ClassNotFound.  In contrast if zeppelin.spark.useNew is false the code works as expected.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mbidewel Mark Bidewell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: