How to Install Apache Tika
How to Install Apache Tika on Ubuntu Server
AdvertisementApache 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. We need latest Java Runtime Environment (JRE) and Maven. Java Development Kit (JDK) is usually needed to compile Java applications. Installing Java with apt :apt update && apt upgradeInstalling JavaThis will install the Java Runtime Environment (JRE) with the following command: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 :apt install default-jdkapt install openjdk-8-jdkOracle JDK is the official JDK; but no longer Oracle provides as default installation for Ubuntu. We can install with :sudo apt install software-properties-common apt-transport-https unzip wget curl nano -ysudo add-apt-repository ppa:webupd8team/javaapt update && apt upgradeapt install oracle-java8-installerWhen there are multiple Java installations on your server, the Java version to use as default can be chosen with the following command:sudo update-alternatives --config javaYou will get something like this :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 modeSame goes for the Java compiler (javac), keytool, javadoc and jarsigner :sudo update-alternatives --config javacsudo update-alternatives --config keytoolsudo update-alternatives --config javadocsudo update-alternatives --config javasignerWe can set JAVA_HOME environment, we will get the path of the installation for each from above example, like :/usr/lib/jvm/java-8-oracle/usr/lib/jvm/java-7-openjdk-amd64...We can open file /etc/environment :And add the appropiate line :JAVA_HOME="/usr/lib/jvm/java-8-oracle"## change /usr/lib/jvm/java-8-oracle with yoursReload and test :source /etc/environmentecho $JAVA_HOMEInstalling MavenWe 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 :http://maven.apache.org/download.cgi## click the installation instructions thereIn short, this is the way :cd /optwget http://redrockdigimark.com/apachemirror/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gztar -xzvf apache-maven-3.5.3-bin.tar.gzls -al## you'll see directory like apache-maven-3.5.3## remove tarrm apache-maven-3.5.3-bin.tar.gz## give a sane namemv apache-maven-3.5.3/ apache-maven/Now, just add the $PATH of that directory :cd /etc/profile.d/nano maven.shAdd :export JAVA_HOME=/usr/lib/jvm/java-8-oracleexport M2_HOME=/opt/apache-mavenexport MAVEN_HOME=/opt/apache-mavenexport PATH=${M2_HOME}/bin:${PATH}Save the file and run these :chmod +x maven.shsource maven.shTest :You can see, how weak the official guides are.Installing Apache TikaThis is official download site :https://tika.apache.org/download.htmlDownload and uncompress :cd /optwget http://redrockdigimark.com/apachemirror/tika/tika-1.18-src.zipTen uncompress, install with Maven :tika-1.18-src.zipls -alcd tika-1.18mvn installFinish. Now you can test Tika from the base directory of Tika :https://www.ibm.com/developerworks/opensource/tutorials/os-apache-tika/index.htmlhttps://wiki.apache.org/tika/TikaBatchUsagehttp://tika.apache.org/1.18/gettingstarted.htmlThis 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