Posts

Running MongoChef on CentOS

When trying to run MongoChef on CentOS, you may experience the following issue:

java: cairo-misc.c:380: _cairo_operator_bounded_by_source: Assertion `NOT_REACHED' failed.
./mongochef.sh: line 11: 28030 Aborted (core dumped) $DIR/../jre/bin/java -jar $DIR/../lib/data-man-mongodb-pro-*.jar

This is a general issue for all SWT-based applications on CentOS and is related to the Cairo 2D graphics library on CentOS.

The work-around is to pass ‘-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false‘ to the application. In order to do that, open mongochef.sh in the bin directory of your MongoChef installation and add the (highlighted) parameter to the last line of the script.

#!/bin/bash

SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

$DIR/../jre/bin/java -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false -jar $DIR/../lib/data-man-mongodb-pro-*.jar

Save your script and you are good to go!

How to install 3T Schema Explorer for MongoDB on Linux

On Linux, 3T Schema Explorer is distributed as a gzipped tarball (.tar.gz). We follow a common directory pattern on Linux in that 3T Schema Explorer’s root directory contains a “bin” folder that contains a runnable .sh file that starts 3T Schema Explorer.

To install 3T Schema Explorer, open your shell and cd to a directory of your choice. There, unpack and run 3T Schema Explorer like so:

For the 64-bit version of 3T Schema Explorer 2.1.1 for example:

$ tar -xvzf schema-explorer-mongodb-2.1.1-linux-x64-dist.tar.gz
$ ./schema-explorer-mongodb-2.1.1/bin/3t_schema_explorer.sh

For the 32-bit version of 3T Schema Explorer 2.1.1 for example:

$ tar -xvzf schema-explorer-mongodb-2.1.1-linux-x86-dist.tar.gz
$ ./schema-explorer-mongodb-2.1.1/bin/3t_schema_explorer.sh

How to install 3T Data Compare & Sync for MongoDB on Linux

On Linux, 3T Data Compare & Sync is distributed as a gzipped tarball (.tar.gz). We follow a common directory pattern on Linux in that 3T Data Compare & Sync’s root directory contains a “bin” folder that contains a runnable .sh file that starts 3T Data Compare & Sync.

To install 3T Data Compare & Sync, open your shell and cd to a directory of your choice. There, unpack and run 3T Data Compare & Sync like so:

For the 64-bit version of 3T Data Compare & Sync 1.7.7 for example:

$ tar -xvzf data-comp-gui-1.7.7-linux-x64-dist.tar.gz
$ ./data-comp-gui-1.7.7/bin/3t_data_compare.sh

For the 32-bit version of 3T Data Compare & Sync 1.7.7 for example:

$ tar -xvzf data-comp-gui-1.7.7-linux-x86-dist.tar.gz
$ ./data-comp-gui-1.7.7/bin/3t_data_compare.sh

How to install MongoChef on Linux

On Linux, MongoChef is distributed as a gzipped tarball (.tar.gz). We follow a common directory pattern on Linux in that MongoChef’s root directory contains a “bin” folder that contains a runnable .sh file that starts MongoChef.

To install MongoChef, open your shell and cd to a directory of your choice. There, unpack and run MongoChef like so:

For the 64-bit version of MongoChef 3.5.0 for example:

$ tar -xvzf mongochef-linux-x64-dist.tar.gz
$ ./mongochef-3.5.0-linux-x64-dist/bin/mongochef.sh

For the 32-bit version of MongoChef 3.5.0 for example:

$ tar -xvzf mongochef-linux-x86-dist.tar.gz
$ ./mongochef-3.5.0-linux-x86-dist/bin/mongochef.sh