You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "slee (JIRA)" <ji...@apache.org> on 2017/06/14 10:11:00 UTC

[jira] [Created] (ZEPPELIN-2648) zeppelin-spark_2.10 on maven central is not compiled based on scala-2.10

slee created ZEPPELIN-2648:
------------------------------

             Summary:  zeppelin-spark_2.10 on maven central is not compiled based on scala-2.10
                 Key: ZEPPELIN-2648
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-2648
             Project: Zeppelin
          Issue Type: Bug
          Components: Interpreters
    Affects Versions: 0.7.1
            Reporter: slee


 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.






--
This message was sent by Atlassian JIRA
(v6.4.14#64029)