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 <[email protected]> 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
>
>
>
>
>
>
>