• 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 Tika on Ubuntu Server

By Abhishek Ghosh June 19, 2018 3:56 am Updated on June 19, 2018

How to Install Apache Tika on Ubuntu Server

Advertisement

Apache Tika is a Content Analysis Framework. Tika is like we right click on file and selecting properties option on desktop BUT for web. It also can detect content. Apache Tika detects and extracts metadata and text from different file types – it can identify more than 1400 file types. Tika has relation with Apache Nutch codebase. Tika has fork in Python too. Tika has different way of implementation on server to integrate with various blogging platforms and CMS (including WordPress). Here is How to Install Apache Tika on Ubuntu server. Tika is easy and light to install, indeed can be tested on Windows with Ubuntu bash running. Tika has a GUI when ran from desktop operating system.

How to Install Apache Tika on Ubuntu Server

 

How to Install Apache Tika on Ubuntu Server

 

We need latest Java Runtime Environment (JRE) and Maven. Java Development Kit (JDK) is usually needed to compile Java applications. Installing Java with apt :

Vim
1
apt update && apt upgrade

Installing Java

Advertisement

---

This will install the Java Runtime Environment (JRE) with the following command:

Vim
1
apt install default-jre

If you need the Java Development Kit (JDK), then execute the following command. JDK contains the JRE, there are no disadvantages if you install the JDK instead of the JRE :

Vim
1
2
apt install default-jdk
apt install openjdk-8-jdk

Oracle JDK is the official JDK; but no longer Oracle provides as default installation for Ubuntu. We can install with :

Vim
1
2
3
4
sudo apt install software-properties-common apt-transport-https unzip wget curl nano -y
sudo add-apt-repository ppa:webupd8team/java
apt update && apt upgrade
apt install oracle-java8-installer

When there are multiple Java installations on your server, the Java version to use as default can be chosen with the following command:

Vim
1
sudo update-alternatives --config java

You will get something like this :

Vim
1
2
3
4
5
Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-8-oracle/jre/bin/java          1062      auto mode
  1            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1061      manual mode
  2            /usr/lib/jvm/java-8-oracle/jre/bin/java          1062      manual mode

Same goes for the Java compiler (javac), keytool, javadoc and jarsigner :

Vim
1
2
3
4
sudo update-alternatives --config javac
sudo update-alternatives --config keytool
sudo update-alternatives --config javadoc
sudo update-alternatives --config javasigner

We can set JAVA_HOME environment, we will get the path of the installation for each from above example, like :

Vim
1
2
3
/usr/lib/jvm/java-8-oracle
/usr/lib/jvm/java-7-openjdk-amd64
...

We can open file /etc/environment :

Vim
1
nano /etc/environment

And add the appropiate line :

Vim
1
2
JAVA_HOME="/usr/lib/jvm/java-8-oracle"
## change /usr/lib/jvm/java-8-oracle with yours

Reload and test :

Vim
1
2
source /etc/environment
echo $JAVA_HOME

Installing Maven

We actually have older guide to Install JDK 8 and Maven 3 on Ubuntu 14.04. Apache Maven is easy to install and has good official documentation :

Vim
1
2
http://maven.apache.org/download.cgi
## click the installation instructions there

In short, this is the way :

Vim
1
2
3
4
5
6
7
8
9
cd /opt
wget http://redrockdigimark.com/apachemirror/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz
tar -xzvf apache-maven-3.5.3-bin.tar.gz
ls -al
## you'll see directory like apache-maven-3.5.3
## remove tar
rm apache-maven-3.5.3-bin.tar.gz
## give a sane name
mv apache-maven-3.5.3/ apache-maven/

Now, just add the $PATH of that directory :

Vim
1
2
cd /etc/profile.d/
nano maven.sh

Add :

Vim
1
2
3
4
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export M2_HOME=/opt/apache-maven
export MAVEN_HOME=/opt/apache-maven
export PATH=${M2_HOME}/bin:${PATH}

Save the file and run these :

Vim
1
2
chmod +x maven.sh
source maven.sh

Test :

Vim
1
2
mvn --version
mvn --help

You can see, how weak the official guides are.

Installing Apache Tika

This is official download site :

Vim
1
https://tika.apache.org/download.html

Download and uncompress :

Vim
1
2
cd /opt
wget http://redrockdigimark.com/apachemirror/tika/tika-1.18-src.zip

Ten uncompress, install with Maven :

Vim
1
2
3
4
tika-1.18-src.zip
ls -al
cd tika-1.18
mvn install

Finish. Now you can test Tika from the base directory of Tika :

Vim
1
2
3
https://www.ibm.com/developerworks/opensource/tutorials/os-apache-tika/index.html
https://wiki.apache.org/tika/TikaBatchUsage
http://tika.apache.org/1.18/gettingstarted.html

This ends the tutorial.

Tagged With YGHH , NUVH , install tika ubuntu , how to download apache tika , apache tika ubuntu setup , Apache Tika server , apache tika installation , apache tika guide , Apache tika gov cloud aws , apache tika download

This Article Has Been Shared 970 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 Tika on Ubuntu Server

  • How to Include Jupyter Notebooks in WordPress Posts

    How to Include Jupyter Notebooks in WordPress Posts? There Are Several Ways. It Depends on What Exactly Your Blogs Are About.

  • Visualization of SQL Data in Jupyter Notebook & Embedding in WordPress Post

    Here is How To On Visualization of SQL Data in Jupyter Notebook & Embedding in WordPress Post in Easy Language, in All Steps.

  • LinkedIn Profile Badge using LinkedIn API Guide

    LinkedIn Profile Badge can be created using LinkedIn API . Here is step by step guide with tools needed for troubleshooting for successfully creating the badge.

  • Google App Engine and PHP : Beginners Guide

    Google App Engine now supports PHP. There is separate Plugin for WordPress. Support for phpMyAdmin and all PHP-MySQL web softwares and frameworks is available.

  • What is Data Refining in Big Data?

    What is Data Refining in Big Data? In Data Refining we refine disparate data to increase understanding of the data & remove data variability.

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

  • What is Configuration Management February 5, 2023
  • What is ChatGPT? February 3, 2023
  • Zebronics Pixaplay 16 : Entry Level Movie Projector Review February 2, 2023
  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023

About This Article

Cite this article as: Abhishek Ghosh, "How to Install Apache Tika on Ubuntu Server," in The Customize Windows, June 19, 2018, February 6, 2023, https://thecustomizewindows.com/2018/06/how-to-install-apache-tika-on-ubuntu/.

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