hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iván Fernández Perea <ivan.fernandez.pe...@gmail.com>
Subject Starting the Thrift Server
Date Mon, 26 Aug 2013 15:24:15 GMT
Hi,

I'm trying the Hive intregration with Oozie chapter showed in the book
'Programming Hive' and everything is ok until I try to run the thrift
server. It seems as the thrift server isn't starting. I run the following
command:

bin/hive --service hiveserver &

but hiveserver hasn't started and netstat command doesn't get anything and
I have no idea why.


Sometimes I also get the following exception on console:

org.apache.thrift.transport.TTransportException: Could not create
ServerSocket on address 0.0.0.0/0.0.0.0:10000.

If I add the port option to the hive command the exception is gone but
netstat doesn't get anything either.


Oozie job log looks like this:


ACTION[0000026-130826113410362-oozie-ivan-W@create-node] Launcher
exception: java.net.UnknownHostException: rhiveservice.example.pvt

org.apache.thrift.transport.TTransportException:
java.net.UnknownHostException: rhiveservice.example.pvt

at org.apache.thrift.transport.TSocket.open(TSocket.java:185)

at com.jointhegrid.hive_test.ServiceHive.<init>(ServiceHive.java:41)

at com.m6d.oozie.HiveServiceBAction.runAction(HiveServiceBAction.java:22)

at com.m6d.oozie.HiveServiceBAction.main(HiveServiceBAction.java:39)

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.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:491)

at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50)

at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:436)

at org.apache.hadoop.mapred.MapTask.run(MapTask.java:372)

at org.apache.hadoop.mapred.Child$4.run(Child.java:255)

at java.security.AccessController.doPrivileged(Native Method)

at javax.security.auth.Subject.doAs(Subject.java:396)

at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1136)

at org.apache.hadoop.mapred.Child.main(Child.java:249)

Caused by: java.net.UnknownHostException: rhiveservice.example.pvt

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)

at java.net.Socket.connect(Socket.java:529)

at org.apache.thrift.transport.TSocket.open(TSocket.java:180)

... 16 more

I also wondering where the hive service name (rhiveservice.hadoop.pvt)
comes from and if I can configure it via configuration files.


Many thanks!!!!

Mime
View raw message