Hello,
I'm working on Cloudera Quickstart VM 5.13 with CentOS 6.7. I want to use mongodb but the service won't start, i have this error:
Starting mongod: [FAILED]
Here is what i did; I downloaded the rpm files from the Mongo DB Repository ( https://repo.mongodb.org/yum/redhat/6/mongodb-org/4.4/x86_64/RPMS/ ). Then installed each file with the following command: sudo rpm -i /tmp/mozilla_cloudera0/fileName;
After that, i created the MongoDB data and log directories like so:
sudo mkdir -p /var/lib/mongo
sudo mkdir -p /var/log/mongodb
Then I have set the owner and group of these directories to mongod:
sudo chown -R mongod: mongod /var/lib/mongo
sudo chown -R mongod: mongod /var/log/mongodb
And i finally checked if MongoDB was installed, with this command: mongod --version
Here is the result: Build Info: {
"version": "4.4.4",
"gitVersion": "8db30a63db1a9d84bdcad0c83369623f708e0397",
"openSSLVersion": "OpenSSL 1.0.1e-fips 11 Feb 2013",
"modules": [],
"allocator": "tcmalloc",
"environment": {
"distmod": "rhel62",
"distarch": "x86_64",
"target_arch": "x86_64"
}
Can anyone help me?