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

yspursy updated CALCITE-4870:
-----------------------------
    Description: 
{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}
 

 

 

 

  was:
{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}
 

 

 

 


> 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}
>  
>  
>  
>  



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

Reply via email to