Pentaho

 View Only
  • 1.  Where does Pentaho CE stores users, data sources and CD Dashboard?

    Posted 03-07-2023 13:07

    Hi,

    I can see that Pentaho server uses Tomcat to serve web pages but I can't understand where it saves: users, data sources and CDE dashboards.

    Which kind of database does it use?

    Is it accessible?

    Thank you very much.

    Claudio



    ------------------------------
    Claudio Battaglino
    IT Support Manager
    cbc
    ------------------------------


  • 2.  RE: Where does Pentaho CE stores users, data sources and CD Dashboard?
    Best Answer

    Posted 03-08-2023 05:37

    Hi Claudio,

    all content is stored in DBMS via JCR (Apache Jackrabbit). As default is used HSQLDB, databases are stored in data/hsqldb directory. As storage can use another DBMS, supported DB are listed in documentation or check data directory where are SQL scripts of these DB.



    ------------------------------
    Petr Prochazka
    Systems Engineer
    P.V.A. systems s.r.o.
    ------------------------------



  • 3.  RE: Where does Pentaho CE stores users, data sources and CD Dashboard?

    Posted 06-27-2023 06:43

    Hi,

    but do you mean pentaho-server/data/hsqldb ?

    Because if I copy all the "data" directory and its subdirectories into another installation of Pentaho I can't see the folders created in the first server.

    It starts as an empty server.

    Why does this happen?

    Claudio



    ------------------------------
    Claudio Battaglino
    IT Support Manager
    cbc
    ------------------------------



  • 4.  RE: Where does Pentaho CE stores users, data sources and CD Dashboard?

    Posted 06-27-2023 09:32

    Ok, the path is:  pentaho-solutions/system/jackrabbit/repository



    ------------------------------
    Claudio Battaglino
    IT Support Manager
    cbc
    ------------------------------



  • 5.  RE: Where does Pentaho CE stores users, data sources and CD Dashboard?

    Posted 06-27-2023 12:21

    Hi Claudio,

    my fault. Correct location is as you posted.

    Another way is call backup of instance to zip file and restore it. You can use import-export script or call REST API http://localhost:8080/pentaho/api/repo/files/backup and http://localhost:8080/pentaho/api/repo/files/systemRestore.

    // edit

    IMHO you can copy content of directory jackrabbit to new instance of BA server. I do not tested, I use PostgreSQL as persistence layer.
    ------------------------------
    Petr Prochazka
    Systems Engineer
    P.V.A. systems s.r.o.
    ------------------------------



  • 6.  RE: Where does Pentaho CE stores users, data sources and CD Dashboard?

    Posted 06-28-2023 02:55

    Hi,

    I was using the file system way because I'm trying to build a Pentaho container from a virtual machine.

    However I was also looking for a way to make backups of the site and this seems a great way to do it.

    Thank you very much, it is really useful.

    Claudio b.



    ------------------------------
    Claudio Battaglino
    IT Support Manager
    cbc
    ------------------------------



  • 7.  RE: Where does Pentaho CE stores users, data sources and CD Dashboard?

    Posted 03-09-2023 14:32

    RE the question: "Is it accessible?"
    Not via SQL. If you look at jackrabbit tables, it's mostly serialized binary objects. So, there are at least 2 ways to make it accessible:

    1. the same Java code that is part of Pentaho (easier to just use the Pentaho User Console)
    2. use the API calls to access the stored information (we've done this extensively).

    I hope that may be of some help.

    John



    ------------------------------
    John Craig
    Senior Software Engineer
    Henry Schein One
    ------------------------------