Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Can we not have HS2 and Spark Thrift Server (STS) running on the same node?

Solved Go to solution

Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?

Expert Contributor

@Smart Solutions

If you use http mode, please specify hive.server2.thrift.http.port to a different port.

Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?

Hi @Smart Solutions

I am lil late to the party, but I was able to run both HS2 and STS on the same machine on a kerberized cluster using:

HS2 => hive.server2.thrift.http.port: 10001, transportmode: http,

STS => hive.server2.thrift.port:10015, hive.server2.transport.mode: binary

STS does not start and throws the bind exception when I use:

STS => hive.server2.thrift.port:10015, hive.server2.transport.mode: http

So changing transport mode for STS to binary works for me.

Tested on HDP 2.4.2.29-4

Regards

Rakesh

Highlighted

Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?

And guessing from what is happening here I thought I should try starting up the thrift server in http mode on an http port.

but http port for thrift server is not defined anywhere by Ambari, so created an custom propery for thrift server: 'hive.server2.thrift.http.port: 10013'

and defined 'hive.server2.transport.mode: http'

And it started thrift server on a different port (10013) in http mode!

Regards

Rakesh

Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?

New Contributor

@Rakesh Gupta Thank you very much. Smart debug sir. Saved me my day today.

Don't have an account?
Coming from Hortonworks? Activate your account here