mlightning is a tool designed to quickly load data into MongoDB sharded clusters.
Written in C++, it requires the following to compile:
- C++11 support (gcc 4.8.2)
- mongo-cxx-driver using the legacy branch, -std=c++11 is required.
- boost - program options, system, regex, thread, chrono and filesystem. Boost 1.55 in known to work, earlier versions may work, but this hasn't been tested.
- scons (and therefore python)
- tcmalloc (optional)
This program has been verified to compile on Ubuntu 14.04 with gcc 4.8.2 (standard on ubuntu)
sudo apt-get install gcc
sudo apt-get install libtcmalloc-minimal4
cd /usr/lib
sudo ln -s libtcmalloc.so.4 libtcmalloc.so
sudo apt-get install scons duplicity
sudo apt-get install libboost-all-dev
To compile and install the mongo C++ driver (assuming installing into /usr/local is desired):
git clone https://github.com/mongodb/mongo-cxx-driver.git
cd mongo-cxx-driver
sudo scons -j16 --opt=on --c++11 --prefix=/usr/local install
scons
To compile mlightning with tcmalloc:
scons --allocator=tcmalloc
mlightning -h
This software is not supported by MongoDB, Inc. under any of their commercial support subscriptions or otherwise. Any usage of mtools is at your own risk. Bug reports, feature requests and questions can be posted in the Issues section here on github.