Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4870

ping phoenix encounter EOF issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • avatica-go
    • None

    Description

       

      my code is:

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

       

      i encounter the issue: 

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

       

       I have test phoenix port is ok

      // code placeholder
      telnet 10.120.100.134 2181
      
      ---- 
      Trying 10.120.100.134...
      Connected to 10.120.100.134.
      Escape character is '^]'.

       

       

      Attachments

        Activity

          People

            francischuang Francis Chuang
            yspursy yspursy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: