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

zeppelin-spark_2.10 on maven central is not compiled based on scala-2.10

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.1
    • 0.7.3, 0.8.0
    • Interpreters
    • None

    Description

      zeppelin-spark_2.10 artifcat on maven central is not compiled based on scala-2.10.

      So the artifact get from the below command is not of scala-2.10.

      ./bin/install-interpreter.sh —name spark —artifact org.apache.zeppelin:zeppelin-spark_2.10:0.7.1.

      The maven link is https://mvnrepository.com/artifact/org.apache.zeppelin/zeppelin-spark_2.10/0.7.1.

      If you decompile the class ZeppelinRDisplay.class on the artifact and check the htmlDisplay
      method

      ```scala
      private RDisplay htmlDisplay(Element body, String imageWidth)
      {
      ObjectRef div = ObjectRef.create(new String());

      JavaConversions..MODULE$.asScalaBuffer(body.children()).foreach(new AbstractFunction1()
      {
      public static final long serialVersionUID = 0L;

      public final void apply(Element element)
      {
      String eHtml = element.html();
      String eOuterHtml = element.outerHtml();

      eOuterHtml = eOuterHtml.replace("“%html

      ```
      You can see it calls ObjectRef.create which method is from scala 2.11 not scala 2.10.

      This problem will influence those who use R with spark_2.10.

      Attachments

        Issue Links

          Activity

            People

              sleefd slee
              sleefd slee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: