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