Liquibase Snapshot fails with Snowflake - snowflake-cloud-data-platform

I m pretty new to liquibase. But here is what I m doing:
liquibase --username=XXX --password='XXX' --driver=net.snowflake.client.jdbc.SnowflakeDriver --url='jdbc:snowflake://lala.east-us-2lala.azure.snowflakecomputing.com?db=dbname&schema=schemaname&warehouse=warehousename' --snapshotFormat=json snapshot --output-file=snapshot.json
And here are the drivers and their versions:
Liquibase Version: 4.4.3
Liquibase Community 4.4.3 by Datical
liquibase-snowflake-4.4.3.jar
snowflake-jdbc-3.13.7.jar
And after running for a while it just keeps on failing with:
Unexpected error running Liquibase: Expected single row from liquibase.statement.core.GetViewDefinitionStatement#e04ccf8 but got 0
Can anyone help with some guidance regarding the probable causes? If i run it with debug level log it does show that its fetching few tables and procedures but fails somewhere in between.

Related

Flink sql client throws ERROR when executing sql statment

env:
intel chip macbook air 2017 with macOS Monterey 12.5
flink 1.15
mysql 5.7
I'm trying to set up a demo to sync one table to another table in mysql. However, i encountered some issue when executing sql statement in FLINK SQL CLIENT.
Let's say there's a table named product in mysql. Then I start flink and sql client, "CREATE TABLE" and execute "select * from products". Terminal returned ERROR message which says [ERROR] Could not execute SQL statement. Reason:
java.lang.ClassNotFoundException: io.debezium.relational.history.AbstractSchemaHistory
I downloaded debezium-core jar of most recent version and put it under lib path. Then it raised another error
[ERROR] Could not execute SQL statement. Reason:
java.lang.ClassNotFoundException: io.debezium.relational.history.DatabaseHistory
I checked version 2.0.0 alpha and 2.0.0 beta, DatabaseHistory only appear in version alpha and AbstractSchemaHistory only appear in version beta.
If I put those two jar files into the lib path. I get [ERROR] Could not execute SQL statement. Reason:
java.lang.NoSuchFieldError: TOPIC_PREFIX
enter image description here
Is there anyone who could give me some advice, thanks in advance.

How to configure pgadmin4 (PostgreSQL)

When I finished installation postgresql-10.5 and ran pgadmin4 (that came installed with postgresql) I get a configuration error that says:
An error occurred initializing the application server:
Failed to launch application server, server thread existing
It then asks me to input a python path and an application path.
Can anybody help me and and advise what to do to run pgadmin4. I tried find problem solution, but nothing helped me(

Liquibase diff gives constraint error

I get this error when I try with both command line and Maven invocations:
Diff Results:
Unexpected error running Liquibase: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Unknown constraint type: 3
This is using a SQL Server DB. Created both the reference and target using liquibase:update.
Properties:
driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
url=jdbc:sqlserver://localhost:11433;databaseName=DB
username=user
password=pass
referenceUrl=jdbc:sqlserver://localhost:11433;databaseName=DBRef
referenceUsername=user
referencePassword=pass
We use a combination of Liquibase/MS-SQL database and had a similar issue when we recently upgraded our driver to Microsoft's latest release (6.4.0.jre8).
As #SteveDonie says in his comment, the issue is with "oldish" version of liquibase and "newish" version of MS-SQL driver. Details behind the reason for this problem can be found in this liquibase JIRA case:
https://liquibase.jira.com/browse/CORE-3141
To solve this, we tried upgrading the liquibase version to the latest as on date (3.6.1) and it works!! You may also try to downgrade the version of your MS-SQL driver, but I would say that isn't a good option - it's better to upgrade than downgrade unless you've some pressing needs to that.

How can I upgrade PostgreSQL 9.3.10 to PostgreSQL 9.4.5 in Ubuntu?

Hello and excuse my english.
I'm trying to pull a remote database with heroku, but it gives me this error:
pg_dump: server version: 9.4.5; pg_dump version: 9.3.10
pg_dump: aborting because of server version mismatch
pg_restore: [archiver] input file is too short (read 0, expected 5)
I'm guessing I just need to upgrade my current version 9.3.10 to server version 9.4.5, but is not clear to me how to do it.
PD: I don't mind losing the data of my current databases.
The only solution I found was to completely delete postgresql 9.3 and then installed postgresql 9.4

How to upgrade cakephp from 1.3 to 2.1?

I'm a newbie in cakephp, I'm trying to upgrade cakephp to the latest version.
I install the fresh cakephp 1.3 on my computer and the upgrade it to cakephp 2.1.
I use shell to upgrade, but after I run 'upgrade all' command, I saw two error:
Warning Error: chmod(): Operation not permitted in [/var/www/cakephp-1.3/lib/Cake/Utility/Folder.php, line 639]
Warning Error: touch(): Utime failed: Operation not permitted in [/var/www/cakephp-1.3/lib/Cake/Utility/Folder.php, line 640]
I think it has upgraded complete. Because I see the message from terminal like this:
Done updating /var/www/cakephp-1.3/app/Console/cake.php
Done updating /var/www/cakephp-1.3/app/Console/Command/AppShell.php
Running components
Running exceptions
Then I refresh my app and I got some errors:
http://flic.kr/p/bwUpwY
Then I delete 'cake' directory, and the error message has changed:
http://flic.kr/p/bKP7Te
So now I don't know what to do next, because I did many ways but still not make it work.
So anybody please tell me what I did wrong and how can I upgrade cakephp successful.
Thanks in advance.
This looks like you have permissions issues on some of the directories that the CakePHP migration script expects to be writable.
This could lead to the migration failing on some parts and leaving a partially broken install after it completes.

Resources