From the version 5.2 onwards of Open Source BI Helical Insight, we are directly supporting Cockroach DB out of the box. Hence the steps mentioned in this blog are not required. In the below image we have highlighted from where you can find out about the current version of your Helical Insight instance.

Helical Insight usage with SAP HANA

Connection string is something like below

How to connect Cockroach DB to Helical Insight

Example :

Host: klutzy-insect-7667.8nk.cockroachlabs.cloud
Port: 26257
Database Name: defaultdb
Datasource Name: Cockroachdb
User Name:  **Username**
Password: **password**

If you are using version older than version 5.2, then only you need to read further this blog in order to make it compatible with CockroachDB.

In this blog we are going to cover how to connect and use Open source BI product Helical Insight with cockroach db.

What is CockroachDB:

CockroachDB is a distributed, open-source relational database system designed to provide high availability, strong consistency, and horizontal scalability.

Features of CockroachDB DB:

  1. Distributed Architecture: CockroachDB is designed to be a distributed system, allowing it to scale horizontally by adding more nodes to the cluster.
  2. Consistency and ACID Transactions: CockroachDB adheres to the principles of ACID (Atomicity, Consistency, Isolation, Durability) transactions, ensuring data consistency and reliability.
  3. >Horizontal Scalability: CockroachDB can scale horizontally by adding more nodes to the cluster. This enables it to handle increased workloads and provides better performance.
  4. Strong Consistency Guarantees: CockroachDB provides strong consistency guarantees, meaning that all nodes in the cluster have a consistent view of the data at all times.
  5. Multi-Active Availability: CockroachDB allows for multi-active availability, meaning that multiple nodes can accept both reads and writes simultaneously.

Connect CockroachDB to Helical Insight

As Helical Insight is a Java-based open-source business intelligence framework we need JDBC driver to make a DBconnection.

NOTE: By default, Helical Insight includes a Postgress Driver (which is slightly older versin) but in order to connect to CockroachDB we need Postgress driver of a higher Version i.e. 42.6.0 or higher (postgresql-42.6.0). Hence we need to remove the already present older Postgress driver and put the newer driver.

How To Remove Old Driver:

Go to Helical Insight UI >> Home >> Plugins

How To Connect Cockroach DB To Helical Insight

Find the Postgress Driver and Delete.

How To Connect Cockroach DB To Helical Insight

How To Add New Verson:

Download Version 42.6.0 JDBC driver here:
https://jdbc.postgresql.org/download/postgresql-42.6.0.jar

Now in Helical Insight UI go to Data sources

How To Connect Cockroach DB To Helical Insight

Click On New Add Driver

How To Connect Cockroach DB To Helical Insight

After clicking on that add driver you can see a new tab there

How To Connect Cockroach DB To Helical Insight

Click on Upload driver and select the downloaded Postgres JDBC driver

Then do a hard refresh of the datasourcs page, now you can see the Postgres JDBC driver in Data sources

How To Connect Cockroach DB To Helical Insight

Now click on that Postgress driver

How To Connect Cockroach DB To Helical Insight

 
Host: klutzy-insect-7667.8nk.cockroachlabs.cloud
Port: 26257
Database Name: defaultdb
Datasource Name: Cockroachdb
User Name:  **Username**
Password: **password**

Provide the required details and Test the connection After getting Connection successful, Save the Datasource.

Setting Up Configuration Files in Backend:

Helical Insight requires efwd, XML and JS files to access Metadata and Functions of Cockroachdb

Link: cockroachdb.zip

EFWD FILE:
Path: …hi\hi-repository\System\Admin\DbConfig
Go to this path and add(paste) the downloaded Cockroachdb.efwd file

XML and JS files:
Path: …\hi\hi-repository\System\Admin\SqlFunctions
Go to this path and paste the add(paste) the Cockroachdb.xml and Cockroachdb.js file

Configuring Files:

STEP1: Now we need to map those files with driver class
Path: …\hi\hi-repository\System\Admin\sqlDialects.properties
Open sqlDialects.properties and add below text

#Cockroachdb
org.postgresql.Driver=org.hibernate.dialect.PostgreSQLDialect 

ex: line no 45,46

How To Connect Cockroach DB To Helical Insight

add save the file (required administrator access).

STEP2: Now Lets map the driver class with XML function file
Path: …\hi\hirepository\System\Admin\sqlFunctionsXmlMapping.properties
Go to the above path and open sqlFunctionsXmlMapping.properties and add below text

#cockroachdb
org.postgresql.Driver=cockroachdb 

ex:

How To Connect Cockroach DB To Helical Insight

add and save the file (required administrator access).

After completing above steps you need to restart the Helical Insight application

WINDOWS: Search ‘Services’ in search bar

Now you can see list of services running find HelicalInsight and right click and restart it will few seconds to restart

How To Connect Cockroach DB To Helical Insight

In a similar way for restarting Helical Insight service on Linux machine,
For Linux , to check the status of the service, run the following command:

service HelicalInsight status

You can restart the service by running the following set of commands:

service HelicalInsight stop

service HelicalInsight start

After restarting you can use Helical Insight application to connect to Cockroach DB and create reports dashboards also.

Helical Insight’s self-service capabilities is one to reckon with. It allows you to simply drag and drop columns, add filters, apply aggregate functions if required, and create reports and dashboards on the fly. For advanced users, the self-service component has ability to add javascript, HTML, HTML5, CSS, CSS3 and AJAX. These customizations allow you to create dynamic reports and dashboards. You can also add new charts inside the self-service component, add new kind of aggregate functions and customize it using our APIs.
Helical Insight’s self-service capabilities is one to reckon with. It allows you to simply drag and drop columns, add filters, apply aggregate functions if required, and create reports and dashboards on the fly. For advanced users, the self-service component has ability to add javascript, HTML, HTML5, CSS, CSS3 and AJAX. These customizations allow you to create dynamic reports and dashboards. You can also add new charts inside the self-service component, add new kind of aggregate functions and customize it using our APIs.
Helical Insight, via simple browser based interface of Canned Reporting module, also allows to create pixel perfect printer friendly document kind of reports also like Invoice, P&L Statement, Balance sheet etc.
Helical Insight, via simple browser based interface of Canned Reporting module, also allows to create pixel perfect printer friendly document kind of reports also like Invoice, P&L Statement, Balance sheet etc.
If you have a product, built on any platform like Dot Net or Java or PHP or Ruby, you can easily embed Helical Insight within it using iFrames or webservices, for quick value add through instant visualization of data.
If you have a product, built on any platform like Dot Net or Java or PHP or Ruby, you can easily embed Helical Insight within it using iFrames or webservices, for quick value add through instant visualization of data.
Being a 100% browser-based BI tool, you can connect with your database and analyse across any location and device. There is no need to download or install heavy memory-consuming developer tools – All you need is a Browser application! We are battle-tested on most of the commonly used browsers.
Being a 100% browser-based BI tool, you can connect with your database and analyse across any location and device. There is no need to download or install heavy memory-consuming developer tools – All you need is a Browser application! We are battle-tested on most of the commonly used browsers.
We have organization level security where the Superadmin can create, delete and modify roles. Dashboards and reports can be added to that organization. This ensures multitenancy.
We have organization level security where the Superadmin can create, delete and modify roles. Dashboards and reports can be added to that organization. This ensures multitenancy.
We have organization level security where the Superadmin can create, delete and modify roles. Dashboards and reports can be added to that organization. This ensures multitenancy.
We have organization level security where the Superadmin can create, delete and modify roles. Dashboards and reports can be added to that organization. This ensures multitenancy.
A first-of-its-kind Open-Source BI framework, Helical Insight is completely API-driven. This allows you to add functionalities, including but not limited to adding a new exporting type, new datasource type, core functionality expansion, new charting in adhoc etc., at any place whenever you wish, using your own in-house developers.
A first-of-its-kind Open-Source BI framework, Helical Insight is completely API-driven. This allows you to add functionalities, including but not limited to adding a new exporting type, new datasource type, core functionality expansion, new charting in adhoc etc., at any place whenever you wish, using your own in-house developers.
It handles huge volumes of data effectively. Caching, Pagination, Load-Balancing and In-Memory not only provides you with amazing experience, but also and does not burden the database server more than required. Further effective use of computing power gives best performance and complex calculations even on the big data even with smaller machines for your personal use. Filtering, Sorting, Cube Analysis, Inter Panel Communication on the dashboards all at lightning speed. Thereby, making best open-source Business Intelligence solution in the market.
It handles huge volumes of data effectively. Caching, Pagination, Load-Balancing and In-Memory not only provides you with amazing experience, but also and does not burden the database server more than required. Further effective use of computing power gives best performance and complex calculations even on the big data even with smaller machines for your personal use. Filtering, Sorting, Cube Analysis, Inter Panel Communication on the dashboards all at lightning speed. Thereby, making best open-source Business Intelligence solution in the market.
With advance NLP algorithm, business users simply ask questions like, “show me sales of last quarter”, “average monthly sales of my products”. Let the application give the power to users without knowledge of query language or underlying data architecture
With advance NLP algorithm, business users simply ask questions like, “show me sales of last quarter”, “average monthly sales of my products”. Let the application give the power to users without knowledge of query language or underlying data architecture
Our application is compatible with almost all databases, be it RDBMS, or columnar database, or even flat files like spreadsheets or csv files. You can even connect to your own custom database via JDBC connection. Further, our database connection can be switched dynamically based on logged in users or its organization or other parameters. So, all your clients can use the same reports and dashboards without worrying about any data security breech.
Our application is compatible with almost all databases, be it RDBMS, or columnar database, or even flat files like spreadsheets or csv files. You can even connect to your own custom database via JDBC connection. Further, our database connection can be switched dynamically based on logged in users or its organization or other parameters. So, all your clients can use the same reports and dashboards without worrying about any data security breech.
Our application can be installed on an in-house server where you have full control of your data and its security. Or on cloud where it is accessible to larger audience without overheads and maintenance of the servers. One solution that works for all.
Our application can be installed on an in-house server where you have full control of your data and its security. Or on cloud where it is accessible to larger audience without overheads and maintenance of the servers. One solution that works for all.
Different companies have different business processes that the existing BI tools do not encompass. Helical Insight permits you to design your own workflows and specify what functional module of BI gets triggered
Different companies have different business processes that the existing BI tools do not encompass. Helical Insight permits you to design your own workflows and specify what functional module of BI gets triggered