Support Questions

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

configuring Thrift Server on default port

avatar

I am trying to get Thrift Server up and running as per steps mentioned here : https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_installing_manually_book/content/ref-2a6...

but it throws error when I start thrift server, Port in use: 0.0.0.0:9095 . Can someone help in configuring thrift server on different port and make it accessible outside the server I have HDP installed on.

1 ACCEPTED SOLUTION

avatar
Super Guru

Use the -p option:

hbase thrift -p 12345

View solution in original post

9 REPLIES 9

avatar
Super Guru

Use the -p option:

hbase thrift -p 12345

avatar

Thanks josh. whats the default port that HDP starts HBase Thrift Server on ? is 9090 configured to Nifi ?

avatar
Super Guru

Yes, the default port is 9090 (the --help option would show you this too). I'm not sure what ports NiFi uses.

avatar

Josh,

I tried configuring on different port using this command:

hbase-daemon.sh start thrift --infoport 9065 -p 9060

But when I try browsing on that port locally, I do not see that working. Here is what in output when I run above command

4252-hbase-thrift-log1.png

avatar
Super Guru

What do you mean by "But when I try browsing on that port locally"? This isn't a service you can access with your web browser. It requires a Thrift client speaking a specific schema to interact with.

avatar
Guru

You can either hbase.thrift.info.port and hbase.regionserver.thrift.port in your hbase-site.xml, or start the thrift server by passing -p <port> and --infoport <info_port> as command line arguments.

Note that port and info port are different ports. Port is used for RPCs while the info port is for the web UI.

avatar

I cannot verify the port from browser using this url : http://127.0.0.1:9065/thrift.jsp as I configured my infoport on 9065

avatar
Rising Star

I'll be updating the Manual Install Guide with this information and will post a link to the new content when I've completed it. Thanks very much for this feedback.

avatar
Rising Star

The Manual Install Guide (versions 2.2.9, 2.3.0, 2.3.2, 2.3.4, 2.3.4.7, 2.4.0, and 2.4.2) have been updated with this information. Thank you very much for your comments and assistance.

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_installing_manually_book/content/ref-2a6e...