Kirill Butin created ZEPPELIN-2664: -------------------------------------- Summary: JDBC driver throws "Attempted read on closed stream." Key: ZEPPELIN-2664 URL: https://issues.apache.org/jira/browse/ZEPPELIN-2664 Project: Zeppelin Issue Type: Bug Affects Versions: 0.8.0 Reporter: Kirill Butin
Version 0.7.2 works fine with the same JDBC driver and the same query. No exceptions. I'm using driver: ru.yandex.clickhouse:clickhouse-jdbc:0.1.24 On the 0.8.0 the functionality still works and I got the result and table is populated. But under the table I see the exception: {code} java.sql.SQLException: java.io.IOException: Attempted read on closed stream. at ru.yandex.clickhouse.response.ClickHouseResultSet.hasNext(ClickHouseResultSet.java:104) at ru.yandex.clickhouse.response.ClickHouseResultSet.next(ClickHouseResultSet.java:111) at org.apache.commons.dbcp2.DelegatingResultSet.next(DelegatingResultSet.java:191) at org.apache.commons.dbcp2.DelegatingResultSet.next(DelegatingResultSet.java:191) at org.apache.zeppelin.jdbc.JDBCInterpreter.executeSql(JDBCInterpreter.java:676) at org.apache.zeppelin.jdbc.JDBCInterpreter.interpret(JDBCInterpreter.java:778) at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:101) at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:503) at org.apache.zeppelin.scheduler.Job.run(Job.java:181) at org.apache.zeppelin.scheduler.ParallelScheduler$JobRunner.run(ParallelScheduler.java:162) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: Attempted read on closed stream. at org.apache.http.conn.EofSensorInputStream.isReadAllowed(EofSensorInputStream.java:109) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:118) at ru.yandex.clickhouse.response.ClickHouseLZ4Stream.readNextBlock(ClickHouseLZ4Stream.java:82) at ru.yandex.clickhouse.response.ClickHouseLZ4Stream.checkNext(ClickHouseLZ4Stream.java:74) at ru.yandex.clickhouse.response.ClickHouseLZ4Stream.read(ClickHouseLZ4Stream.java:50) at ru.yandex.clickhouse.response.StreamSplitter.readFromStream(StreamSplitter.java:85) at ru.yandex.clickhouse.response.StreamSplitter.next(StreamSplitter.java:47) at ru.yandex.clickhouse.response.ClickHouseResultSet.hasNext(ClickHouseResultSet.java:98) ... 16 more {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)