Closed irislips closed 3 years ago
I believe Pentaho UI can load jar, but can't load transitive dependencies. Try with holy-jar produced by this command, as per README.md:
mvn package assembly:single -DskipTests=true
Для установки соединения нужны файлы:
can this work?
Да работает. В гите создал репозитарий с небольшой интсрукцией. https://github.com/biwed/PDI-clickhouse Это что бы самому не забыть и не качать драйвера постоянно.
Did that solve?how do you do it?
Hello.
I put lz4-java-1.4.jar in the ./lib folder , it worked.
Fixed on develop
branch and will be merged into master
after 0.2.5 release this weekend.
2021/08/09 18:50:36 - api_log ip.0 - ERROR (version 5.3.0.0-213, build 1 from 2015-02-02_12-17-08 by buildguy) : Unexpected error 2021/08/09 18:50:36 - api_log ip.0 - ERROR (version 5.3.0.0-213, build 1 from 2015-02-02_12-17-08 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException: 2021/08/09 18:50:36 - api_log ip.0 - Couldn't get row from result set 2021/08/09 18:50:36 - api_log ip.0 - java.text.ParseException: Unparseable date: "2021-08-08" 2021/08/09 18:50:36 - api_log ip.0 - 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.database.Database.getRow(Database.java:2357) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.database.Database.getRow(Database.java:2328) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.database.Database.getRow(Database.java:2306) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.trans.steps.tableinput.TableInput.doQuery(TableInput.java:247) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:138) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2021/08/09 18:50:36 - api_log ip.0 - at java.lang.Thread.run(Thread.java:748) 2021/08/09 18:50:36 - api_log ip.0 - Caused by: java.lang.RuntimeException: java.text.ParseException: Unparseable date: "2021-08-08" 2021/08/09 18:50:36 - api_log ip.0 - at ru.yandex.clickhouse.response.ClickHouseResultSet.toTimestamp(ClickHouseResultSet.java:548) 2021/08/09 18:50:36 - api_log ip.0 - at ru.yandex.clickhouse.response.ClickHouseResultSet.getTimestampAsLong(ClickHouseResultSet.java:382) 2021/08/09 18:50:36 - api_log ip.0 - at ru.yandex.clickhouse.response.ClickHouseResultSet.getTimestamp(ClickHouseResultSet.java:387) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.row.value.ValueMetaBase.getValueFromResultSet(ValueMetaBase.java:4670) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.database.BaseDatabaseMeta.getValueFromResultSet(BaseDatabaseMeta.java:2086) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.database.DatabaseMeta.getValueFromResultSet(DatabaseMeta.java:2852) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.database.Database.getRow(Database.java:2349) 2021/08/09 18:50:36 - api_log ip.0 - ... 6 more 2021/08/09 18:50:36 - api_log ip.0 - Caused by: java.text.ParseException: Unparseable date: "2021-08-08" 2021/08/09 18:50:36 - api_log ip.0 - at java.text.DateFormat.parse(DateFormat.java:366) 2021/08/09 18:50:36 - api_log ip.0 - at ru.yandex.clickhouse.response.ClickHouseResultSet.toTimestamp(ClickHouseResultSet.java:546) 2021/08/09 18:50:36 - api_log ip.0 - ... 12 more
Thanku @biwed it Worked for me , u made my day
Thanku @biwed it Worked for me , and u made my day
If you're seeking for a jar with the driver and all dependencies included, please use shaded jar, for example: https://repo1.maven.org/maven2/ru/yandex/clickhouse/clickhouse-jdbc/0.3.1-patch/clickhouse-jdbc-0.3.1-patch-shaded.jar. Alternatively, you can download the latest one from here.
@zhicwu it is working fine with date fields also Thanku for This New Version ,
Pls lookinto this also if possible when i was connect some Big clickhouse tables in Spoon Table_out_put Step it's Hanging
, how can i achieve this
when i was connect some Big clickhouse tables in Spoon Table_out_put Step it's Hanging
How big the table is? How many columns and rows? I think you can check system.query_log
on ClickHouse to understand what's the query from PDI causing the problem.
@zhicwu it is working fine with date fields also Thanku for This New Version ,
Pls lookinto this also if possible when i was connect some Big clickhouse tables in Spoon Table_out_put Step it's Hanging
, how can i achieve this
I have same problem and stuck with it. If you solved the problem, could you explain how you do it )).
感谢你@biwed它对我有用,你让我开心
如果您正在寻找包含驱动程序和所有依赖项的 jar,请使用阴影 jar,例如:https ://repo1.maven.org/maven2/ru/yandex/clickhouse/clickhouse-jdbc/0.3.1-补丁/clickhouse-jdbc-0.3.1-patch-shaded.jar。或者,您可以从此处下载最新版本。
This really works!
2021/08/09 18:50:36 - api_log ip.0 - ERROR (version 5.3.0.0-213, build 1 from 2015-02-02_12-17-08 by buildguy) : Unexpected error 2021/08/09 18:50:36 - api_log ip.0 - ERROR (version 5.3.0.0-213, build 1 from 2015-02-02_12-17-08 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException: 2021/08/09 18:50:36 - api_log ip.0 - Couldn't get row from result set 2021/08/09 18:50:36 - api_log ip.0 - java.text.ParseException: Unparseable date: "2021-08-08" 2021/08/09 18:50:36 - api_log ip.0 - 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.database.Database.getRow(Database.java:2357) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.database.Database.getRow(Database.java:2328) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.database.Database.getRow(Database.java:2306) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.trans.steps.tableinput.TableInput.doQuery(TableInput.java:247) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:138) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2021/08/09 18:50:36 - api_log ip.0 - at java.lang.Thread.run(Thread.java:748) 2021/08/09 18:50:36 - api_log ip.0 - Caused by: java.lang.RuntimeException: java.text.ParseException: Unparseable date: "2021-08-08" 2021/08/09 18:50:36 - api_log ip.0 - at ru.yandex.clickhouse.response.ClickHouseResultSet.toTimestamp(ClickHouseResultSet.java:548) 2021/08/09 18:50:36 - api_log ip.0 - at ru.yandex.clickhouse.response.ClickHouseResultSet.getTimestampAsLong(ClickHouseResultSet.java:382) 2021/08/09 18:50:36 - api_log ip.0 - at ru.yandex.clickhouse.response.ClickHouseResultSet.getTimestamp(ClickHouseResultSet.java:387) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.row.value.ValueMetaBase.getValueFromResultSet(ValueMetaBase.java:4670) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.database.BaseDatabaseMeta.getValueFromResultSet(BaseDatabaseMeta.java:2086) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.database.DatabaseMeta.getValueFromResultSet(DatabaseMeta.java:2852) 2021/08/09 18:50:36 - api_log ip.0 - at org.pentaho.di.core.database.Database.getRow(Database.java:2349) 2021/08/09 18:50:36 - api_log ip.0 - ... 6 more 2021/08/09 18:50:36 - api_log ip.0 - Caused by: java.text.ParseException: Unparseable date: "2021-08-08" 2021/08/09 18:50:36 - api_log ip.0 - at java.text.DateFormat.parse(DateFormat.java:366) 2021/08/09 18:50:36 - api_log ip.0 - at ru.yandex.clickhouse.response.ClickHouseResultSet.toTimestamp(ClickHouseResultSet.java:546) 2021/08/09 18:50:36 - api_log ip.0 - ... 12 more
@qinlz-1 hi, how did you solve this problem?)
Error connecting to database [ClickHouse] :org.pentaho.di.core.exception.KettleDatabaseException: Error occurred while trying to connect to the database
Error connecting to database: (using class ru.yandex.clickhouse.ClickHouseDriver) Could not initialize class ru.yandex.clickhouse.response.ClickHouseLZ4Stream
org.pentaho.di.core.exception.KettleDatabaseException: Error occurred while trying to connect to the database
Error connecting to database: (using class ru.yandex.clickhouse.ClickHouseDriver) Could not initialize class ru.yandex.clickhouse.response.ClickHouseLZ4Stream
Caused by: org.pentaho.di.core.exception.KettleDatabaseException: Error connecting to database: (using class ru.yandex.clickhouse.ClickHouseDriver) Could not initialize class ru.yandex.clickhouse.response.ClickHouseLZ4Stream
Caused by: java.lang.NoClassDefFoundError: Could not initialize class ru.yandex.clickhouse.response.ClickHouseLZ4Stream at ru.yandex.clickhouse.ClickHouseStatementImpl.checkForErrorAndThrow(ClickHouseStatementImpl.java:728) at ru.yandex.clickhouse.ClickHouseStatementImpl.getInputStream(ClickHouseStatementImpl.java:551) at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:114) at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:97) at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:92) at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:88) at ru.yandex.clickhouse.ClickHouseConnectionImpl.initTimeZone(ClickHouseConnectionImpl.java:86) at ru.yandex.clickhouse.ClickHouseConnectionImpl.(ClickHouseConnectionImpl.java:75)
at ru.yandex.clickhouse.ClickHouseDriver.connect(ClickHouseDriver.java:58)
at ru.yandex.clickhouse.ClickHouseDriver.connect(ClickHouseDriver.java:50)
at ru.yandex.clickhouse.ClickHouseDriver.connect(ClickHouseDriver.java:32)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:208)
at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:567)
... 57 more
Custom URL :jdbc:clickhouse://IP:9000/default Custom Driver Class:ru.yandex.clickhouse.ClickHouseDriver