You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2019/08/08 17:41:00 UTC

[jira] [Resolved] (CALCITE-2734) MongoDB adapter tutorial is out of date

     [ https://issues.apache.org/jira/browse/CALCITE-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Elser resolved CALCITE-2734.
---------------------------------
    Resolution: Fixed

Resolving given Andrei's comments and lack of response from reporter.

> MongoDB adapter tutorial is out of date
> ---------------------------------------
>
>                 Key: CALCITE-2734
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2734
>             Project: Calcite
>          Issue Type: Improvement
>          Components: mongodb-adapter
>    Affects Versions: 1.17.0
>         Environment: Host: Mac OS 10.14.1
> Calcite: Master
>            Reporter: TommyLike
>            Priority: Major
>              Labels: document
>
> 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
> ```
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)