Full Text Search (Owncloud): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 32: Zeile 32:
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
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>
<pre>
cd ~/temp
</pre>
==== To be removed ====


<pre>
<pre>

Version vom 23. Mai 2021, 09:52 Uhr

App

Installation

Als offizielle App kann sie über den Market installiert werden.

Links

https://marketplace.owncloud.com/apps/search_elastic

Elasticsearch

Version 5.6

Installation unter Raspbian

Öffentlichen signierten Schlüssel herunterladen und installieren:

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

Paket apt-transport-https installieren:

sudo apt-get update && sudo apt-get install apt-transport-https

Repository-Definition nach /etc/apt/sources.list.d/elastic-5.x.list speichern:

echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
cd ~/temp


To be removed

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

Links

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/index.html

https://www.raspberrypi.org/forums/viewtopic.php?t=268432

Zurück zu Owncloud Apps