In linux, The ElasticSearch.6.2.1 and head, Kibana, X-Pack, SQL, IK, and PINYIN plug-ins are configured and installed,

Source: Internet
Author: User
Tags unsupported kibana

In linux, The ElasticSearch.6.2.1 and head, Kibana, X-Pack, SQL, IK, and PINYIN plug-ins are configured and installed,
1. Install elasticsearch-head1.1 directly using command Installation Error

elasticsearch-6.2.0\bin>elasticsearch-plugin install elasticsearch-headA tool for managing installed elasticsearch pluginsCommands--------list - Lists installed elasticsearch pluginsinstall - Install a pluginremove - removes a plugin from ElasticsearchNon-option arguments:commandOption         Description------         ------------h, --help     show help-s, --silent   show minimal output-v, --verbose  show verbose outputERROR: Unknown plugin elasticsearch-head
1.2 nodejs Installation

In 6.x, elasticsearch-head

You cannot use elasticsearch-plugin install in the plugins and modules directories of elasticsearch.

Start elasticsearch directly.

Install elasticsearch-head

1. Modify elasticsearch/config/elasticsearch. yml

2. Add

http.cors.enabled: truehttp.cors.allow-origin: "*"

3. Download elasticsearch-head or clone it to any folder

Download

[es@biluos elasticsearch-head-master]$ pwd/home/es/elasticsearch-head-master

Directory

4. Install nodejs

5. cd/home/es/elasticsearch-head-master

6. npm install-g grunt-cli

Grunt is a convenient building tool that can be used for packaging, compression, testing, and execution.

[es@biluos elasticsearch-head-master]$ npm install -g grunt-cli npm WARN checkPermissions Missing write access to /opt/moudles/node-v8.9.4-linux-x64/lib/node_modulesnpm ERR! path /opt/moudles/node-v8.9.4-linux-x64/lib/node_modulesnpm ERR! code EACCESnpm ERR! errno -13npm ERR! syscall accessnpm ERR! Error: EACCES: permission denied, access '/opt/moudles/node-v8.9.4-linux-x64/lib/node_modules'npm ERR!  { Error: EACCES: permission denied, access '/opt/moudles/node-v8.9.4-linux-x64/lib/node_modules'npm ERR!   stack: 'Error: EACCES: permission denied, access \'/opt/moudles/node-v8.9.4-linux-x64/lib/node_modules\'',npm ERR!   errno: -13,npm ERR!   code: 'EACCES',npm ERR!   syscall: 'access',npm ERR!   path: '/opt/moudles/node-v8.9.4-linux-x64/lib/node_modules' }npm ERR! npm ERR! Please try running this command again as root/Administrator.npm ERR! A complete log of this run can be found in:npm ERR!     /home/es/.npm/_logs/2018-02-25T02_49_37_372Z-debug.log

At first glance, we can see that it is a permission issue, because my nodejs is installed by root. Here I am an es user.

[es@biluos elasticsearch-head-master]$ su rootPassword: [root@biluos elasticsearch-head-master]#  npm install -g grunt-cli /opt/moudles/node-v8.9.4-linux-x64/bin/grunt -> /opt/moudles/node-v8.9.4-linux-x64/lib/node_modules/grunt-cli/bin/grunt+ grunt-cli@1.2.0added 16 packages in 21.663s

7. npm install

[root@biluos elasticsearch-head-master]# npm install npm WARN deprecated http2@3.3.7: Use the built-in module in node 9.0.0 or newer, insteadnpm WARN deprecated coffee-script@1.10.0: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)> phantomjs-prebuilt@2.1.16 install /home/es/elasticsearch-head-master/node_modules/phantomjs-prebuilt> node install.jsmodule.js:540    throw err;    ^Error: Cannot find module '/home/es/elasticsearch-head-master/node_modules/phantomjs-prebuilt/install.js'    at Function.Module._resolveFilename (module.js:538:15)    at Function.Module._load (module.js:468:25)    at Function.Module.runMain (module.js:684:10)    at startup (bootstrap_node.js:187:16)    at bootstrap_node.js:608:3npm WARN elasticsearch-head@0.0.0 license should be a valid SPDX license expressionnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! phantomjs-prebuilt@2.1.16 install: `node install.js`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the phantomjs-prebuilt@2.1.16 install script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:npm ERR!     /root/.npm/_logs/2018-02-25T03_01_11_887Z-debug.log

This is because my elasticsearch is an es user and the elasticsearch-head-master file is a root user.

[root@biluos es]# lltotal 12drwxr-xr-x 4 es   es   4096 Feb  9 14:55 elasticsearch[root@biluos elasticsearch-head-master]# ll /home/es/elasticsearch-head-master/node_modulestotal 1028drwxr-xr-x  2 root root 4096 Feb 25 11:01 abbrevdrwxr-xr-x  2 root root 4096 Feb 25 11:01 acceptsdrwxr-xr-x  3 root root 4096 Feb 25 11:01 afterdrwxr-xr-x  2 root root 4096 Feb 25 11:01 ansi-regexdrwxr-xr-x  2 root root 4096 Feb 25 11:01 ansi-styles

Here, the unified user is es

[root@biluos es]# chown -R es:es elasticsearch-head-master/

Then, the es user is successfully installed.

[root@biluos elasticsearch-head-master]# su es [es@biluos elasticsearch-head-master]$ npm install > phantomjs-prebuilt@2.1.16 install /home/es/elasticsearch-head-master/node_modules/phantomjs-prebuilt> node install.jsPhantomJS not found on PATHDownloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2Receiving...                                                                                                                                                                                               [=============---------------------------] 33                                                                                                                                                   [===================================-----] 87%Received 22866K total.Extracting tar contents (via spawned process)Removing /home/es/elasticsearch-head-master/node_modules/phantomjs-prebuilt/lib/phantomCopying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1519527928056/phantomjs-2.1.1-linux-x86_64 -> /home/es/elasticsearch-head-master/node_modules/phantomjs-prebuilt/lib/phantomWriting location.js fileDone. Phantomjs binary available at /home/es/elasticsearch-head-master/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjsnpm notice created a lockfile as package-lock.json. You should commit this file.npm WARN elasticsearch-head@0.0.0 license should be a valid SPDX license expressionnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})added 70 packages in 84.93s[es@biluos elasticsearch-head-master]$ 

8. grunt server

[es@biluos elasticsearch-head-master]$ grunt server(node:6612) ExperimentalWarning: The http2 module is an experimental API.Running "connect:server" (connect) taskWaiting forever...Started connect web server on http://localhost:9100

9. http: // 192.168.10.173: 9100/successful

10. Start our elasticsearch

[es@biluos elasticsearch-6.2.0]$ bin/elasticsearch[2018-02-25T11:11:14,998][INFO ][o.e.n.Node               ] [node-1] initializing ...[2018-02-25T11:11:15,117][INFO ][o.e.e.NodeEnvironment    ] [node-1] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [6.2gb], net total_space [25.4gb], types [rootfs][2018-02-25T11:11:15,117][INFO ][o.e.e.NodeEnvironment    ] [node-1] heap size [1.9gb], compressed ordinary object pointers [true][2018-02-25T11:11:15,182][INFO ][o.e.n.Node               ] [node-1] node name [node-1], node ID [Wquj4gYuTteo7M5uXzSBiQ]
2.2. Install Kibana

1. Download linux

2. Extract/home/es/kibana

[root@biluos kibana]# pwd/home/es/kibana[root@biluos kibana]# cd ../[root@biluos es]# lltotal 12drwxr-xr-x 4 es   es   4096 Feb  9 14:55 elasticsearchdrwxr-xr-x 7 es   es   4096 Feb 25 11:05 elasticsearch-head-masterdrwxr-xr-x 4 root root 4096 Feb 10 11:56 kibana[root@biluos es]# 

This is the root user, but it does not affect kibana startup.

3. modify configuration

[root@biluos kibana-6.2.1-linux-x86_64]#vim config/kibana.ymlelasticsearch.url: "http://192.168.10.173:9200"server.host: "192.168.10.173"

Elasticsearch. url: The elasticsearch instance we connect.

Server. host: the address where kibana runs.

4. run directly

[root@biluos kibana-6.2.1-linux-x86_64]# bin/kibana  log   [03:21:34.590] [info][status][plugin:kibana@6.2.1] Status changed from uninitialized to green - Ready  log   [03:21:34.662] [info][status][plugin:elasticsearch@6.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch  log   [03:21:34.669] [info][status][plugin:xpack_main@6.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch  log   [03:21:34.683] [info][status][plugin:searchprofiler@6.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch

5. Check that http: // 192.168.10.173: 5601 is running successfully.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.