• 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)
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

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Difference Between Apache Solr and Apache Lucene

    One user have installation guide for Apache Solr but we do not have guide for Apache Lucene. It is kind of deliberate omission. There is an easy way to use Lucence on the command line. In most of the situations possibly you’ll use Apache Solr and when you’ll realize the need to utilize Apache Lucene, […]

  • Integrating Apache Nutch With Apache Solr on Ubuntu Server

    Integrating Apache Nutch With Apache Solr Will Offer a Web UI, Options to Visually Search and Use Extended Functions of Apache Nutch.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

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

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
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