2

I am trying to install apache thrift server . I installed spark,hadoop and yarn. I configured hive metastore and successfully started both metastore and hiveserver2: nohup hive --service metastore > /var/log/hive/metastore.log & nohup hive --service hiveserver2 > /var/log/hive/hiveserver2.log &

hiveserver2 now listens on port 10000.

when I am trying to start spark thrift server I am running : sbin/start-thriftserver.sh --hiveconf hive.server2.thrift.bind.host ycsb-vanilla-master --hiveconf hive.server2.thrift.port 10001 but am unable to connect. I've seen that most of the examples use port 10000,but the port is already taken by hiveserver2.

Running beeline connects with : !connect jdbc:hive2://localhost:10000

but unable to connect with : !connect jdbc:hive2://localhost:10001

Trying to connect with simba retrieves errornum=10061, What am I missing ?

Thanks :)

DarkSpark
  • 123
  • 3
  • 11

2 Answers2

3

You can simply make spark-thrift server run on another port by:

sbin/start-thriftserver.sh --hiveconf hive.server2.thrift.port 8088 
Paul Roub
  • 36,322
  • 27
  • 84
  • 93
Kumar Vaibhav
  • 2,632
  • 8
  • 32
  • 54
1

Did you try copying the hive-site.xml from hive conf directory to spark conf directory with changed port for thrift? After conpying this, you will need to run sbin/start-thriftserver.sh without any params.

Chitral Verma
  • 2,695
  • 1
  • 17
  • 29