Install Graph Analytics cluster in CentOS

Source: Internet
Author: User

Install Graph Analytics cluster in CentOS

Official installation documentation:

Https://github.com/dato-code/PowerGraph/blob/master/TUTORIALS.md#cluster

Operating System: centos6.5 64

1. First install graphlab on a node. My installation path is/home/liulan/software/

2. Install the dependent software gcc, c ++, git, make, cmake, openmpi, autoconf, automake... and install it using yum. Note that the paths of each node in openmpi must be consistent.

3. download the software and run configure:

[Plain] view plaincopy
  1. Gitclonehttps: // github.com/graphlab-code/graphlab.git
  2. Cdgraphlab
  3. ./Configure

4. Select the toolkit to be installed and compile graph_analytics. Run the following command:

[Plain] view plaincopy
  1. Cdrelease/toolkits/graph_analytics
  2. Make-j4
An error occurred while arriving here. The error is as follows:

This section was solved by the help of both of them ..

It seems that the shared dynamic library cannot be generated. The specific method is to change the ldflags content of the makefile file in hadoop, as follows:


Finally, we can see that the bright green file is crying ..

(PS:. so is the dynamic link library,. a static Link Library)

5. Next, deploy the distributed environment. Create a machines file in the current home directory, write the ip addresses of each node, and press enter to separate each ip address;

[Plain] view plaincopy
  1. 10.1.1.103
  2. 10.1.1.101
  3. 10.1.1.105

6. Make sure that this file exists in the same directory on each machine;

7. set ssh password-free login between each machine. The method I use seems a bit strange, but it is very simple: Set the password on the master node. copy the ssh folder to another machine, and then copy. change the ssh/id_rsa File Permission to 600, as mentioned in the previous article;

8. Run the following command on the graphlab (master) node to copy the GraphLab file to all machines:

[Plain] view plaincopy
  1. Cd/home/liulan/software/graphlab/release/toolkits
  2. <Prename = "code" class = "plain">/home/liulan/software/<spanstyle = "font-family: Arial, Helvetica, sans-serif; "> graphlab/scripts/mpirsync </span>
[Plain] view plaincopy
  1. /Home/liulan/software/<spanstyle = "font-family: Arial, Helvetica, sans-serif;"> graphlab/deps/local </span>
[Plain] view plaincopy
  1. /Home/liulan/software/<spanstyle = "font-family: Arial, Helvetica, sans-serif;"> graphlab/scripts/mpirsync </span>

My openmpi may not be configured. You need to modify the mpirsync file: 

After running mpirsync, I found that rsync was not installed, So I configured rsync again. There are a lot of online information;

This step should be successful later;

Hadoop does not need to be configured, and the process is very simple. Now you can run your own program;

Chinese installation documents: http://blog.csdn.net/zongzhou1234/article/details/39972495

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.