Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2734

MongoDB adapter tutorial is out of date

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.17.0
    • 1.21.0
    • mongodb-adapter
    • Host: Mac OS 10.14.1

      Calcite: Master

    Description

      Hey all,

          I am trying to learn Calcite via MongoDB adapter, and I found there is a related tutorial section in HOWTO,].  But it seems to be a little out of date now, I found several issues at least:

      1. model file: mongo-zips-model.json  has been renamed into mongo-models.json.

      2. data source file zips.json doesn't include all the data required in the models.json file.

      3. the MongoDB adapter can not be directly used, because there is a log related bug when execute command ``!connect jdbc:calcite:model=mongodb/target/test-classes/mongo-model.json admin admin``, related output:

      ```
      SLF4J: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError.
      SLF4J: See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.

      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFactory

      ```

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            TommyLike TommyLike
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: