DB2 for LUW (Linux, UNIX, Windows) Driver for Metabase.
Metabase Version | DB2 Driver | Bugs |
---|---|---|
0.46 | 1.1.46.2 (jar) | |
Older versions | See here | See release details |
First download Metabase .jar file here and run
java -jar metabase.jar
The plugins/
directory will be created. Drop the driver in your plugins/
directory and run metabase again. You can grab it here or build it yourself:
- Java JDK 11
- Node.js
- Clojure
- Yarn
Clone the Metabase repo first if you haven't already done so.
Inside /metabase_source
run "clojure -X:deps prep" after clone or pull.
Clone this DB2 driver repo inside drivers modules folder /metabase_source/modules/drivers
and rename this repo folder to 'db2' only.
Edit /metabase_source/modules/drivers/deps.edn
and insert a db2 parameter, just like others: metabase/db2 {:local/root "db2"}
.
Edit the driver as you want.
Inside /metabase_source
run
./bin/build-driver.sh db2
mkdir -p /path/to/metabase/plugins/
cp /metabase_source/resources/modules/db2.metabase-driver.jar /path/to/metabase/plugins/
jar -jar /path/to/metabase/metabase.jar
Run as follows to avoid the CharConversionException exceptions. In this way, JCC converts invalid characters to NULL instead of throwing exceptions:
java -Ddb2.jcc.charsetDecoderEncoder=3 -jar metabase.jar
Thanks to everybody here metabase/metabase#1509