You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "yspursy (Jira)" <ji...@apache.org> on 2021/10/31 10:27:00 UTC

[jira] [Created] (CALCITE-4870) ping phoenix encounter EOF issue

yspursy created CALCITE-4870:
--------------------------------

             Summary: 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


{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/v5@v5.0.0/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}
 

 

 

 



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