Running Druid Cluster inside Docker Container

1,109 views
Skip to first unread message

Ming Fang

unread,
Oct 2, 2013, 2:46:22 AM10/2/13
to druid-de...@googlegroups.com
I created a Dockerfile to run the entire Druid Cluster, making it easier to run the tutorials.

Fangjin Yang

unread,
Oct 2, 2013, 12:40:42 PM10/2/13
to druid-de...@googlegroups.com
Thanks Ming! This is awesome! We will try and get it incorporated into our docs in the next few days.

- FJ


On Tue, Oct 1, 2013 at 11:46 PM, Ming Fang <ming...@gmail.com> wrote:
I created a Dockerfile to run the entire Druid Cluster, making it easier to run the tutorials.

--
You received this message because you are subscribed to the Google Groups "Druid Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-developm...@googlegroups.com.
To post to this group, send email to druid-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-development/1fcd99fb-f77d-4403-9341-e75d20113304%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ming Fang

unread,
Oct 4, 2013, 10:35:33 AM10/4/13
to druid-de...@googlegroups.com
I added RDuid and RStudio-Server to the Dockerfile.
RDruid works great, but I was unable to get RStudio-Server working.
Hope R experts out there can help.

You received this message because you are subscribed to a topic in the Google Groups "Druid Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/druid-development/7liWq8NVIOU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to druid-developm...@googlegroups.com.

To post to this group, send email to druid-de...@googlegroups.com.

Fangjin Yang

unread,
Oct 4, 2013, 1:42:01 PM10/4/13
to druid-de...@googlegroups.com
Hi Ming, can you let us know more about the environment in which you are running RStudio-Server. It should work mostly out of the box. What kind of issues are you seeing?

Thx,
FJ


Ming Fang

unread,
Oct 4, 2013, 5:59:56 PM10/4/13
to druid-de...@googlegroups.com
This is my first time setting up RStudio-Server so have no idea what's wrong.
The Docker container does not run upstart nor apparmor.
I use Supervisord to start rstudio-server using this command
/usr/lib/rstudio-server/bin/rserver --server-daemonize=0 --server-app-armor-enabled=0 --auth-validate-users=0

If you use my "shell" script, you can point your browser to localhost:49083.
I see the login screen but I keep getting invalid login using rstudio/rstudio.

I'm not seeing any server logs or errors.

Tarek Rached

unread,
Oct 4, 2013, 7:37:11 PM10/4/13
to druid-de...@googlegroups.com
Ming, as far as I know, RStudio-server just defers to the system for authentication - any regular system user's username and password should work, just as they would when ssh'ing into the instance.

What credentials are you using that RStudio is saying are invalid?

Ming Fang

unread,
Oct 4, 2013, 9:26:00 PM10/4/13
to druid-de...@googlegroups.com
This is how I created the user
useradd -b /home -m -p rstudio rstudio

I can su - rstudio and run R.  This is sessionInfo() output
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
[1] C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base   


On Oct 4, 2013, at 7:37 PM, Tarek Rached <ta...@metamarkets.com> wrote:

Ming, as far as I know, RStudio-server just defers to the system for authentication - any regular system user's username and password should work, just as they would when ssh'ing into the instance.

What credentials are you using that RStudio is saying are invalid?

--
You received this message because you are subscribed to a topic in the Google Groups "Druid Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/druid-development/7liWq8NVIOU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to druid-developm...@googlegroups.com.
To post to this group, send email to druid-de...@googlegroups.com.

Ming Fang

unread,
Oct 4, 2013, 11:59:21 PM10/4/13
to druid-de...@googlegroups.com
I fixed it. It looks like I used the useradd command incorrectly.
Reply all
Reply to author
Forward
0 new messages