• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » How to Install, Configure Elasticsearch with Apache Hadoop

By Abhishek Ghosh February 2, 2017 7:53 am Updated on February 2, 2017

How to Install, Configure Elasticsearch with Apache Hadoop

Advertisement

There is reason why we compared Elasticsearch with Apache Hadoop. Here is How To How to Install, Configure Elasticsearch with Apache Hadoop, Flume, Kibana. Also We Provided Links to Official Configuration. Before running the commands, we will suggest to read the text under the next sub header.

 

README To Install, Configure Elasticsearch with Apache Hadoop

 

Previously we have published few important guides. Even you are used for few months with Apache Hadoop, it will not harm to read the above links. They have more textual information more than mere commands to install.

  1. Installing Apache Hadoop
  2. Installing Apache Spark
  3. Installing Fluentd
  4. Installing Elastic Stack / ELK Stack
How to Install, Configure Elasticsearch with Apache Hadoop

 

How to Install, Configure Elasticsearch with Apache Hadoop

 

Minimum needs are HDP 2.0 or HDP Sandbox for HDP 2.0 on CentOS. In other words, follow previous guide to install Hadoop which is on numbered one on previous list of guides. Now we need to work with Java and PATH:

Advertisement

---

Vim
1
2
3
export JAVA_HOME=/usr/java/default
export PATH=$JAVA_HOME/bin:$PATH
java -version

Next we need to install Flume :

Vim
1
yum install flume-agent flume

Next, we need to install Elasticsearch, which is on numbered four on previous list of guides. We need to open and modify the file elasticsearch.yml :

Vim
1
nano /etc/elasticsearch/elasticsearch.yml

These are things you need to modify :

cluster.name: “logsearch”
node.name: “node1”
node.master: true
node.data: true
index.number_of_shards: 5
index.number_of_replicas : 1
path.data: /data1,/data2,/data3,/data4
discovery.zen.minimum_master_nodes: 1
discovery.zen.ping.timeout: 3s
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: [“host1”, “host2:port”]

Log location is at /var/log/elasticsearch. You can CD, open and adjust later. We can control Elasticsearch with usual commands :

Vim
1
2
/etc/init.d/elasticsearch start
/etc/init.d/elasticsearch status

Next we need to install Kibana, which is on numbered four on previous list of guides. Update the logstash index pattern to Flume supported index pattern. Under app/dashboards/logstash.json the entries [logstash-]YYYY.MM.DD need to be separated by dash – [logstash-]YYYY-MM-DD. Now, we need to work with Flume :

Vim
1
2
3
mkdir /usr/lib/flume/plugins.d
cp $elasticsearch_home/lib/elasticsearch-0.90*jar /usr/lib/flume/plugins.d
cp $elasticsearch_home/lib/lucene-core-*jar /usr/lib/flume/plugins.d

We can update Flume configuration to use a local file and index into Elasticsearch in logstash format. But in real cases, Flume Log4j Appender, Syslog TCP Source, Flume Client SDK, Spool Directory Source are used. The below is for Flume configuration to use a local file. You must understand what you are doing. You are only testing.

agent.sources = tail
agent.channels = memoryChannel
agent.channels.memoryChannel.type = memory
agent.sources.tail.channels = memoryChannel
agent.sources.tail.type = exec
agent.sources.tail.command = tail -F /tmp/es_log.log
agent.sources.tail.interceptors=i1 i2 i3
agent.sources.tail.interceptors.i1.type=regex_extractor
agent.sources.tail.interceptors.i1.regex = (\w.*):(\w.*):(\w.*)\s
agent.sources.tail.interceptors.i1.serializers = s1 s2 s3
agent.sources.tail.interceptors.i1.serializers.s1.name = source
agent.sources.tail.interceptors.i1.serializers.s2.name = type
agent.sources.tail.interceptors.i1.serializers.s3.name = src_path
agent.sources.tail.interceptors.i2.type=org.apache.flume.interceptor.TimestampInterceptor$Builder
agent.sources.tail.interceptors.i3.type=org.apache.flume.interceptor.HostInterceptor$Builder
agent.sources.tail.interceptors.i3.hostHeader = host
agent.sinks = elasticsearch
agent.sinks.elasticsearch.channel = memoryChannel
agent.sinks.elasticsearch.type=org.apache.flume.sink.elasticsearch.ElasticSearchSink
agent.sinks.elasticsearch.batchSize=100
agent.sinks.elasticsearch.hostNames = your.IP.here:9300
agent.sinks.elasticsearch.indexName = logstash
agent.sinks.elasticsearch.clusterName = logsearch
agent.sinks.elasticsearch.serializer = org.apache.flume.sink.elasticsearch.ElasticSearchLogStashEventSerializer

Now, create :

Vim
1
touch /tmp/es_log.log

open :

Vim
1
nano /tmp/es_log.log

populate with this kind of things :

Vim
1
2
3
4
5
6
7
8
website:weblog:login_page weblog data1
website:weblog:profile_page weblog data2
website:weblog:transaction_page weblog data3
website:weblog:docs_page weblog data4
syslog:syslog:sysloggroup syslog data1
syslog:syslog:sysloggroup syslog data2
syslog:syslog:sysloggroup syslog data3
syslog:syslog:sysloggroup syslog data4

Restart Flume :

Vim
1
/etc/init.d/flume-agent restart

Frankly, this is a typical setup. You need to read :

Vim
1
2
3
https://github.com/elastic/elasticsearch-hadoop
https://www.elastic.co/guide/en/elasticsearch/hadoop/current/index.html
https://www.elastic.co/guide/en/elasticsearch/hadoop/current/reference.html

for case specific setup and usage.

Tagged With flume kibana , dhow to install elasticsearch hadoop , kibana elasticsearch hadoop flume , installing elasticsearch on hadoop 2 7 , install elasticsearch-hadoop , install apache for kibana , how to install elasticsearch on hadoop , How to Install and Configure Apache Hadoop , How To Configure Elasticsearch on Hadoop with HDP 2018 , elasticsearch for apache hadoop configuration

This Article Has Been Shared 742 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Install, Configure Elasticsearch with Apache Hadoop

  • Peer Reviewed Journal Should be Demoted in the Age of Big Data

    Peer Reviewed Journal Should be Demoted in the Age of Big Data to Avoid Closed Source Manipulation of Data, Mix up With Bad Data and For Security.

  • Big Data and Cloud Computing : Driving the Growth of IT

    Cloud and Big Data are the drivers of growth of IT, which seems to grow by more than 46 percent within 2020, fueling the entire industry.

  • What is Dark Data in Big Data?

    What is Dark Data? It is Big Data Collected, Processed & Stored For Need But Organization Fails to Use it For Direct of Indirect Monetizing.

  • Predictive Big Data Analytics & Medical Diagnosis Automation

    Predictive Big Data Analytics & Medical Diagnosis Automation to Reach Precise Diagnosis Eliminating Human Bias is Discussed in this Article.

  • Apache Hadoop, Spark Vs. Elasticsearch/ELK Stack

    Apache Hadoop, Spark Vs. Elasticsearch aka ELK is a Good Topic. In Different Way – Why Peoples Use Elasticsearch When Hadoop, Spark Exists?

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Software Modernization? January 21, 2021
  • Cloud Computing : Cybersecurity Tips for Small Business Owners January 20, 2021
  • Arduino : Independently Blink Multiple LED January 18, 2021
  • What is a Loosely Coupled System? January 17, 2021
  • How To Repack Installed Software on Debian/Ubuntu January 16, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "How to Install, Configure Elasticsearch with Apache Hadoop," in The Customize Windows, February 2, 2017, January 21, 2021, https://thecustomizewindows.com/2017/02/install-configure-elasticsearch-apache-hadoop/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2021 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy