Disco is a Open-Source implementation of the Map-Reduce framework, written in Erlang. Where as 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:


Of course, this was just a way to show you how you can use NetBeans IDE for your development using Disco.
After you have got your setup ready, (which is pretty damn simple), fire up NetBeans IDE with the Python bits installed:
- Create a New Python Project, say PyDisco. Name the main file as 'wc-py.py'
- 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)

- Now, in the file 'wc-py.py', copy the contents of the file 'count_words.py' from http://discoproject.org/doc/start/install.html
- Right-Click on the project > Properties > Run and in the Application Argument box, type in http://localhost:7000
- Now, Run the Project
Starting Disco job..When you open the browser, you will see something like this:
Go to http://localhost:7000 to see status of the job.

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




0 comments:
Post a Comment