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

2021-09-17 Thread Jira


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

张洪胤 commented on IOTDB-1579:


Yes, I try to set rpc_thrift_compression_enable=true in 
iotdb-engine.properties, and this surely solve this problem, thanks for your 
solution!

> 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: 张洪胤
>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)


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

2021-09-17 Thread xieqijun (Jira)


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

xieqijun commented on IOTDB-1579:
-

Hi, This should not be a bug. The reason may be that the server does not set 
rpcThriftCompressionEnabl to true, and the protocols on the server and the 
client are inconsistent, so throw a error.
And after testing, if the server and client set rpcThriftCompressionEnabl to 
true at the same time, the connection can be established normally.


> 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: 张洪胤
>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)