Hive Thrift server is very useful for integrating HIVE with applications which can talk to Thrift.
Its very much used by reporting tools such as Pentaho
To Start HIVE thrift server just type
# hive --service hiveserver
It would show message like
Starting Hive Thrift Server
To check it hive server has been started successfully
Type
#netstat -nl | grep 10000
Some service must be running there.
Hive do have compatibility issues with latest version of Hadoop. So if your thirft server is not starting just check it hadoop version is supported or not.
Hi Jugnu,
ReplyDeletewhen i start the hiveserver, i get the following error:
org.apache.thrift.transport.TTransportException: Could not create ServerSocket
on address 0.0.0.0/0.0.0.0:10000 .
at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:99)
at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:80)
at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:73)
at org.apache.hadoop.hive.service.HiveServer.main(HiveServer.java:384)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:186)
it doesn't concern the port number...
any idea please?
Thanks.
it's not a
Can you please confirm before starting Hive server that no one else is using this port
ReplyDeletenetstat -lnp | grep 10000
As OS I am using Windows Server 2008 r2.
ReplyDeleteHDInsight as Hadoop distribution
when i run netstat, i get