Installing HPXFLOW on Fedora 25

HpxFlow is a unified Batch and Stream Processing framework, over HPX, partially based on Google’s DataFlow Model.

Installation and configuration of mariadb

Installation (Server)

Install the mariadb server

sudo dnf install mariadb-server 

Start the mariadb server serive once

systemctl start mariadb.service

Optinal: Enable the start of the service on every boot of the system

/usr/bin/mysql_secure_installation

Configuration

Create a database, a user, and a table to run the map and reduce example.

mysql -u root -p
MariaDB [(none)]> CREATE DATABASE test;
MariaDB [(none)]> CREATE USER 'testuser'@'localhost' IDENTIFIED BY 'yourpassword';
MariaDB [(none)]> GRANT ALL ON test.* TO 'testuser'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> USE test;
MariaDB [(none)]> CREATE TABLE test (one VARCHAR(20), two VARCHAR(20), three VARCHAR(20), four VARCHAR(20), five VARCHAR(20));

Installation (Client)

Download the Connector here and install the packages

sudo rpm -i mysql-connector-c++-1.1.7-linux-glic2.5-x86-32bit.rpm
sudo dnf install mysql-connector-c++

Installation of hpxflow

Prerequisites

  • HPX – For installation instructions for Fedora 25 see here

Compile hpxflow

git clone https://github.com/STEllAR-GROUP/hpxflow.git
cd hpxflow
mkdir build && cd build
cmake -DHPX_DIR=pathToHpx/build/lib/cmake/HPX ..

Run the map and reduce example

./examples/example_mapreduce