Make sure to include this jar in the extras directory:
https://mvnrepository.com/artifact/org.apache.tika/tika-parser-sqlite3-package/2.9.1

It includes the sqlite-jdbc jar so no need to include that. It also
includes the Tika parser that wraps the xerial's sqlite parser.

On Wed, Nov 29, 2023 at 6:45 PM Xavier Watson <thexavierwat...@gmail.com>
wrote:

> Hello there,
>
> Having some trouble parsing sql database files. I am running a tika server
> with the docker image and this command.
>
> docker run -d -p 127.0.0.1:9998:9998 -v
> `pwd`/tika-config.xml:/tika-config.xml -v
> `pwd`/home/user/path/jars/:/tika-extras apache/tika:latest-full --config
> tika-config.xml
>
> This directory contains slf4j-api-1.7.36.jar and sqlite-jdbc-3.44.1.0.jar.
> My requests always come back with EmptyParser being used.
>
> I also pass in a config file with these lines:
> <?xml version="1.0" encoding="UTF-8"?>
> <properties>
> <parsers>
> <parser class="org.apache.tika.parser.sqlite3">
> </parser>
> <parser class="org.apache.tika.parser.DefaultParser">
> <parser-exclude class="org.apache.tika.parser.ocr.TesseractOCRParser"/>
> </parser>
> </parsers>
> </properties>
>
> When I hit the /parsers endpoint I don't see a sql parser listed.
>
> Thanks for your time,
> Xavier
>

Reply via email to