codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


TommyLike created CALCITE-2734:
----------------------------------

             Summary: 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: avatica, mongodb
    Affects Versions: 1.17.0
         Environment: Host: Mac OS 10.14.1

Calcite: Master
            Reporter: TommyLike


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.3#76005)