安裝使用esrally

安裝使用esrally

pip3 install --upgrade pip
pip3 install esrally

報(bào)錯(cuò)

    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=565 -DPSUTIL_LINUX=1 -I/usr/include/python3.6m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_common.o
    psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory
     #include <Python.h>

yum install python-devel.x86_64
rpm -qa | grep python-devel

rpm -ql python-devel-2.7.5-88.el7.x86_64 
rpm -ql python-devel-2.7.5-88.el7.x86_64 | grep Python.h


ln -s /usr/include/python2.7/Python.h /usr/include/python3.6m/Python.h
In file included from psutil/_psutil_common.c:9:0:
    /usr/include/python3.6m/Python.h:7:24: fatal error: patchlevel.h: No such file or directory
     #include "patchlevel.h"

cp -r /usr/include/python2.7/*.h /usr/include/python3.6m

看來(lái)是原來(lái)的Python3有問題呀

 yum install libffi-devel 
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz
tar xvf Python-3.8.0.tar.xz
cd Python-3.8.0
./configure --prefix=/usr/local/python3.8
make && make install
ln /usr/local/python3.8/bin/pip3.8 /usr/sbin/pip3.8
ln /usr/local/python3.8/bin/python3.8 /usr/sbin/python3.8

pip3.8   install psutil
pip3.8   install --upgrade pip
pip3.8   install esrally

冷靜冷靜,這個(gè)esrally的位置我也是找了很久

/usr/local/python3.8/bin/esrally
ln -s /usr/local/python3.8/bin/esrally /usr/sbin/esrally
esrally --versin

ModuleNotFoundError: No module named '_bz2'

yum install bzip2-devel 
cd /usr/local/src/Python-3.8.0
./configure --prefix=/usr/local/python3.8
make && make install
esrally -h

數(shù)據(jù)下載太慢了,先直接用測(cè)試模式test-mode,下載1000條數(shù)據(jù)試下

esrally --pipeline=benchmark-only --target-hosts=192.168.41.103:9200,192.168.41.104:9200,192.168.41.105:9200 --test-mode

https://cloud.tencent.com/developer/article/1551836

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容