|
|
| Zeile 15: |
Zeile 15: |
| ==== Installation unter Raspbian ==== | | ==== Installation unter Raspbian ==== |
|
| |
|
| Öffentlichen signierten Schlüssel herunterladen und installieren:
| | [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/deb.html https://www.elastic.co/guide/en/elasticsearch/reference/5.6/deb.html] |
| | |
| <pre>
| |
| wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
| |
| </pre>
| |
| | |
| Paket <code>apt-transport-https</code> installieren:
| |
| | |
| <pre>
| |
| sudo apt-get update && sudo apt-get install apt-transport-https
| |
| </pre>
| |
| | |
| Repository-Definition nach </code>/etc/apt/sources.list.d/elastic-5.x.list</code> speichern:
| |
| | |
| <pre>
| |
| echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
| |
| </pre>
| |
| | |
| <pre>
| |
| cd ~/temp
| |
| </pre>
| |
|
| |
|
|
| |
|
| |
| ==== To be removed ====
| |
|
| |
| <pre>
| |
| Some of the following directions can be found online through the following link. https://www.elastic.co/guide/en/elastic ... t/deb.html
| |
| I believe that these steps will work for 7.0.0 through 7.3.2 but I have not tested each version. ***Note: I will add the 7.4 and higher installation instructions in this thread at a later time.
| |
| • wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - ***Note: This should respond with OK
| |
| • sudo apt-get install apt-transport-https
| |
| • echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
| |
| • cd ~
| |
| • wget https://artifacts.elastic.co/downloads/ ... -amd64.deb
| |
| • sudo dpkg -i --force-all --ignore-depends=lib6 elasticsearch-7.3.2-no-jdk-amd64.deb ***Note: You may see some download errors here
| |
| • Change the permissions for the /etc/elasticsearch folder for easier access
| |
| • sudo chmod g+w /etc/elasticsearch
| |
| • sudo chmod 755 -R /etc/elasticsearch
| |
| • sudo chown -R elasticsearch:elasticsearch /etc/elasticsearch
| |
| Edit the elasticsearch yaml file
| |
| • sudo nano /etc/elasticsearch/elasticsearch.yml ***Note:This is where you edit the node settings for Elasticsearch.
| |
|
| |
| Clustername: elasticpi
| |
|
| |
| Node.name: <name your node, i.e. bay1>
| |
|
| |
| Path.data: /var/lib/elasticsearch
| |
|
| |
| Path.logs: /var/log/elasticsearch
| |
|
| |
| Network.host: <computers ip address>
| |
|
| |
| Http.port: 9200
| |
|
| |
| discovery.seed_hosts: ["169.254.xx.xx","169.254.xx.xx","169.254.xx.xx"] ***Note: If you are creating a cluster you need to add all of the node IP addresses here.
| |
|
| |
| xpack.ml.enabled: false // add to yaml at the bottom
| |
|
| |
| node.master: true // add to yaml at the bottom
| |
|
| |
| node.data: true // add to yaml at the bottom
| |
|
| |
| node.ingest: true // add to yaml at the bottom
| |
|
| |
| discovery.type: single-node // ***Note: Comment this out if you are building a cluster. This line is temporary and used if you just have one RPi.
| |
|
| |
| bootstrap.system_call_filter: false ***Note: This is needed to bypass some of the checks that Elasticsearch does.
| |
|
| |
| § Ctrl + o, enter, ctrl + x
| |
| • sudo nano /etc/default/elasticsearch
| |
|
| |
| Edit the JAVA_HOME section to have JAVA_HOME=/usr/lib/jvm/java-11-openjdk-armhf
| |
|
| |
| Ctrl 0, enter, Ctrl + X
| |
| • sudo nano /etc/elasticsearch/jvm.options
| |
| Change the -Xms1g and -Xmx1g to half of the memory that your system has. For a 4B its should be changed to -Xms2g and -Xmx2g
| |
| Ctrl + 0, enter, Ctrl + X
| |
| • sudo systemctl start elasticsearch
| |
| • sudo systemctl status elasticsearch
| |
| </pre>
| |
|
| |
|
| ==== Links ==== | | ==== Links ==== |
|
| |
|
| [https://doc.owncloud.com/server/admin_manual/configuration/search/ https://doc.owncloud.com/server/admin_manual/configuration/search/] | | [https://doc.owncloud.com/server/admin_manual/configuration/search/ https://doc.owncloud.com/server/admin_manual/configuration/search/] |
|
| |
| [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/deb.html https://www.elastic.co/guide/en/elasticsearch/reference/5.6/deb.html]
| |
|
| |
|
| [https://www.elastic.co/guide/en/elasticsearch/reference/index.html https://www.elastic.co/guide/en/elasticsearch/reference/index.html] | | [https://www.elastic.co/guide/en/elasticsearch/reference/index.html https://www.elastic.co/guide/en/elasticsearch/reference/index.html] |
|
| |
|
| [https://www.raspberrypi.org/forums/viewtopic.php?t=268432 https://www.raspberrypi.org/forums/viewtopic.php?t=268432] | | [https://www.raspberrypi.org/forums/viewtopic.php?t=268432 https://www.raspberrypi.org/forums/viewtopic.php?t=268432] |
| | |
|
| |
|
| Zurück zu [[Owncloud Apps#Full Text Search|Owncloud Apps]] | | Zurück zu [[Owncloud Apps#Full Text Search|Owncloud Apps]] |