Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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

You made a typo: 20050 versus 20550

View solution in original post

3 REPLIES 3

avatar
Super Guru

You made a typo: 20050 versus 20550

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