Git Product home page Git Product logo

distributedsorting's Introduction

Distributed Sorting using Ice and Java πŸ’»

Developed by:

  • Diana Balanta
  • Carlos BolaΓ±os
  • Danna Espinosa
  • Cristian Perafan
  • Samuel Soto

Goal

Develop a distributed sorting application using Ice and Java. The application will be composed of a client and a server. The client will ask for a file to be sorted and the server will sort the file and save it in a new file.

Components

  1. Client: The client will be responsible for asking the user for the file to be sorted.
  2. Server: The server will be responsible for receiving the file, sorting it and saving it in a new file.
  3. Worker: The worker will be responsible for sorting the file. The server will have a pool of workers that will be responsible for sorting the file. The server receives a lines of the file. The worker sorts the lines and returns the sorted lines to the server.

Remotes Machines

Component Remote PC Name
Master hgrid1
Client hgrid4
Worker 1 hgrid10
Worker 2 hgrid11
Worker 3 hgrid13
Worker 4 hgrid15
Worker 5 hgrid18
Worker 6 hgrid2
Worker 7 hgrid3
Worker 8 hgrid5
Worker 9 hgrid9
Worker 10 hgrid8

** initial Aprroach**

Initially,the server must be started and then ther workers. Each worker must be register in the server dinamically. The client must be started and then the user must enter the file to be sorted.

Deployment πŸš€

  1. In each Remote PC, open a terminal and created a directory called Datamining and enter in this directory.

  2. Once all the directories are created, copy the files from the buiild/libs of the project, depending on the module you want to start on the machine.

  3. In the folder Datamining in the server and workers must be also the file you want to sort.

  4. In the server, execute the following command:

    java -jar master.jar 

    Server configuration file:

     Callback.Server.Endpoints=default -h * -p 9091
     
     Ice.Warn.Connections=1
  5. In the workers, execute the following command:

    java -jar worker.jar 

    File of worker configuration:

    CallbackSender.Proxy=callbackSender:default -h hgrid1 -p 9091
    Callback.Worker.Endpoints=default -h * -p 9092
    Ice.Warn.Connections=1
  6. In the client, execute the following command:

    java -jar client.jar 

    File of client configuration:

    CallbackSender.Proxy=callbackSender:default -h hgrid1 -p 9091
    Callback.Client.Endpoints=default -h *
    Ice.Warn.Connections=1
  7. In the client, enter the name of the file to be sorted, in the next format:

    dist_sorter:<filename>.txt

distributedsorting's People

Contributors

carlosjabr avatar cristianperafan avatar samuelsoto7 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.