vinayakb | 0c86039 | 2012-10-06 18:47:20 +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 | |
Michael Blow | 4c7b5bf | 2017-03-06 21:55:58 -0500 | [diff] [blame] | 22 | -cluster-address VAL : Cluster Controller host name |
| 23 | -data-listen-address VAL : IP Address to bind data listener |
vinayakb | 0c86039 | 2012-10-06 18:47:20 +0000 | [diff] [blame] | 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 | |
Michael Blow | 4c7b5bf | 2017-03-06 21:55:58 -0500 | [diff] [blame] | 27 | -cluster-port N : Cluster Controller port (default: 1099) |
vinayakb | 0c86039 | 2012-10-06 18:47:20 +0000 | [diff] [blame] | 28 | |
Michael Blow | 4c7b5bf | 2017-03-06 21:55:58 -0500 | [diff] [blame] | 29 | The data-listen-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-listen-address is a valid IPv4 address (four octets separated by .). |
vinayakb | 0c86039 | 2012-10-06 18:47:20 +0000 | [diff] [blame] | 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 | |
| 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 |
| 61 | 3. Run the following command: (Replacing /path/to/file with the path to the dcache-client jar file). |
| 62 | |
Ian Maxon | e915e8c | 2015-07-01 17:03:31 -0700 | [diff] [blame] | 63 | mvn install:install-file -DgroupId=org.apache.dcache -DartifactId=dcache-client -Dversion=0.0.1 -Dpackaging=jar -Dfile=/path/to/file/dcache-client-0.0.1.jar |
vinayakb | 0c86039 | 2012-10-06 18:47:20 +0000 | [diff] [blame] | 64 | |
| 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 |
| 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" |
| 89 | 5. Pick the project root option and browse to the hyracks folder |
| 90 | 6. Import all projects. |
| 91 | 7. Click on Finish |