issue with Connecting Vitess from mysql Work Bench - vitess

we are able to connect Vitess from dot net core application but where as we are getting attached error while connecting vitess from MySQL Work bench.
is anything we are missing.
Thanks

A good number of workbench issues have been fixed. We're now working on handling the SET statements that it sends. Hopefully, that should cover most use cases. Until then, the workaround is to configure workbench to not send these preamble queries.

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.

how to solve this transaction error in mlab? [MongoError: Transaction numbers are ... support document-level locking]

I'm trying to do a simple transaction using mongoose. It worked totally fine on MongoDB Atlas, but in mlab I got such an error: MongoError: Transaction numbers are only allowed on storage engines that support document-level locking. I did some research, but didn't really find any resources regarding mlab and document-level locking.
Does anyone know how to solve this problem?
I have same issue, then I contact mlab help, here is their reply:
That error indicates your app/driver is attempting to use a feature that's not compatible with your Shared Cluster deployment, which employs the MMAPv1 storage einge. It's likely that you have retryable writes (https://docs.mongodb.com/manual/core/retryable-writes/) enabled. Can you try turning that feature off in the connection string (https://docs.mongodb.com/manual/reference/connection-string/#urioption.retryWrites), or directly from your driver settings?
Please let us know if you continue to experience this error after turning off this feature.
Based on this answer, I appended retryWrites=false in mongodb connection url, then it works well.
This worked for me by adding retryWrites=false ;
Current URL
mongodb://<user>:<password>#ds0145508.mlab.com:11508/testdb
New URL
mongodb://<user>:<password>#ds0145508.mlab.com:11508/testdb?retryWrites=false
mlab.com runs mongodb 3.6, while the newest is 4.2.x and tools, db connectors, etc., want to use 4.x features.
In short, mlab.com is outdated.

HowTo Jhipster microservices and Gateway WITH codenvy?

I wish there's a trick for coding jHipster Microservices and Gateway with Codenvy, even with these issues related in the below closed isssue.
This closed issue comes from Jhipster, which is reason why I ask here, so please see it carefully if interested by topic of the question.
https://github.com/jhipster/generator-jhipster/issues/6922
This is a screenshot from my codenvy machine:
Please help and tell me, as I keep thinking that with an advanced use of BrowserSync, we could finally manage this.
I already have a Codenvy with 7GB which let run all the stack tiers simultaneously. Yet I can test the apps but not perfectly , as you can see if you follow the related ticket. I can pass thru the entities creation forms, yet once I come to call the CRUD rest services, it's failing because listen ports are not accessible => seems like due to redirections, my local browser is trying to access open ports from the realm, but Codenvy only give 1 virtual access to a single test port.
What I'd like to do with BrowserSync is just manipulating a headLess browser on the Codenvy machine, remotly from my Codenvy test URL. Then all problems would be solved no? Is this possible?

Meteor Performance Issue

So I have a Meteor application that is working fine on my local machine, but when I deploy to production is has terrible delays resulting in terrible performance.
Currently it talks to two services - a data processing service and mongodb. As well as the client of course.
I'm using Meteor 7.1.2, so I know it's using capped collections and op-log tailing.
I've optimized my code in every way possible but its still slow in the following ways:
Slow to load
Intermittent (bad) delays when sending requests to the data processing server.
Any suggestions would be VERY appreciated , as i've just about had it with Meteor and thinking about switching to bare-bones express and building on that.
Thanks!
Can you please try to use Kadira?
It will show you what's really happening.
Disclaimer: I maintain Kadira.

node.js manage communication with the DB2 database

how can i manage communication with the database in node.js?
is there any module that can i use??
i need to get adn store data from DB2 on IBM i.
At the moment i'm using Zend Framework but i want replace my php function to get store from database, to use javascript in server side with node.js
Is this a good idea? can someone give me advice if this way is efficent in terms of speed of access to the database??
i see a list of module as: MongoDB, CouchDB and Redis but DB2 is supported? wich i can choose?
thanks!
I think you can use node-odbc module.
Today I succeed connecting to AIX5.3 DB2 server(V8.X) from linux machine(ubuntu 10.10) using node.js
I've installed and configured below...
1) node-odbc
2) unixODBC
3) db2 runtime client
Not sure if you are still looking for a solution. Thought would reply so that it will be useful for others who hit the thread.
As ryuken has mentioned you can setup node-odbc to talk to DB2 and it works fine. You can refer to the blog post "Using IBM DB2 from node.js" on configuring node.js with DB2 using node-odbc.
Thanks
Praveen

Resources