Giter VIP home page Giter VIP logo

Comments (4)

fmarchand avatar fmarchand commented on May 27, 2024

I solved it. I restarted the marathon app with two new env variables :

ZEPPELIN_NOTEBOOK_STORAGE="org.apache.zeppelin.notebook.repo.GitNotebookRepo, org.apache.zeppelin.notebook.repo.zeppelinhub.ZeppelinHubRepo"
ZEPPELINHUB_API_ADDRESS="https://www.zepl.com"

I'm gonna do a pull request to add an env section in the config.jsonand add some stuff in marathon.json.mustache if you don't mind.

from dcos-zeppelin.

swoehrl-mw avatar swoehrl-mw commented on May 27, 2024

Hi @fmarchand , glad you solved it. PRs are always welcome, so by all means go ahead.

from dcos-zeppelin.

fmarchand avatar fmarchand commented on May 27, 2024

This code is ready for this issue #10 ... but ...

When I tried to test the shiro part with the zeppelin-env.sh customization and the placement constraint everything worked except this :

val (df1, df2, df3) = (spark.read.format("csv").option("header", "true").load("hdfs://name-0-node.hdfs.autoip.dcos.thisdcos.directory:9001/kaggle/taxi/yellow_tripdata_2016-01.csv"),
                      spark.read.format("csv").option("header", "true").load("hdfs://name-0-node.hdfs.autoip.dcos.thisdcos.directory:9001/kaggle/taxi/yellow_tripdata_2016-02.csv"),
                      spark.read.format("csv").option("header", "true").load("hdfs://name-0-node.hdfs.autoip.dcos.thisdcos.directory:9001/kaggle/taxi/yellow_tripdata_2016-03.csv"))


val allDfS =  Seq(df1,df2,df3).reduce(_ union _)

I had a NoSuchMethodException in a constructor of the jackson-databind library. After a long time googling that error, I figured out that using spark 2.4 was causing a compatibilty problem. I checked the different versions of jackson from mesosphere image and had to downgrade to 2.4.0-2.2.1-3-hadoop-2.6

This spark image has a spark in the folder /opt/spark/dist whereas more recent images have spark in /opt/spark. Therefore I had to modify SPARK_HOME in Dockerfile and startup.sh. I would suggest to have a branch per package version and propose a PR to mesosphere with multiple version folders.

So the version of the zeppelin package is set to 1.1-0.8.1-2.2.1.

Could you create a branch on your repository so I can do a PR from my forked repository branch to that branch ?

What do you think ?

from dcos-zeppelin.

swoehrl-mw avatar swoehrl-mw commented on May 27, 2024

Hi @fmarchand ,
unfortunately the mesosphere universe is not really designed to handle multiple concurrent versions. And I don't feel comfortable maintaing two versions of the package with different spark versions.
Can you please provide me your code and the complete test you ran? I can try if I can get it working with the current spark version.

from dcos-zeppelin.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.