How to run Elasticsearch 2.1.1 as root user in Linux machine
Based of the following code-snippet looks like you should be able to achieve this by enabling property
es.insecure.allow.root
Example :
bin/elasticsearch -Des.insecure.allow.root=true
Elasticsearch: Changing data directory on an Amazon Linux Machine
I found it surprising, but in the latest version of Elasticsearch, if you create a data directory inside home of other user, ES is unable to access it. Though logically it is perfect too. What i suggest that you either mount an external hard disk for elasticsearch or create a data directory inside /home/ on the parallel of ec2-user. so you directory should have a path /home/my-data and it will work like a charm. :)
Thanks ,
Bharvi
Unable to open Elasticsearch-head plugin – v2.1.1
You currently have elasticsearch configured to only listen on localhost
You might want to try adding to your elasticsearch.yml the following
network.host: [networkInterface]
NOTE: This WILL make your cluster listen on public interfaces, so you'l want to bring that firewall back up and restrict access.
Docker Problem, entrypoint file.sh doesnt recognize the su-exec command
The cause of the error was that adoptopenjdk/openjdk8:alpine
does not include the su-exec package. I modified the dockerfile as below:
FROM adoptopenjdk/openjdk8:alpine
MAINTAINER rando
# Install required packages
RUN apk add --no-cache bash su-exec
RUN apk add --update tini
COPY elasticsearch-2.1.1.tar.gz /tmp
...
And adding su-exec
package fixed the issue in my case.
Related Topics
Packaging Proprietary Software for Linux
How to List the Files in a Zip Archive Without Decompressing It
Use Wc on All Subdirectories to Count the Sum of Lines
How to Stop 'Uninterruptible' Process on Linux
Tail Inverse/Printing Everything Except the Last N Lines
Open O_Creat | O_Excl on Nfs in Linux
Linux C/C++ Socket Send in Multi-Thread Code
How to Keep Executable Code in Memory Even Under Memory Pressure? in Linux
How Does Ancillary Data in Sendmsg() Work
Using Linux Cut, Sort and Uniq
Changing the PHPmyadmin Default Url
Cannot Sudo Su Anymore, "No Tty Present and No Askpass Program Specified"
Switch from 32Bit Mode to 64 Bit (Long Mode) on 64Bit Linux
How to Add a String to the Beginning of Each File in a Folder in Bash