Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

HBase Rest API Connection Refused

avatar
Master Guru

I have started hbase rest api using

hbase rest start -p 20050 --infoport 20051

....

2016-10-13 19:53:43,979 INFO  [main] http.HttpServer: Jetty bound to port 20051
2016-10-13 19:53:43,979 INFO  [main] mortbay.log: jetty-6.1.26.hwx
2016-10-13 19:53:44,260 INFO  [main] mortbay.log: Started SelectChannelConnector@0.0.0.0:20051
2016-10-13 19:53:44,260 INFO  [main] mortbay.log: jetty-6.1.26.hwx
2016-10-13 19:53:44,261 INFO  [main] mortbay.log: Started SelectChannelConnector@0.0.0.0:20050
2016-10-13 19:55:38,346 INFO  [135221990@qtp-1263634860-3] logs: Aliases are enabled

I am able to access the infoport webui on 20051. When I issue a curl

HW12334:~ smanjee$ curl -v -X GET -H "Accept: text/xml" "http://xxxxx.xxxx.hortonworks.com:20550/"
*   Trying xxx.xx.xxx.220...
* connect to xxx.xx.xxx.220 port 20550 failed: Connection refused
* Failed to connect to xxxxx.xxxx.hortonworks.com port 20550: Connection refused
* Closing connection 0
curl: (7) Failed to connect to xxxx.xxxx.hortonworks.com port 20550: Connection refused

Any ideas? This is on non kerberized cluster. HDP 2.5

1 ACCEPTED SOLUTION

avatar
Super Guru
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
3 REPLIES 3

avatar
Super Guru
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Master Guru

@Josh Elser wow. my bad

avatar

There is a type , you need to make call at 20050 port instead of 20550.

curl -v -X GET -H "Accept: text/xml""http://xxxxx.xxxx.hortonworks.com:20050/"