vinayakb | 7ff0f4a | 2010-06-17 19:41:17 +0000 | [diff] [blame] | 1 | Hyracks is a data-parallel platform that allows users to run jobs on a cluster of shared-nothing computers. |
| 2 | |
| 3 | QUICKSTART |
| 4 | __________ |
| 5 | |
| 6 | Hyracks is made up of two parts that need to run on a cluster to accept and run users' jobs. The Hyracks Cluster Controller must be run on one machine designated as the |
| 7 | master node. This machine should be able to be accessed from the other nodes in the cluster that would do work as well as the client machines that would submit jobs to Hyracks. |
| 8 | The worker nodes (machines) must run a Hyracks Node Controller. |
| 9 | |
| 10 | 1. Starting the Hyracks Cluster Controller |
| 11 | |
| 12 | The simplest way to start the cluster controller is to run bin/hyrackscc. |
| 13 | By default, the cluster controller listens on port 1099 for connections from Node Controllers. However, it can be made to listen on a different port by passing an optional |
| 14 | parameter as shown below: |
| 15 | |
| 16 | bin/hyrackscc -port <port> |
| 17 | |
| 18 | 2. Starting the Hyracks Node Controller |
| 19 | |
| 20 | The node controller is started by running bin/hyracksnc. It requires at least the following two command line arguments. |
| 21 | |
| 22 | -cc-host VAL : Cluster Controller host name |
| 23 | -data-ip-address VAL : IP Address to bind data listener |
| 24 | |
| 25 | If the cluster controller was directed to listen on a port other than the default, you will need to pass one more argument to hyracksnc. |
| 26 | |
| 27 | -cc-port N : Cluster Controller port (default: 1099) |
| 28 | |
| 29 | The data-ip-address is the interface on which the Node Controller must listen on -- in the event the machine is multi-homed it must listen on an IP that is reachable from |
| 30 | other Node Controllers. Make sure that the value passed to the data-ip-address is a valid IPv4 address (four octets separated by .). |
| 31 | |
| 32 | 3. Running a job on Hyracks |
| 33 | |
| 34 | There are a few examples in the source distribution under src/test/integration that outline the construction and issue of a Job to the Hyracks Cluster Controller. The |
| 35 | basic steps that need to be performed on the client to execute jobs are: |
| 36 | |
| 37 | Registry registry = LocateRegistry.getRegistry(ccHost, ccPort); |
| 38 | IClusterController cc = registry.lookup(IClusterController.class.getName()); // Get a handle to the Cluster Controller |
| 39 | |
| 40 | JobSpecification spec = createJob(); // User code to create a Job |
| 41 | |
| 42 | UUID jobId = cc.createJob(spec); // Install the Job on the Cluster Controller |
| 43 | |
| 44 | cc.start(jobId); // Start the job |
| 45 | cc.waitForCompletion(jobId); // Jobs run asynchronously -- Wait for this one to complete |
| 46 | |
| 47 | |
| 48 | |
| 49 | BUILDING FROM SOURCE |
| 50 | ____________________ |
| 51 | |
| 52 | Prerequisites: |
| 53 | |
| 54 | 1. JDK 1.6 |
| 55 | 2. Maven2 (maven.apache.org) |
| 56 | |
| 57 | Steps: |
| 58 | |
vinayakb | aac48a5 | 2010-08-15 12:02:02 +0000 | [diff] [blame] | 59 | 1. Checkout source from SVN |
| 60 | 2. Download dcache-client-0.0.1.jar from the Downloads page at http://code.google.com/p/hyracks/downloads/list |
vinayakb | 7ff0f4a | 2010-06-17 19:41:17 +0000 | [diff] [blame] | 61 | 3. Run the following command: (Replacing /path/to/file with the path to the dcache-client jar file). |
| 62 | |
| 63 | mvn install:install-file -DgroupId=edu.uci.ics.dcache -DartifactId=dcache-client -Dversion=0.0.1 -Dpackaging=jar -Dfile=/path/to/file/dcache-client-0.0.1.jar |
| 64 | |
vinayakb | aac48a5 | 2010-08-15 12:02:02 +0000 | [diff] [blame] | 65 | 4. Download jol.jar from the Downloads page at http://code.google.com/p/hyracks/downloads/list |
| 66 | 5. Run the following command: (Replacing /path/to/file with the path to the jol jar file). |
| 67 | |
| 68 | mvn install:install-file -DgroupId=jol -DartifactId=jol -Dversion=0.0.1 -Dpackaging=jar -Dfile=/path/to/file/jol.jar |
| 69 | |
| 70 | 6. cd into the hyracks folder where the source was checked out |
| 71 | 7. Run |
vinayakb | 7ff0f4a | 2010-06-17 19:41:17 +0000 | [diff] [blame] | 72 | |
| 73 | mvn package |
| 74 | |
| 75 | 6. That's it! |
| 76 | |
| 77 | |
| 78 | IMPORTING INTO ECLIPSE |
| 79 | ______________________ |
| 80 | |
| 81 | Prerequisites: |
| 82 | |
| 83 | You will need to have the Eclipse Maven plugin (http://m2eclipse.sonatype.org/) |
| 84 | |
| 85 | 1. Open eclipse |
| 86 | 2. Right click in the Package Explorer pane. |
| 87 | 3. Click on Import... |
| 88 | 4. Under "General" choose "Existing Projects into Workspace" |
vinayakb | aac48a5 | 2010-08-15 12:02:02 +0000 | [diff] [blame] | 89 | 5. Pick the project root option and browse to the hyracks folder |
| 90 | 6. Import all projects. |
| 91 | 7. Click on Finish |