Open fmarchand opened 5 years ago
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.json
and add some stuff in marathon.json.mustache
if you don't mind.
Hi @fmarchand , glad you solved it. PRs are always welcome, so by all means go ahead.
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 ?
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.
I've put this configuration in
zeppelin/shiro-conf
then I checked and provided this in the zeppelin configurationHere is my
shiro.ini
:Zeppelin service from the DCOS catalog, after the deployment, runs well and the health check is green. But when I try to login then I have this error :
This is what I get :
Is there something I missed ? I tried the same
shiro.ini
with a zeppelin 0.8.1 on my computer and it works well. So I don't see what to do. I checked your mustache file and the secret is declared. All seems fine ...Do you have an idea ?