Hi Khalid, Thanks for your helpful comments.
1. I have enabled ${DOCKER_HOST},${DOCKER_PORT} variables via the docker env variables, thusly: eval "$(docker-machine env zmanager)" Therefore, ${DOCKER_HOST} resolves to tcp://192.168.99.100:2376 2. I have (indirectly) verified that the daemon is running okay — assuming "/api/v1/containers" is actually querying the Docker object ( https://github.com/NFLabs/z-manager/blob/master/multitenancy/server/main.go#L125 ) > curl http://localhost:3000/api/v1/containers/images {"images":[{"Size":"0","id":"dae730ff441834dba07f662d6fe18a0c624ee0475b41c73f3a6121b7851256b1","tag":"ztrial1:latest"},{"Size":"0","id":"3bbbf0aca3593044c280551babb73f306c145fe512976015829cfc98d2b45d94","tag":"centos:centos6"},{"Size":"0","id":"0b90e3e501c3d986c1f03a72537f28545955560a7a264ef3f0ac6261ea7fd1bc","tag":"nflabs/zeppelin-bhs-aug-5-spark-1.4-hadoop-2.0.0-cdh-4.7.0:latest"}]} 3. In the same vein, if I query: curl -v http://localhost:3000/api/v1/containers/list returns a 500 error Incidentally, I found that running docker machine requires a few modifications, e.g., https://github.com/NFLabs/z-manager/blob/master/multitenancy/server/docker.go#L180 must be changed to client, _ := docker.NewClientFromEnv() //this is recommended by github.com/fsouza/go-dockerclient Is there anything else I can do to debug this. Best, Asif On Thu, Nov 12, 2015 at 7:07 PM, Khalid Huseynov <khalid...@nflabs.com> wrote: > Hello Asif, > > You don't need to have docker container running Zeppelin (z-manager would > spin up one for you), however you need running docker daemon on > ${DOCKER_HOST}:${DOCKER_PORT}. Currently DOCKER_HOST is commented out in > z-manager.sh (assuming you export it in your environment), you can > uncomment it though. DOCKER_PORT can also be changed depending on your > docker setup. > > Answers to questions: > 1) Dockerfile is for building your own image from Zeppelin build. You can > specify the name of your build in here: > https://github.com/NFLabs/zeppelin-manager/blob/master/multitenancy/Dockerfile#L26 > 2) _config folder contains "defaultuser" folder ( > https://github.com/NFLabs/z-manager/blob/master/multitenancy/server/z-manager.sh#L19) > which is copied for every new user and mounted/bound to the conf folder of > Zeppelin container. > > Kind regards, > Khalid. > > On Fri, Nov 13, 2015 at 6:55 AM, Erdos <covariantmon...@gmail.com> wrote: > >> Hi, >> >> I am trying to get multi-tenancy working with z-manager. I need some help. >> >> My current use/test case: >> 1. Set up standalone spark-cluster on my laptop (spark 1.4.1) >> 2. Use docker containers using docker-machine (v0.4.1) and corresponding >> VM on my laptop >> 3. Run containerized zeppelin notebook with basic authentication >> ie. **No Zeppelin Hub** >> >> >> Steps completed/tried thus far: >> 1. Installed spark-cluster (running locally and shows up on >> http://localhost:8080) >> 2. Installed z-manager >> 3. Enabled Basic login service (in main.go) >> var loginService = BasicLoginService{} >> This also required me to handwire some authentication steps but I got >> them working >> 4. z-manager/multi-tenancy/build-all.sh compiles without any error >> 5. start server with ./z-manager.sh >> I see the following: >> martini: 2015/11/11 23:23:13 listening on :3000 (development) >> z-manager: 2015/11/11 23:23:13 Running program version: 0.0.3 >> autoupdate: 2015/11/11 23:23:13 Defaulted HTTPClient >> martini: 2015/11/11 23:23:25 Started GET /api/v1/users/whoiam for >> [::1]:56534 >> martini: 2015/11/11 23:23:25 Started GET /api/v1/cluster for >> [::1]:56534 >> z-manager: 2015/11/11 23:23:25 User: asifimran, proxy Spark: >> http://localhost:8080/api/v1/cluster -> http://localhost:8080/json/ >> martini: 2015/11/11 23:23:25 Completed 200 OK in 10.75563ms >> martini: 2015/11/11 23:23:25 Started POST /api/v1/containers/list for >> [::1]:56534 >> martini: 2015/11/11 23:23:25 Completed 422 in 1.302455ms >> >> I am currently stuck with /api/v1/containers/list not working. I don't >> know enough about golang to be able to debug this. >> >> I am not even sure if I need to have any docker containers running prior >> to this step. A couple of questions: >> 1) What is the purpose of the Dockerfile in under mutltenancy >> 2) what are the files under _configs? >> >> >> I would love to be able to contribute documentation once I figure this >> out. >> >> >> >> Thanks for reading >> Asif >> >> Details: >> spark 1.4.1 >> Docker version 1.8.2, build 0a8c2e3 >> Scala version: 2.111.6 >> Java 1.8.0_51 >> >> >> >> >> >> >> >