[ https://issues.apache.org/jira/browse/SLING-7457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16350090#comment-16350090 ]
Robert Munteanu commented on SLING-7457: ---------------------------------------- [~frougeot] - I double-checked my steps, here's what I did to ensure this work * ensures that no other 'sling' database exists in mongodb * downloaded a sling starter 10-SNAPSHOT from repository.apache.org * started the app with the proper runmodes * validated that there are now entries in the sling.nodes collection *MongoDB* {noformat} $ mongo MongoDB shell version v3.4.10 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.4.10 > show dbs admin 0.000GB local 0.000GB > exit {noformat} *Sling Starter* {noformat} $ wget https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.starter/10-SNAPSHOT/org.apache.sling.starter-10-20180131.135931-131.jar $ java -jar org.apache.sling.starter-10-20180131.135931-131.jar -Dsling.run.modes=oak_mongo {noformat} *Verifying* After a little time, MongoDB connection information should be printed on stdout {noformat}INFO: Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 10]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=460489}{noformat} Also, data should be in the {{nodes}} collection of the {{sling}} mongo database {noformat}$ mongo > use sling > db.nodes.count(); 13454{noformat} Can you follow these steps and let me know where it stops working for you? > Poor documentation on mongoDB or other NOSQL use > ------------------------------------------------ > > Key: SLING-7457 > URL: https://issues.apache.org/jira/browse/SLING-7457 > Project: Sling > Issue Type: Bug > Components: Documentation > Reporter: frederic rougeot > Priority: Major > > I am evaluating sling. > I succeed in setting it up and it works as I thought, seems to be a very > valuable product for those who want to rapidlly build a software that relies > on JCR, which is my case. > But the next question is "Should I use a noSQL Database or not". As it may be > an important choice, since Sling is not really compatible with SQL database, > I wanted to make sling run with MongoDB. > I read the documentation, and at first impression, it seemed quite immediate; > I simply have to add an option to change the mode of launching the starter > application, as it is said in the following documentation: > [https://sling.apache.org/documentation/the-sling-engine/the-sling-launchpad.html] > > So I tried to launch the starter application with the following lines: > java -Dsling.run.modes=oak,oak_mongo -jar > org.apache.sling.starter-10-SNAPSHOT.jar > and checked with a mongodb client if a mongodb server was started or not ... > As I was unable to connect to mongodb://localhost:27017 I guess something is > missing, maybe mongodb should be installed separetely ? > > I continue reading the documentation, and find > [https://sling.apache.org/documentation/bundles/nosql-resource-providers.html] > OK, my conclusion was I missed to install the nosql-resource-providers, so I > installed the bundle and check again ... > Nothing new, it seems I have done nothing. > So, always according to > [https://sling.apache.org/documentation/bundles/nosql-resource-providers.html,] > there is another launchpad to use. > There is the link to the source code: > https://github.com/apache/sling-old-svn-mirror/tree/trunk/contrib/nosql/launchpad > But it is said that this source repository is obsolete and shall not be used. > So I get back to apache git repository, and filtered on "sling" and "nosql", > I can find some code now ... > https://github.com/apache?utf8=%E2%9C%93&q=sling+nosql&type=&language= > But it is absolutely not clear to me whether I have to do something with that > modules or not ... > So my real problem is I can't get the right documentation on "How to setup > Sling 9 to work with mongodb" and there is, as far as I know, no forum where > I can ask this to a community to help. > I guess sling is working well with mongoDB, but if I need 10 days to set it > up (I spend 1 day, maybe it is not enough) my point of view is made: I won't > use mongodb. > But this maybe a terrible mistake ! > > So help please ! > > > > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)