Only pay attention to those errors reported in the Console panel (if any) when building the program.Ĭhoose −>. We remark that Eclipse might report many errors mistakenly in the Problem panel due to its imperfect design, and they can be safely ignored. (Use your absolute paths of $HADOOP_HOME and $JAVA_HOME instead of themselves)Ĭhoose −> to build the program. Download the toy graph described on the download page and put it onto HDFS as follows: To run the program, we need to put a graph data under HDFS path /toyFolder. It runs Hash-Min over the data under HDFS path /toyFolder, and the results are written under HDFS path /toyOutput. See Section 3.2 of our technical report for the algorithm.ĭownload the system code (four directories) and the application code of Hash-Min (two files), delete the demo code under folder src in Eclipse and copy the downloaded files to src. We now show how to run the Hash-Min algorithm for computing connected components in the Eclipse projected created above. Then, click to run the program.Ĭonfigure the Project for Pregel+ Programming In the Application panel, set Application program as the object file under the Debug folder just compiled. Switch back to the C/C++ perspective, and click Ĭreate a new Parallel Application (not C/C++ Application), and in the Resources panel, set Number of processes as 4 to run four processes in the local machine in parallel. If the following error is reported, add localhost to /usr/local/etc/openmpi-default-hostfile and then stop and restart the resource manager. Click directly in the next panel prompted. Switch to the Parallel Runtime perspective.Īdd a resource manager, choose Open MPI in the prompted panel and click. To run the demo program, we need to create and start a resource manager. Ĭhoose −> to compile the demo program for computing Pi. Input a project name of your choice, choose MPI Pi C++ Project and click. Start Eclipse and choose a workspace of your choice. Export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |