Closed pawanm09 closed 4 years ago
Hi @nmsaey42, sorry about this. What instance type are you using? It could be related to #163 .
Hello @jmazanec15
EC2 t2.small
Yes, that type is impacted by #163
As a workaround, on a t2.instance, you can build and install from source with these instructions:
sudo yum install gcc-c++ cmake git rpm-build -y
export JAVA_HOME=/usr/share/elasticsearch/jdk
git clone https://github.com/opendistro-for-elasticsearch/k-NN.git
cd k-NN
git fetch
git checkout opendistro-1.9
cd jni
cmake .
make package
sudo yum remove opendistro-knnlib -y
sudo yum localinstall packages/opendistro-knnlib-1.9.0.0-0.1_linux.x86_64.rpm -y
sudo yum install opendistro-knn -y
Hello @jmazanec15
Thanks for the instructions.
Can you also share how to solve this on a ubuntu machine?
Sure, try this for DEB installation on Ubuntu:
sudo apt install cmake g++ git rpm -y
export JAVA_HOME=/usr/share/elasticsearch/jdk
git clone https://github.com/opendistro-for-elasticsearch/k-NN.git
cd k-NN
git fetch
git checkout opendistro-1.9
cd jni
cmake .
make package
sudo apt remove opendistro-knnlib -y
sudo dpkg -i packages/opendistro-knnlib-1.9.0.0-0.1_linux.x86_64.deb
sudo apt install opendistro-knn -y
Note -- this assumes you have already followed DEB installation instructions
Please let us know if it does not work for you.
Hello @jmazanec15
Both ec2 Linux & Ubuntu are working fine.
Thank You so much
No problem!
I tried to use the latest Amazon AMI version => Open Distro for Elasticsearch-1.9.0-07/09/20-20.35.18 (ami-005fc30a1794cc9f4)
I created a new index and everything was good until I started indexing the documents.
After indexing the first 15 docs.
I got this error:
Logs of /var/log/elasticsearch/hs_err_pid22358.log: