[
https://issues.apache.org/jira/browse/CALCITE-4870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17511020#comment-17511020
]
Francis Chuang commented on CALCITE-4870:
-----------------------------------------
Is this still an issue? From the information you have provided, it looks like
there's an issue with the database server or the connection between the
database server and the client.
> ping phoenix encounter EOF issue
> --------------------------------
>
> Key: CALCITE-4870
> URL: https://issues.apache.org/jira/browse/CALCITE-4870
> Project: Calcite
> Issue Type: Bug
> Components: avatica-go
> Reporter: yspursy
> Assignee: Francis Chuang
> Priority: Major
>
> {code:java}
> {code}
> *my code is:*
> {code:java}
> package main
> import (
> "database/sql"
> "fmt"
> _ "github.com/apache/calcite-avatica-go/v5"
> )
> func main() {
> db, err := sql.Open("avatica", "http://10.120.100.134:2181/bi")
> fmt.Println("Come in please")
> if err != nil {
> fmt.Printf("The error is %v\n", err)
> }
> if err := db.Ping(); err != nil{
> fmt.Printf("opon database fail, %+v", err)
> return
> }
> fmt.Println("connnect success")
> }
> {code}
>
> i encounter the issue:
> {code:java}
> // code placeholder
> opon database fail, error executing http request:
> github.com/apache/calcite-avatica-go/v5.(*httpClient).post
>
> /Users/yangyang/.gvm/pkgsets/system/global/pkg/mod/github.com/apache/calcite-avatica-go/[email protected]/http_client.go:131
> - Post "http://10.120.100.134:2181/bi": EOF[bi@ip-10-120-12-23 ~]$ telnet
> 10.120.100.134 2181
> {code}
>
> I have test phoenix port is ok
> {code:java}
> // code placeholder
> telnet 10.120.100.134 2181
> ----
> Trying 10.120.100.134...
> Connected to 10.120.100.134.
> Escape character is '^]'.{code}
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)