zlzforever / clickhousemigrator Goto Github PK
View Code? Open in Web Editor NEWHelp to migrate data to ClickHouse, create database and table auto.
License: MIT License
Help to migrate data to ClickHouse, create database and table auto.
License: MIT License
报错如下:
WARN: DROP TABLE IF EXISTS deer_him_sys_v5.equip_center;
Progress: 0 rows (0 rows/s.)ERROR: System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.Int32'.
at System.Linq.Enumerable.CastIterator[TResult](IEnumerable source)+MoveNext()
at System.Collections.Generic.LargeArrayBuilder1.AddRange(IEnumerable
1 items)
at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable
1 source)
at ClickHouse.Ado.Impl.ColumnTypes.SimpleColumnType`1.ValuesFromConst(IEnumerable objects)
at ClickHouse.Ado.ClickHouseCommand.Execute(Boolean readResponse, ClickHouseConnection connection)
at ClickHouse.Ado.ClickHouseCommand.ExecuteNonQuery()
at ClickHouseMigrator.Migrator.<>c__DisplayClass14_0.b__2() in /Users/lewis/github/ClickHouseMigrator/src/ClickHouseMigrator/Migrator.cs:line 166
Elapsed 0 sec. Processed 145 rows (145 rows/s.)
Hi.
I wanted to know if clickhousrake could achieve real time synchronization of data,For example, when my SQL Server data is being updated or dalETE, can the corresponding data of Clickhouse be updated? In addition, is there any guarantee of breakpoint continuation?
用--targetdb指定数据库名称时,使用大写如--targetdb ABC或是--targetdb "ABC"时,在clickhouse会创建名称了小写的abc数据库,请问怎样才能指定大写名称
I can't get this to work, it claims its not written yet.....
I installed it following your instructions, would be great if you could advise, if it is supposed to work.
thanks
Paul
-- mysql表
CREATE TABLE clickhousetest(
id
bigint(20) unsigned NOT NULL AUTO_INCREMENT,
verificatTaskUuid
varchar(50) NOT NULL COMMENT 'uuid',
checkDuration
int(11) DEFAULT NULL,
PRIMARY KEY (id
)
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT charset=utf8mb4;
使用命令
chm --src mysql --src-host 192.168.1.2 --src-port 3306 --src-user root --src-password 12d@s --src-database test --src-table clickhousetest --drop-table true --host 192.168.1.1 --port 9000 --user default --password 22sWd --database test
出错信息:
WARN: DROP TABLE IF EXISTS test.clickhousetest;
Progress: 7 rows (1 rows/s.)ERROR: System.InvalidCastException: Unable to cast object of type 'System.UInt64' to type 'System.Int64'.
at System.Linq.Enumerable.CastIterator[TResult](IEnumerable source)+MoveNext()
at System.Collections.Generic.LargeArrayBuilder1.AddRange(IEnumerable
1 items)
at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable
1 source)
at ClickHouse.Ado.Impl.ColumnTypes.SimpleColumnType`1.ValuesFromConst(IEnumerable objects)
at ClickHouse.Ado.ClickHouseCommand.Execute(Boolean readResponse, ClickHouseConnection connection)
at ClickHouse.Ado.ClickHouseCommand.ExecuteNonQuery()
at ClickHouseMigrator.Migrator.<>c__DisplayClass14_0.b__2() in C:\Users\Administrator\source\repos\ClickHouseMigrator-master\src\ClickHouseMigrator
Migrator.cs:line 166
Elapsed 5 sec. Processed 7 rows (1 rows/s.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.