Over a million developers have joined DZone.

NetBeans and Disco!

DZone 's Guide to

NetBeans and Disco!

· Web Dev Zone ·
Free Resource
Disco is an open-source implementation of the Map-Reduce framework, written in Erlang. Whereas the framework is written in Erlang, Python is used to write the jobs (see glossary) for the framework. That is the link between NetBeans and Disco: Python. Agreed, there is another link, ( http://wiki.netbeans.org/Erlang), but I will take the first.

After you have got your setup ready,  (which is pretty damn simple), fire up NetBeans IDE with the Python bits installed:

  1. Create a New Python Project, say PyDisco. Name the main file as 'wc-py.py'

  2. Right-Click on the project > Properties > Sources, and add the pydisco, directory which you can find in the Disco tarball ('pydisco' is the Python package in which the Python API for Disco is defined):

  3. Now, in the file 'wc-py.py', copy the contents of the file 'count_words.py' from http://discoproject.org/doc/start/install.html

  4. Right-Click on the project > Properties > Run and in the Application Argument box, type in http://localhost:7000

  5. Now, run the project.

In the Output window, you should see this message:

Starting Disco job..
Go to http://localhost:7000 to see status of the job.

When you open the browser, you will see something like this:

Of course, this was just a way to show you how you can use NetBeans IDE for your development using Disco.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}