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

MongoDB adapter tutorial is out of date

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.17.0
    • Fix Version/s: None
    • Component/s: avatica, mongodb
    • Labels:
    • Environment:

      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|https://calcite.apache.org/docs/howto.html#mongodb-adapter|https://calcite.apache.org/docs/howto.html#mongodb-adapter],].  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

            • Assignee:
              Unassigned
              Reporter:
              TommyLike TommyLike
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: