Skip to content

abhashjain/Zookeeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

########################################

Author: Abhash Jain (ajain28)

File: README for HW1 CSC591- DIC

#######################################

To run the above code you have to first run the bootstrap file on every console.

Steps to run the code :

  1. Clone the repo in your local System.

    $ git clone https://github.ncsu.edu/ajain28/CSC591-HW1.git

  2. Go to the Projet directory(CSC591-HW1) which you after clone.

    $ cd CSC591-HW1

  3. There are serveral file and 1 jarFile folder, which contains all the neceasiry jar file.

  4. Now, run the bootstrap script on the console.

    $ . bootstrap

  5. To build the class file, use build.sh. It will try to install jdk version. If prompted enter your credential to install the package. or you can use make to build the project.

    $ . build.sh

     or
    

    $ make

NOTE: As there is path needs to be set then to run the executable generated here on the new terminal either on the new terminal run bootstrap to setup.

$ . bootstrap
  1. As mentioned in the HW, by default if no port number is mentioned it will listen on 6000 port. If you are not running zookeeper on 6000 then please provide appropriate port number.

  2. To run the watcher, you can use watcher to launch with appropriate parameter.

    format for watcher : watcher IP[:port] N

    $ watcher 152.46.18.226 20

  3. If you want to run player on the new console then you have execute bootstrap program first to set the path. if you stay on the same console then there is no need to run bootstrap program. To run the bootstrap you have to Navigate to project directory on the new console.

    format for player : player IP:[port] [count] [u_delay in seconds] [score]

    e.g:

    1. for Interactive mode:

    $ player 152.46.18.226 Abhash

    1. For automated mode:

    $player 152.46.18.226:6000 Abhash 10 5 100

NOTE: All the exection needs to be run from the Project directory which in this case is CSC591-HW1.

Note: All '$' written here means your prompt.

This is transffered from my NCSU university Enterprise Account.

About

Zookeeper Simulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages