CenterForDigitalHumanities / rerum_server

Java web service for a RERUM compliant digital object repository
http://rerum.io
Other
7 stars 2 forks source link

Install MongoDB 4.4.x on DEV-01 #163

Open cubap opened 4 years ago

cubap commented 4 years ago

and test/prepare connection from within Java

cubap commented 4 years ago

added repo to /etc/yum.repos but cannot yum install with other versions there.

installed yum-utils to get yumdownloader for grabbing rpm

cubap commented 4 years ago

grr even manual install does not allow side by side


warning: mongodb-enterprise-4.4.1-1.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 90cfb1f5: NOKEY
error: Failed dependencies:
        mongodb-enterprise-server = 4.4.1 is needed by mongodb-enterprise-4.4.1-1.el6.x86_64
        mongodb-enterprise-shell = 4.4.1 is needed by mongodb-enterprise-4.4.1-1.el6.x86_64
        mongodb-enterprise-mongos = 4.4.1 is needed by mongodb-enterprise-4.4.1-1.el6.x86_64
        mongodb-enterprise-tools = 4.4.1 is needed by mongodb-enterprise-4.4.1-1.el6.x86_64
        mongodb-enterprise-cryptd = 4.4.1 is needed by mongodb-enterprise-4.4.1-1.el6.x86_64
        mongo-10gen-server conflicts with mongodb-enterprise-4.4.1-1.el6.x86_64
        mongodb-org-server conflicts with mongodb-enterprise-4.4.1-1.el6.x86_64
        mongodb-org-shell conflicts with mongodb-enterprise-4.4.1-1.el6.x86_64
        mongodb-org-tools conflicts with mongodb-enterprise-4.4.1-1.el6.x86_64
        mongo-10gen-enterprise conflicts with mongodb-org-server-2.6.12-1.x86_64
        mongo-10gen-enterprise conflicts with mongodb-org-shell-2.6.12-1.x86_64
        mongo-10gen-enterprise conflicts with mongodb-org-tools-2.6.12-1.x86_64
        mongodb-enterprise conflicts with mongodb-org-server-2.6.12-1.x86_64
        mongodb-enterprise conflicts with mongodb-org-shell-2.6.12-1.x86_64
        mongodb-enterprise conflicts with mongodb-org-tools-2.6.12-1.x86_64
cubap commented 4 years ago

maybe I can get around it with a tarball...

cubap commented 4 years ago

nope. I mean, I got it in place, but I cannot start it without some trouble.

cubap commented 4 years ago

maybe I'll get an Atlas free tier for testing connections at least...

cubap commented 4 years ago
MongoClientURI uri = new MongoClientURI(
    "mongodb+srv://rerumBot:<password>@cluster0.qytdr.mongodb.net/<dbname>?retryWrites=true&w=majority");

MongoClient mongoClient = new MongoClient(uri);
MongoDatabase database = mongoClient.getDatabase("test");
cubap commented 4 years ago

okay, we're sending this back and I'm moving to #167 instead.