starting mongodb error after replacing the storage engine to rocksdb

106 views
Skip to first unread message

林森

unread,
Jul 3, 2017, 9:38:47 AM7/3/17
to rocksdb
I want to change  the mongodb's storage engine from WiredTiger to RocksDB, Imake all steps accroding to the instruction in mongo-rocksdb's github project.

Here is the detail setps:
# install compression libraries (zlib, bzip2, snappy):
sudo apt-get install zlib1g-dev; sudo apt-get install libbz2-dev; sudo apt-get install libsnappy-dev
# get rocksdb
git clone https://github.com/facebook/rocksdb.git
# compile rocksdb
cd rocksdb; make static_lib; sudo INSTALL_PATH=/usr make install; cd ..
# get mongo
git clone https://github.com/mongodb/mongo.git
# get mongorocks
git clone https://github.com/mongodb-partners/mongo-rocks
# add rocksdb module to mongo
mkdir -p mongo/src/mongo/db/modules/
ln -sf ./mongo-rocks mongo/src/mongo/db/modules/rocks
# compile mongo
cd mongo; scons
Start mongod using the --storageEngine=rocksdb option
last, I use commmand: ./mongod --dbpath ~/mongo/data --storageEngine=rocksdb
but there has errors, the detail below:
2017-07-03T21:04:19.827+0800 I CONTROL  [initandlisten] MongoDB starting : pid=14860 port=27017 dbpath=/home/zhaoj/mongo/data 64-bit host=zhaoj
2017-07-03T21:04:19.828+0800 I CONTROL  [initandlisten] db version v3.5.9-162-gedc858c
2017-07-03T21:04:19.828+0800 I CONTROL  [initandlisten] git version: edc858ca3a32974c07f027e6860a52ac6e89039b
2017-07-03T21:04:19.828+0800 I CONTROL  [initandlisten] allocator: tcmalloc
2017-07-03T21:04:19.828+0800 I CONTROL  [initandlisten] modules: none
2017-07-03T21:04:19.828+0800 I CONTROL  [initandlisten] build environment:
2017-07-03T21:04:19.828+0800 I CONTROL  [initandlisten]     distarch: x86_64
2017-07-03T21:04:19.828+0800 I CONTROL  [initandlisten]     target_arch: x86_64
2017-07-03T21:04:19.828+0800 I CONTROL  [initandlisten] options: { storage: { dbPath: "/home/zhaoj/mongo/data", engine: "rocksdb" } }
2017-07-03T21:04:19.829+0800 I STORAGE  [initandlisten] exception in initAndListen: 18656 Cannot start server with an unknown storage engine: rocksdb, terminating
2017-07-03T21:04:19.829+0800 I NETWORK  [initandlisten] shutdown: going to close listening sockets...
2017-07-03T21:04:19.829+0800 I NETWORK  [initandlisten] shutdown: going to flush diaglog...
2017-07-03T21:04:19.829+0800 I CONTROL  [initandlisten] now exiting
2017-07-03T21:04:19.829+0800 I CONTROL  [initandlisten] shutting down with code:100
My OS is ubuntu 16.04,  I really don't know how to fix the problem... Could anyone help me ??

Igor Canadi

unread,
Jul 3, 2017, 2:22:08 PM7/3/17
to 林森, rocksdb
Can you try percona's build that's precompiled and includes MongoRocks: https://www.percona.com/doc/percona-server-for-mongodb/LATEST/mongorocks.html

--
You received this message because you are subscribed to the Google Groups "rocksdb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rocksdb+unsubscribe@googlegroups.com.
To post to this group, send email to roc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rocksdb/d0f4c416-81dd-4447-b252-8a364e1dc72e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

林森

unread,
Jul 4, 2017, 8:34:44 AM7/4/17
to rocksdb
I installed Percona and it worked well when using --storageEngine=rocksdb.  But I still want to change the storageEngine to rocksdb in mongodb.....


在 2017年7月4日星期二 UTC+8上午2:22:08,Igor Canadi写道:
To unsubscribe from this group and stop receiving emails from it, send an email to rocksdb+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages