• 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 Apache Solr 6.x on Ubuntu 16.04

By Abhishek Ghosh July 25, 2017 11:05 pm Updated on July 25, 2017

How To Install Apache Solr 6.x on Ubuntu 16.04

Advertisement

Solr is pronounced as Solar. It is an enterprise search platform built on Apache Lucene. Similar type of software is Elastic Search. Elasticsearch is on same Apache Lucene and more commonly used with Kibana, Beats, and Logstash as Elastic Stack for searching, analyzing and visualizing data. Here is how to install Apache Solr 6.x on Ubuntu 16.04. Apache Solr search platform can be integrated with WordPress, CMS & other Softwares.

As example, we can integrate Apache Solr for textual search, hit highlighting, boost through function queries
caching, add auto-suggest, arrange custom ranking and add many other features to WordPress search. Obviously Apache Solr can be used for more extensive usage in conjugation with other Big Data tools.

 

How To Install Apache Solr 6.x on Ubuntu 16.04

 

SSH to your server, become root user. Run :

Advertisement

---

Vim
1
2
apt update -y
apt upgrade -y

Solr is written in Java application, so Java runtime environment needs to be installed. Also, we have to install Python Software properties. Run the following command to install the components :

Vim
1
2
apt install python-software-properties
sudo add-apt-repository ppa:webupd8team/java

Hit Return/Enter key to add repository, then run :

Vim
1
apt update -y

We will install the latest version of Oracle Java 8 :

Vim
1
apt install oracle-java8-installer

How To Install Apache Solr 6-x on Ubuntu 16-04

You will get a TUI prompt to agree to the license to use Oracle Java. After installation, you can verify the version by running :

Vim
1
java -version

You will current versions of Apache Solr, as example at this mirror :

Vim
1
http://www.us.apache.org/dist/lucene/solr/

Which is big sized tgz file, that you need to wget :

Vim
1
2
cd /tmp
wgethttp://www.us.apache.org/dist/lucene/solr/6.6.0/solr-6.6.0.tgz

This command will extract the service installation file :

Vim
1
tar xzf solr-6.6.0.tgz solr-6.6.0/bin/install_solr_service.sh –strip-components=2

Check the files :

Vim
1
ls -al

This command will install Apache Solr using the extracted script (which we got by running the above command) :

Vim
1
solr-6.6.0/bin/install_solr_service.sh solr-6.6.0.tgz

You’ll get output like :

Vim
1
2
3
4
5
6
7
...
Creating new user: solr
Adding system user `solr' (UID 111) ...
Adding new group `solr' (GID 117) ...
Adding new user `solr' (UID 111) with group `solr' ...
Creating home directory `/var/solr' ...
...

Run this command. You can read the official documents later to understand why we ran it. exampletutorial is our chosen named of “collection”, you’ll add own collections later :

Vim
1
sudo su - solr -c "/opt/solr/bin/solr create -c exampletutorial -n data_driven_schema_configs"

You’ll get output :

Vim
1
2
3
4
5
6
7
8
9
10
11
Copying configuration to new core instance directory:
/var/solr/data/exampletutorial
 
Creating new core 'exampletutorial' using command:
http://localhost:8983/solr/admin/cores?action=CREATE&name=exampletutorial&instanceDir=exampletutorial
 
{
"responseHeader":{
"status":0,
"QTime":4427},
"core":"exampletutorial"}

Apache Solr web interface runs at port 8983 by default. You can visit http://your.server.ip:8983/solr on browser to view the admin UI.

Tagged With apache solr , can we install solr in/tmp folder in ubuntu , https solr ubuntu 16 04 , paperuri:(6177bf482225d0d0bb13e8c49a4fc226)

This Article Has Been Shared 769 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, 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 Apache Solr 6.x on Ubuntu 16.04

  • How To Install Apache Mesos With Marathon On Ubuntu 16.04 LTS

    Here Is How To Install Apache MeOS With Marathon On Ubuntu 16.04 LTS In Order To Integrate,Manage Multiple Servers Or Multi Cloud Environment.

  • Create Data Science Environment on Cloud Server With Docker

    Here Are the Steps, Commands to Create Data Science Environment on Cloud Server For Data Analysis Starting With a Blank Server With SSH.

  • How to Be More Proactive With Your Data

    Some organizations will only use data scientists and analysts to handle their data initiatives, while others will give access to multiple people across various departments. Let us take a look at how companies can be more proactive with their data.

  • Chart, Data Visualization in WordPress Posts From SQL & SQL Queries

    Displaying SQL result data may be a need. Here is How to Get Chart, Data Visualization in WordPress Posts From SQL Queries in Easy Way.

  • How To Install Apache Maven on Ubuntu Server

    Apache Maven is a Build Automation Tool. Here Are the Steps on How To Install Apache Maven on Ubuntu Server. Maven Needed For Many Big Data Software.

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

Get new posts by email:

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 (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023
  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023

About This Article

Cite this article as: Abhishek Ghosh, "How To Install Apache Solr 6.x on Ubuntu 16.04," in The Customize Windows, July 25, 2017, March 29, 2023, https://thecustomizewindows.com/2017/07/install-apache-solr-6-x-ubuntu-16-04/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

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

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

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT