-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why is hdfs throws unexpected EOF error using golang? #81
Comments
Hi,
That's the default port for the web UI. You probably want 8020: http://blog.cloudera.com/blog/2009/08/hadoop-default-ports-quick-reference/
|
Hi Colinmark, goroutine 1 [running]: I can contact hdfs using github.com/vladimirvivien/gowfs |
github.com/vladimirvivien/gowfs uses WebHDFS, so that makes sense. I'd guess either you're using a nonstandard port (I've seen 9000 used elsewhere) or you have a firewall blocking access. That panic doesn't look great, though, so I'll leave this open for now. |
Hm, can you post more of the traceback, actually? It looks like you're calling |
I made some changes to this piece of code: import ( func main() { and its output:
when I use 50070 as its port to open:
I added one line in namenode.go
and the Println outputs "1213486160 &{{0xc4200740e0}}" So I think 50070 is ok, but the response decode failed. And I've tried 8020 and 9000, but both these 2 ports can not be connected to generate a valid client as you can see. |
Thank you very much. I've found the reason for the problem. I should use 127.0.0.1 as the address to open because HDFS opens its IPC port on 127.0.0.1 instead of 0.0.0.0 |
Great - I'm going to close this, but feel free to reopen if you find any new issues. |
err is unexpected EOF And I found that the error occurs in
I'm using hadoop 2.7.3
The text was updated successfully, but these errors were encountered: