Hello, i have problem with install elasticsearch on CentOS 6.9
install itself goes well (by creating a file elasticsearch.repo in the /etc/yum.repos.d/ and run sudo yum install elasticsearch)
but command "sudo -i service elasticsearch start" return "[FAILED]"
here the output of "set -x"
-
'[' -f /etc/rc.status ']'
-
'[' -f /etc/rc.d/init.d/functions ']'
-
. /etc/rc.d/init.d/functions
++ TEXTDOMAIN=initscripts
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin
++ export PATH
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -z '' ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -f /etc/sysconfig/i18n -a -z '' -a -z '' ']'
++ . /etc/profile.d/lang.sh
++ unset LANGSH_SOURCED
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ RES_COL=60
+++ MOVE_TO_COL='echo -en \033[60G'
+++ SETCOLOR_SUCCESS='echo -en \033[0;32m'
+++ SETCOLOR_FAILURE='echo -en \033[0;31m'
+++ SETCOLOR_WARNING='echo -en \033[0;33m'
+++ SETCOLOR_NORMAL='echo -en \033[0;39m'
+++ PROMPT=no
+++ AUTOSWAP=no
+++ ACTIVE_CONSOLES='/dev/tty[1-6]'
+++ SINGLE=/sbin/sushell
++ '[' pty = serial ']'
++ __sed_discard_ignored_files='/(~|.bak|.orig|.rpmnew|.rpmorig|.rpmsave)$/d'
+++ cat /proc/cmdline
++ strstr quiet rc.debug
++ '[' quiet = quiet ']'
++ return 1
-
ES_USER=elasticsearch
-
ES_GROUP=elasticsearch
-
ES_HOME=/usr/share/elasticsearch
-
MAX_OPEN_FILES=65536
-
MAX_MAP_COUNT=262144
-
LOG_DIR=/var/log/elasticsearch
-
DATA_DIR=/var/lib/elasticsearch
-
CONF_DIR=/etc/elasticsearch
-
PID_DIR=/var/run/elasticsearch
-
ES_ENV_FILE=/etc/sysconfig/elasticsearch
-
'[' -f /etc/sysconfig/elasticsearch ']'
-
. /etc/sysconfig/elasticsearch
++ ES_STARTUP_SLEEP_TIME=5
-
'[' elasticsearch '!=' elasticsearch ']'
-
'[' elasticsearch '!=' elasticsearch ']'
-
'[' '!' -z '' ']'
-
exec=/usr/share/elasticsearch/bin/elasticsearch
-
prog=elasticsearch
-
pidfile=/var/run/elasticsearch/elasticsearch.pid
-
export ES_JAVA_OPTS
-
export JAVA_HOME
-
export ES_INCLUDE
-
export ES_JVM_OPTIONS
-
export ES_STARTUP_SLEEP_TIME
-
test -n ''
-
test -n ''
-
test -n ''
-
test -n ''
-
test -n ''
-
test -n ''
-
test -n ''
-
test -n ''
-
lockfile=/var/lock/subsys/elasticsearch
-
'[' -n ']'
-
'[' -z elasticsearch ']'
-
'[' '!' -x /usr/share/elasticsearch/bin/elasticsearch ']'
-
case "$1" in
-
rh_status_q
-
rh_status
-
start
-
checkJava
-
'[' -x /bin/java ']'
++ which java
-
JAVA=/usr/bin/java
-
'[' '!' -x /usr/bin/java ']'
-
'[' -x /usr/share/elasticsearch/bin/elasticsearch ']'
-
'[' -n 65536 ']'
-
ulimit -n 65536
-
'[' -n '' ']'
-
'[' -n 262144 -a -f /proc/sys/vm/max_map_count ']'
-
sysctl -q -w vm.max_map_count=262144
error: permission denied on key 'vm.max_map_count'
-
'[' -n /var/run/elasticsearch ']'
-
'[' '!' -e /var/run/elasticsearch ']'
-
'[' -n /var/run/elasticsearch/elasticsearch.pid ']'
-
'[' '!' -e /var/run/elasticsearch/elasticsearch.pid ']'
-
cd /usr/share/elasticsearch
-
echo -n 'Starting elasticsearch: '
Starting elasticsearch: + daemon --user elasticsearch --pidfile /var/run/elasticsearch/elasticsearch.pid /usr/share/elasticsearch/bin/elasticsearch -p /var/run/elasticsearch/elasticsearch.pid -d -Edefault.path.logs=/var/log/elasticsearch -Edefault.path.data=/var/lib/elasticsearch -Edefault.path.conf=/etc/elasticsearch
-
local gotbase= force= nicelevel corelimit
-
local pid base= user= nice= bg= pid_file=
-
local cgroup=
-
nicelevel=0
-
'[' --user '!=' -user ']'
-
case $1 in
-
user=elasticsearch
-
shift 2
-
'[' --pidfile '!=' -pidfile ']'
-
case $1 in
-
pid_file=/var/run/elasticsearch/elasticsearch.pid
-
shift 2
-
'[' /usr/share/elasticsearch/bin/elasticsearch '!=' /usr/share/elasticsearch/bin/elasticsearch ']'
-
'[' -z '' ']'
-
base=elasticsearch
-
__pids_var_run elasticsearch /var/run/elasticsearch/elasticsearch.pid
-
local base=elasticsearch
-
local pid_file=/var/run/elasticsearch/elasticsearch.pid
++ /usr/bin/dirname /var/run/elasticsearch/elasticsearch.pid
-
local pid_dir=/var/run/elasticsearch
-
local binary=
-
'[' -d /var/run/elasticsearch -a '!' -r /var/run/elasticsearch ']'
-
pid=
-
'[' -f /var/run/elasticsearch/elasticsearch.pid ']'
-
local line p
-
'[' '!' -r /var/run/elasticsearch/elasticsearch.pid ']'
-
:
-
read line
-
'[' -z '' ']'
-
break
-
'[' -n '' ']'
-
return 1
-
'[' -n '' -a -z '' ']'
-
corelimit='ulimit -S -c 0'
-
'[' -n '' ']'
-
'[' -n '' ']'
-
'[' color = verbose -a -z '' ']'
-
'[' -z elasticsearch ']'
-
runuser -s /bin/bash elasticsearch -c 'ulimit -S -c 0 >/dev/null 2>&1 ; /usr/share/elasticsearch/bin/elasticsearch -p /var/run/elasticsearch/elasticsearch.pid -d -Edefault.path.logs=/var/log/elasticsearch -Edefault.path.data=/var/lib/elasticsearch -Edefault.path.conf=/etc/elasticsearch'
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
/usr/share/elasticsearch/bin/elasticsearch: line 205: 13375 Killed exec "$JAVA" $ES_JAVA_OPTS -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" org.elasticsearch.bootstrap.Elasticsearch "$@" 0>&-
-
'[' 1 -eq 0 ']'
-
failure 'elasticsearch startup'
-
local rc=1
-
'[' color '!=' verbose -a -z '' ']'
-
echo_failure
-
'[' color = color ']'
-
echo -en '\033[60G'
+ echo -n '['
[+ '[' color = color ']'
-
echo -en '\033[0;31m'
-
echo -n FAILED
FAILED+ '[' color = color ']'
-
echo -en '\033[0;39m'
-
echo -n ']'
]+ echo -ne '\r'
-
return 1
-
'[' -x /bin/plymouth ']'
-
/bin/plymouth --details
-
return 1
-
retval=1
-
echo
-
'[' 1 -eq 0 ']'
-
return 1
-
exit 1
On this server installed java - java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
Could you please steer me in the right direction