<commit_before>h1. Elasticsearch DevOps

h2. Method of Installation For Begginers and Intermediate

h3. Treat it as a Tutorial
<hr>

h3. Abstract

The document puts on the methods in the installation and configuration of ElasticSearch, on an Ubuntu 15.04 machine.

h3. Specs

	- ElasticSearch version 	-1.7.0
	- Ubuntu Version		- 15.04
	- java				- java version "1.7.0_80"
  					Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
  					Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11,    mixed mode)


h3. Procedure

Installation of Java Virtual Machine
apt-get update
apt-get install openjdk-6-jre
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get install oracle-java7-installer
check (by) - java -version
Installation of ElasticSearch
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.7.0.zip
unzip elasticsearch-1.7.0.zip

h3. Configuring

First check the unzipped ElasticSearch Directory.
goto config/
edit elasticsearch.yml
cluster.name: ***** (For Distributed Systems Network Handling)
node.name: Grepman (For Specifying the master)
node.rack: rack314 (For Distributed Shard allocation) [check if default]
Now create a new Data Folder [to avoid overwriting of data while ES Update]
create data_pykih_nodes [mkdir]
change in config -> path.data




h3. ElasticSearch Plugins

Install Marvel For Network Analysis, Logging and Insights
./bin/plugin --install elasticsearch/marvel/latest
Install Head For Distributed System Discovery and Maintainence
bin/plugin --install mobz/elasticsearch-head


h3. Run ElasticSearch

For Instance : goto ElasticSearch Directory
./bin/elasticsearch
For Demon : goto ElasticSearch Directory
./bin/elasticsearch -d

<commit_msg>Configuring Env@ES VPN Machine<commit_after>h1. Elasticsearch DevOps

h2. Method of Installation For Begginers and Intermediate

h3. Treat it as a Tutorial
<hr>

h3. Abstract

The document puts on the methods in the installation and configuration of ElasticSearch, on an Ubuntu 15.04 machine.

h3. Specs

 <ul>
 <li>	- ElasticSearch version 	-1.7.0</li>
 <li>	- Ubuntu Version		- 15.04</li>
 <li>	- java				- <ul><li>java version "1.7.0_80"</li>
  					<li>Java(TM) SE Runtime Environment (build 1.7.0_80-b15)</li>
  					<li>Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11,    mixed mode)</li></ul>
</ul>

h3. Procedure

<ul><li>Installation of Java Virtual Machine
<ul><li>apt-get update</li>
<li>apt-get install openjdk-6-jre</li>
<li>sudo add-apt-repository ppa:webupd8team/java</li>
<li>sudo apt-get install oracle-java7-installer</li>
<li>check (by) - java -version</li></ul></li></ul>

h3. Installation of ElasticSearch

** wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.7.0.zip
** unzip elasticsearch-1.7.0.zip

h3. Configuring

** First check the unzipped ElasticSearch Directory.
** goto config/
** edit elasticsearch.yml
** cluster.name: _________ (For Distributed Systems Network Handling)
** node.name: Grepman (For Specifying the master)
** node.rack: rack314 (For Distributed Shard allocation) [check if default]
** Now create a new Data Folder [to avoid overwriting of data while ES Update]
** create data_pykih_nodes [mkdir]
** change in config -> path.data




h3. ElasticSearch Plugins

** Install Marvel For Network Analysis, Logging and Insights
 ./bin/plugin --install elasticsearch/marvel/latest
** Install Head For Distributed System Discovery and Maintainence
 bin/plugin --install mobz/elasticsearch-head


h3. Run ElasticSearch

** For Instance : goto ElasticSearch Directory
./bin/elasticsearch
** For Demon : goto ElasticSearch Directory
./bin/elasticsearch -d


{'fraction_non_alphanumeric': 0.0982436882546652, 'fraction_numerical': 0.028814489571899013, 'mean_word_length': 4.214592274678112, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 38, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3339718', 'n_tokens_mistral': 1256, 'n_tokens_neox': 1163, 'n_words': 389}