You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using clickhouse docker on local machine. just testing out things, nothing else is connected with clickhouse. I have even tried starting and restarting the clickhouse, but didn’t work.
client
.write(node)
.format(ClickHouseFormat.RowBinaryWithNamesAndTypes)
.query("insert into user (name,age) values ('Deepa Kumari',25)")
.executeAndWait()
.records()
.forEach(
r -> {
System.out.println("This is the record-");
});
The content you are editing has changed. Please copy your edits and refresh the page.
Good day, @ats1999 !
I think, I know where problem is.
You are using ClickHousePipedOutputStream that internally has queue of buffers and current buffer. The last one is not submitted to the queue until full or stream is closed. The exception is a bit confusing but stack trace tell that procedure that sends bytes to server have not got anything from provided input stream for 30seconds.
Please, add stream.close(); (to close output buffer where you are writing data) before f.get(). It will push buffer to the queue and further to server. Please let me know if you have questions.
I am using clickhouse docker on local machine. just testing out things, nothing else is connected with clickhouse. I have even tried starting and restarting the clickhouse, but didn’t work.
Java Code
Error
Although, below code is working fine.
Tasks
The text was updated successfully, but these errors were encountered: