In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
System centos6.7
1, install jdk-1.8.0
Yum install java-1.8.0-openjdk
2, download elasticsearch-2.4.3.tar.gz and install
Tar zxvf elasticsearch-2.4.3.tar.gz-C / optvi / opt/elasticsearch-2.4.3/conf/elasticsearch.yml
Add configuration
Network.host: 0.0.0.0#server binds local server private and public network iphttp.cors.enabled: truehttp.cors.allow-origin: "*"
3, start
Error
PenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using-XX:ParallelGCThreads=N
Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.
At org.elasticsearch.bootstrap.Bootstrap.initializeNatives (Bootstrap.java:94)
At org.elasticsearch.bootstrap.Bootstrap.setup (Bootstrap.java:160)
At org.elasticsearch.bootstrap.Bootstrap.init (Bootstrap.java:286)
At org.elasticsearch.bootstrap.Elasticsearch.main (Elasticsearch.java:45)
Refer to the log for complete error details.
[root@vultr elasticsearch] # su es bin/elasticsearch
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using-XX:ParallelGCThreads=N
[2016-12-29 08 unable to install syscall filter 56 WARN] [bootstrap] unable to install syscall filter: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
Exception in thread "main" java.lang.IllegalStateException: Unable to access' path.plugins' (/ opt/elasticsearch/plugins)
Likely root cause: java.nio.file.AccessDeniedException: / opt/elasticsearch/plugins
At sun.nio.fs.UnixException.translateToIOException (UnixException.java:84)
At sun.nio.fs.UnixException.rethrowAsIOException (UnixException.java:102)
At sun.nio.fs.UnixException.rethrowAsIOException (UnixException.java:107)
At sun.nio.fs.UnixFileSystemProvider.createDirectory (UnixFileSystemProvider.java:384)
At java.nio.file.Files.createDirectory (Files.java:674)
At java.nio.file.Files.createAndCheckIsDirectory (Files.java:781)
At java.nio.file.Files.createDirectories (Files.java:767)
At org.elasticsearch.bootstrap.Security.ensureDirectoryExists (Security.java:337)
At org.elasticsearch.bootstrap.Security.addPath (Security.java:314)
At org.elasticsearch.bootstrap.Security.addFilePermissions (Security.java:246)
At org.elasticsearch.bootstrap.Security.createPermissions (Security.java:212)
At org.elasticsearch.bootstrap.Security.configure (Security.java:118)
At org.elasticsearch.bootstrap.Bootstrap.setupSecurity (Bootstrap.java:212)
At org.elasticsearch.bootstrap.Bootstrap.setup (Bootstrap.java:183)
At org.elasticsearch.bootstrap.Bootstrap.init (Bootstrap.java:286)
At org.elasticsearch.bootstrap.Elasticsearch.main (Elasticsearch.java:45)
Refer to the log for complete error details.
Reasons: 1, the new version is not allowed to start with root, 2, the software directory does not have the corresponding permissions
Resolve:
Groupadd esuseradd-g es espasswd es
Restart:
Su es-c / opt/elasticsearch-2.4.3/bin/elasticsearch-Xmx2g-Xms2g-Des.index.storage.type=memory-d > / dev/null 2 > & 1 & "# because I am using a virtual machine and the memory is relatively small, so starting depends on the actual situation-Xmx2g is the maximum memory-Xms2g is the minimum memory-d is running in the background # my run command is su es-c / opt/elasticsearch/bin/elasticsearch-d > / dev/null 2 > & 1 &
Install the plug-in: elasticsearch-head (is the display page in the front of the cluster)
Change to the bin directory to execute
. / plugin install mobz/elasticsearch-head
Page display: http://localhost/_plugin/head
Test:
A json data appears in curl http://localhost:9200 indicating that the startup is successful, as follows
{
"status":
"name": "Omen"
"version": {
"number": "1.1.1"
"build_hash": "f1585f096d3f3985e73456debdc1a0745f512bbc"
"build_timestamp": "2014-04-16T14:27:12Z"
"build_snapshot": false
"lucene_version": "4.7"
}
"tagline": "You Know, for Search"
}
Install the plug-in: elasticsearch-kopf
Execute the command:
. / plugin install lmenezes/elasticsearch-kopf
Page display: http://localhost/_plugin/bigdesk/
4, install kibana
Tar zxvf kibana-4.6.3-linux-x86_64.tar.gz-C / opt
Modify configuration
Because you are on the same server as elasticsearch, you only need to change the link address of elasticsearch
Elasticsearch_url: http://localhost:9200
Start
Bin/kibana-p 5601 > / dev/null 2 > & 1 &
It means to start on port 5601
Then access it through http://ip:5601.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.