Skip to content

binarycopycode/workflow_nserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies

Npcbuf Data Preparation

For testing, download the data in issue and extract the data to the directory /data_node_server/npcbuf.

Or you can change the std::string dir_path in the source code file /data_node_server/src/http_server.cc:line14.

Install and run on pure Ubuntu18.04

Install git

sudo apt install git

Install wfrest Requirement

sudo apt-get install build-essential cmake zlib1g-dev libssl-dev libgtest-dev -y

Install gcc-10 g++-10

sudo apt install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt upgrade
sudo apt install gcc-10
sudo apt install g++-10

Install wfrest

git clone --recursive https://github.com/wfrest/wfrest
cd wfrest
make
sudo make install

Install workflow, \wfrest\workflow

cd workflow
make
sudo make install

Install redis

sudo apt install redis-server

Install hiredis

git clone https://github.com/redis/hiredis.git
cd hiredis
make
sudo make install

install pip3 numpy pandas

sudo apt install python3-pip
sudo pip3 install numpy
sudo pip3 install pandas

clone this project

git clone https://github.com/qinwf/np_rdma.git
cd np_rdma

compile data_node_server (use g++-10)

cd data_node_server
mkdir build
cd build
export CXX=/usr/bin/g++-10
cmake ..
make
cd ..
cd ..

compile main_server

cd main_server
mkdir build
cd build
export CXX=/usr/bin/g++-10
cmake ..
make
cd ..
cd ..

run the data_node_server listening to the port 2333

cd data_node_server
./data_node_server 2333

open another terminal window and cd /np_rdma

run the main_server listening to the port 8888

cd main_server
./main_server 8888

open another terminal window and cd /np_rdma

run the python client

cd python_client
python3 main.py

if you get <class 'numpy.ndarray'>

it means python client get the data successfully

install on CentOS

follow as ubuntu version.

Tips1: When you can not load shared libraries, add /usr/local/lib to the /etc/ld.so.conf and run ldconfig .

Tips2: scl enable gcc-toolset-10 bash before cmake

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published