Giter VIP home page Giter VIP logo

Comments (2)

dosubot avatar dosubot commented on August 16, 2024 3

The reason you can't find the Apache Doris option in the SUPPORTED DATABASES after following the documentation to pip install pydoris and restarting the Docker container is likely because the DorisEngineSpec class is not registered in the Superset configuration.

To resolve this, you need to ensure that the DorisEngineSpec is imported and registered in the superset/config.py or superset/config_override.py file. Here is an example of how you can do this:

from superset.db_engine_specs.doris import DorisEngineSpec

DATABASES = {
    'doris': DorisEngineSpec,
    # other database specs...
}

Additionally, make sure you have followed the steps to install the database driver in the Docker container as described in the Superset documentation. Specifically, you need to add the pydoris package to the requirements-local.txt file in the docker directory and rebuild the Docker image:

  1. Create or update the requirements-local.txt file in the docker directory:

    echo "pydoris" >> ./docker/requirements-local.txt
  2. Rebuild the Docker image:

    docker compose build --force-rm
  3. Restart the Superset service:

    docker compose up

After making these changes and restarting the Superset service, the Apache Doris option should be available in the SUPPORTED DATABASES. Additionally, ensure that the docs/src/resources/data.js file includes Apache Doris in the list of supported databases:

export const Databases = [
  // other databases...
  {
    title: 'Apache Doris',
    href: 'https://doris.apache.org/',
    imgName: 'doris.png',
  },
];

[1][2][3]

To continue talking to Dosu, mention @dosu.

from superset.

eschutho avatar eschutho commented on August 16, 2024

Hi @chenjiehao, thanks for reporting! I wasn't able to reproduce this on my local. Can you run pip list and check the version?

(superset) superset % pip list | grep pydoris
pydoris                       1.0.5.3

Then this is what you should see in the dropdown:
Screenshot 2024-07-19 at 1 19 58 PM

from superset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.