Connecting to database using apache pivot? - apache-pivot

I am new to desktop applications.can someone explain on how to connect to database using apache pivot?
if it is not possible please list any other options to achieve it
I want to insert some records into a table in database (like MS Access,MYSQL,etc.....).
If anyone has worked on such a requirement using apache pivot, please help me out with some sample code.
Thanks in advance

As Benjamin Gale posted, Pivot is a GUI framework that really doesn't need or have any APIs to deal with connecting to databases. But, JDBC can be used in a Pivot application to do that, just like any other Java application.

Related

How to connect to Flink SQL Client from NodeJS?

I'm trying to use Apache Flink's Table concept in one of my projects to combine data from multiple sources in real-time. Unfortunately, all of my team members are Node.JS developers. So, I'm looking for possible ways to connect to Flink from NodeJS and query from it. In Flink's documentation for SQL Client, it's mentioned that
The SQL Client aims to provide an easy way of writing, debugging, and submitting table programs to a Flink cluster without a single line of Java or Scala code. The SQL Client CLI allows for retrieving and visualizing real-time results from the running distributed application on the command line.
Based on this, is there any way to connect to Flink's SQL client from NodeJS? Is there any driver already available for this like Node.JS drivers for MySQL or MSSQL. Otherwise, what are the possible ways of achieving this?
Any idea or clarity on achieving this would be greatly helpful and much appreciated.
There's currently not much that you can do. The SQL Client runs on local machines and connects to the cluster there. I think what will help you is the introduction of the Flink SQL Gateway, which is expected to be released with Flink 1.16. You can read more about that on https://cwiki.apache.org/confluence/display/FLINK/FLIP-91%3A+Support+SQL+Gateway
Another alternative is to check out some of the products that offer a FlinkSQL editor on the market, maybe that is useful path for your colleagues.
For example:
https://www.ververica.com/apache-flink-sql-on-ververica-platform
https://docs.cloudera.com/csa/1.7.0/ssb-overview/topics/csa-ssb-intro.html
Note that this is not exactly what you asked for, but could be an option to enable your team.

Connecting/Accessing Hive data through Spark Thrift server on Power BI

I am rather new to data connectivity on multiple platforms, my requirement here is simple, I need to be able to access Spark Thrift server via Power BI, can anyone guide me with the required steps for the same?
I've had to integrate quite a few big data & analytics tools, and have a good amount of experience with spark
Typically I look for it on the tableau documentation
https://onlinehelp.tableau.com/current/pro/desktop/en-us/examples_sparksql.html
or the tool's docs
https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-november-feature-summary/#spark
but I'm partial to these docs
https://github.com/oracle/learning-library/blob/master/workshops/journey2-new-data-lake/files/18.1.4/pdf/Connecting%20DVD3%20and%20Spark.pdf
You'll need to make sure you've got spark-thift up and listening to an open port. Then you'll need different information and the type of connection you're using (jdbc, odbc...)
This is assuming you've got a preview version of the DirectQuery
https://learn.microsoft.com/en-us/power-bi/desktop-directquery-data-sources

PostgreSQL + Node Integration

Need some advice regarding the following situation:
There is an existing PostgreSQL database that I would like to draw information from (with full authorization of course). How can I query the entries in that database using NodeJS? I know sequelize can offer what I'm looking for, but I'm a bit confused as to how to approach this. I've heard that I would have to migrate the data first in order to then query it. What's the best way to go about doing this? Thanks.
For reference, I've taken a look at this link (https://github.com/sequelize/sequelize/issues/3791) but haven't gotten what I'd hoped out of it.
You can query without migration for existing database, this package should help https://www.npmjs.com/package/pg

If you don't have direct access to the database, how would you see some rows in the table?

I'm sitting in on a training class and the instructor just asked the new hires a question I don't know the answer to myself. "If you don't have direct access to the database, how would you see some rows in the table through Cognos v9.5?"
Anybody have a solution? I'm pretty new to Cognos still so please be specific!
Thanks!
v 9.5 is TM1 only, there was no such Framework Manager release.
You can write custom SQL in TurboIntegrator using ODBC data source.
If we're talking BI (not TM1) then you would see rows through Cognos secured data sources. ie. the Cognos admininstrator creates a data source in Cognos (using Cognos Connection) which has access to the database. Then he grants you (as a Cognos user) access to the data source. You don't have direct access to the database but you have access to a Congos datasource via Cognos security, and you can see data that way.

Regarding Yii and cassandra work

I wonder yii works with cassandra.
If anybody know how it work.
Please post link or some references.
Thank you in advance.
I your using a major PHP ORM with Yii, the real question is 'Does PDO have a driver that will work with cassandra?'
http://code.google.com/a/apache-extras.org/p/cassandra-pdo/
If you're using Yii's native Active Record ORM, it only supports AR with (from their site):
Support for AR is limited by DBMS. Currently, only the following DBMS are supported:
MySQL 4.1 or later
PostgreSQL 7.3 or later
SQLite 2 and 3
Microsoft SQL Server 2000 or later
Oracle
If you want to use an application component other than db, or if you want to work with multiple databases using AR, you should override CActiveRecord::getDbConnection(). The CActiveRecord class is the base class for all AR classes.
Of course, ORMs are meant for use on relational databases so using something like cassandra, Mongodb, or Couchdb might not be best to sit under an ORM.
Otherwise, your question doesn't make much sense. It's like asking 'does database work with my code'.

Resources