Apache Solr Installation on Ubuntu 14.04
Apache Solr is an open source enterprise search platform, written in Java, from the Apache Lucene project. Its major features include full-text search, hit highlighting, faceted search, real-time indexing, dynamic clustering, database integration, NoSQL features and rich document (e.g., Word, PDF) handling. Providing distributed search and index replication, Solr is designed for scalability and fault tolerance. Solr is the second-most popular enterprise search engine after Elasticsearch.
Solr runs as a standalone full-text search server. It uses the Lucene Java search library at its core for full-text indexing and search, and has REST-like HTTP/XML and JSON APIs that make it usable from most popular programming languages. Solr's external configuration allows it to be tailored to many types of application without Java coding, and it has a plugin architecture to support more advanced customization.
1) A machine with Ubuntu 14.04 LTS operating system installed.
2) Apache Solr 5.4.0 software (Download Here)
Apache Solr Installation
The following steps to install Solr on your machine.
Step 1 - Installing java 7. Open a terminal (CTRL + ALT + T) and type the following sudo command.
Check it installed properly or not.
Step 2 - Creating solr directory. Open a terminal (CTRL + ALT + T) and type the following sudo command.
Step 3 - Change the ownership and permissions of the directory /usr/local/solr. Here 'hduser' is an Ubuntu username.
Step 4 - Change the directory to /home/hduser/Desktop , In my case the downloaded solr-5.4.0.tgz file is in /home/hduser/Desktop folder. For you it might be in /downloads folder check it.
Step 5 - Untar the solr-5.4.0.tgz file.
Step 6 - Move the contents of solr-5.4.0 folder to /usr/local/solr
Step 7 - Change the directory to /usr/local/solr
Step 8 - Starting the Solr.
Step 9 - Check the web UI here. Open a browser and type the following URL.
Step 10 - Stoping the Solr.
Other ways to start and stop Solr
To check status
Please share this blog post and follow me for latest updates on