Closed wjessop closed 9 years ago
A simple program based on the example in the README file fails. The error:
panic: EOF goroutine 1 [running]: main.main() /Users/will/www/go/src/github.com/basecamp/decima/decima.go:19 +0x128 goroutine 17 [syscall, locked to thread]: runtime.goexit() /usr/local/Cellar/go/1.4.2/libexec/src/runtime/asm_amd64.s:2232 +0x1 exit status 2
The code:
package main import ( "github.com/koblas/impalathing" ) func main() { host := "bigdata-01" port := 25000 con, err := impalathing.Connect(host, port, impalathing.DefaultOptions) if err != nil { panic(err) } query, err := con.Query("show tables") if err != nil { panic(err) } for query.Next() { var ( name string ) query.Scan(&name) } }
Line 19 here is the panic after this code:
query, err := con.Query("show tables")
It should connect to the Thrift port == 21000
Port 25000 is the HTML UI - which causes protocal issues with thrift.
Ah whoops, thanks!
A simple program based on the example in the README file fails. The error:
The code:
Line 19 here is the panic after this code: