You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "张洪胤 (Jira)" <ji...@apache.org> on 2021/09/17 09:51:00 UTC

[jira] [Assigned] (IOTDB-1579) JDBC connection failed: enable rpcThriftCompressionEnable

     [ https://issues.apache.org/jira/browse/IOTDB-1579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

张洪胤 reassigned IOTDB-1579:
--------------------------

      Assignee: 张洪胤
    Resolution: Fixed

This problem is caused by the setting of iotdb-engine.properties.

This problem will be solved if  rpc_thrift_compression_enable is set with value of true

> JDBC connection failed: enable rpcThriftCompressionEnable
> ---------------------------------------------------------
>
>                 Key: IOTDB-1579
>                 URL: https://issues.apache.org/jira/browse/IOTDB-1579
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: Client/JDBC
>            Reporter: 张洪胤
>            Assignee: 张洪胤
>            Priority: Major
>              Labels: easy-fix
>
> Firstly, I set org.apache.iotdb.jdbc.Config.rpcThriftCompressionEnable = true; in code, then I use DriverManager.getConnection() to connect, but it failed.
> Some logs:
> org.apache.iotdb.rpc.IoTDBConnectionException: org.apache.thrift.transport.TTransportException: Socket is closed by peer.
> java.sql.SQLException: Can not establish connection with jdbc:iotdb://127.0.0.1:6667/ : Socket is closed by peer..
> cn.edu.tsinghua.iotdb.benchmark.tsdb.TsdbException: cn.edu.tsinghua.iotdb.benchmark.tsdb.TsdbException: java.sql.SQLException: Can not establish connection with jdbc:iotdb://127.0.0.1:6667/ : Socket is closed by peer..



--
This message was sent by Atlassian Jira
(v8.3.4#803005)