• 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 422 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 (22.1K 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

  • The Cost of Doing Business as a Handyman July 1, 2022
  • Samsung Galaxy S22 Ultra: Long Term Review June 30, 2022
  • How to Make the Most of Your S Pen (S22 Ultra) June 29, 2022
  • Safe Chargers for Samsung Galaxy S22 Ultra June 27, 2022
  • How Telecoms Can Use The Cloud To Power Their 5G Network June 24, 2022

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, July 2, 2022, https://thecustomizewindows.com/2017/07/install-apache-solr-6-x-ubuntu-16-04/.

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 Privacy Policy.

PC users can consult Corrine Chorney for Security.

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

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

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