datetime error while transferring from mysql to postgres using mysql2pgsql - linux

While transferring data from MySQL to Postgres using mysql2pgsql I am getting the following error
Exception: unknown datetime(6)
I am using ubuntu 14.04, Mysql5.6 and Postgres9.3

What version of mysql2pgsql are you using?
Does your version include the fix for this issue?
Is the traceback (found in logs) similar?

Related

ArangoDB: Unable to initialize RocksDB engine: IO error

I'm not able to run ArangoDB due to below error.
FATAL [fe3df] {startup} unable to initialize RocksDB engine: IO error: No such file or directoryNewRandomAccessFile failed to Create/Open: C:\Users\Waseeq\Downloads\ArangoDB3-3.8.1_win64\ArangoDB3-3.8.1_win64\var\lib\arangodb3\engine-rocksdb/000062.ldb: The system cannot find the file specified.\r\n; Maybe your filesystem doesn't provide required features? (Cifs? NFS?)
ArangoDB version: 3.8.1
Can someone help me on this?
Run the installer once you download Arango, don't just extract the file and run it out of there.

Cannot connect PrestoDB to Apache Superset

I am trying to connect prestodb which is running on localhost:8080 to apache presto(installation by scratch not the docker one).
I have installed the Pyhive connector as the indicate in the documentation, also I have tried:
hive://hive#localhost:8080/mysql
presto://localhost:8080/
presto://localhost:8080/mysql
presto://localhost:8080/mysql/test
hive://hive#localhost:8080/mysql/test
where mysql is the catalog and the test is the name of the db, and nothing works :/
Any ideas ?
Thank you
Actually I was missing the python package "requests" that is needed from PyHive.. So a pip3 install requests solved the issue!

"Version string empty" error in gprestore in greenplum

I am trying to restore a database in greenplum with gprestore using following command:
gprestore --backup-dir /data/greenplum/gpbackups/ --timestamp 20200511110837 --redirect-db restoredDB
But I am facing following error:
restore status: Failure
restore error: Version string empty
Can anyone help me regarding what can be the possible cause of this issue ?
Version info:
gpbackup version 1.17.0+dev.45.g697096e
PostgreSQL 9.4.24 (Greenplum Database 6.3.0 build commit:77aa1b6e4486adbaede9f5f2864a04fc3a512e93)
Could you provide more detail:
Version of Greenplum
Version of gpbackup/gprestore utilities.
This will help us troubleshoot.
Thanks

issue exporting path to spark home on ubuntu

I’m installing spark, and pyspark on my ubuntu server. I’m trying to set my SPARK_HOME path on ubuntu server and I’m getting the error below. Does anyone see what the issue might be?
code:
export SPARK_HOME='/home/username/spark-2.4.3-bin-hadoop2.7'
export PATH$SPARK_HOME:$PATH
output:
-bash: export: `PATH/home/username/spark-2.4.3-bin-hadoop2.7:/home/username/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin': not a valid identifier
export PATH=$SPARK_HOME:$PATH
Missing equalTo..

You database files were created by PostgreSQL 9.0- could not find executables for this version

I attempted to update the version of Postgres-server on an OpenSuse server. There were a few issues and I now want to revert back to using the version of postgres-server that was installed before(9.03).
I've removed version 9.4 and I've tried starting the postgresql server but I'm getting the error:
Your database files were created by PostgreSQL version 9.0.
Could not find executables for this version.
Please install the PostgreSQL server package for version 9.0.
When I run:
rpm -qa | grep postgresql
it shows:
postgresql-docs-9.0.3-1.6.1.noarch
postgresql-server-9.0.3-1.6.1.x86_64
postgresql-contrib-9.0.3-1.6.1.x86_64
postgresql-9.0.3-1.6.1.x86_64
postgresql-devel-9.0.3-1.6.1.x86_64
So it looks like version 9.03 is already installed.
I'm not sure what to do now to get the server back to how it was and I'm panicking a bit. Can anyone suggest anything?
EDIT**
Here some more info after some useful info from Ronaldhino.
I discovered my pg_ctl file in /user/bin/pg_ctl and /data appears to be the previous data directory (I deduced this as it contain pg_hbs.conf and postgresql.conf).
As a result I've run this command as user postgres:
/usr/bin/pg_ctl start -D /data/ -l /data/pg_log/new_log.txt
I did get a message initial saying:
server starting
It appears that the server is actually running. However, the psql binary file now appears to be missing so I can't psql into the database service.
Thanks
I seems that system can not recognize where's your postgresql 9.0 location is.
You should find where's the postgresql 9.0's binary file and start Server directly.
Run command for finding where's postgresql 9.0 location
which postgres
For example:
/usr/local/pgsql/bin/
Start server
sudo /usr/local/pgsql/bin/pg_ctl start -D <<your DB dir>> -l /var/log/postgresl.log
Good luck!

Resources