The real reason is probably in the log of the hiveserver. It should be in the console you started the hiveserver in. I sometimes start it like this: nohup ./hive --service hiveserver >hive.log & Which would show you some errors in the hive.log file. We used to have some problems with PermGen issues because of a classloading/unloading issue in one of our udfs which would show itself with an error like this. It is however a pretty generic error which is telling you the "hiveserver" is probably having a problem and you need to take a look at the logs.
________________________________ From: lei liu [mailto:liulei...@gmail.com] Sent: Monday, August 23, 2010 9:48 AM To: hive-user@hadoop.apache.org Subject: Re: java.sql.SQLException: org.apache.thrift.transport.TTransportException: Cannot read. Remote side has closed. Tried to read 1 bytes, but only got 0 bytes. Yes, you are right. I do that, but after the hive server run several days, when client connection the hive server, the client receive the exception. 2010/8/23 Adarsh Sharma <adarsh.sha...@orkash.com<mailto:adarsh.sha...@orkash.com>> For Running Hive in Server Mode .. First U have to start service of hiveserver :: *$bin/hive --service hiveserver * and then run the code lei liu wrote: Hello everyone, I use JDBC to connection the hive server, sometime I receive below exception: java.sql.SQLException: org.apache.thrift.transport.TTransportException: Cannot read. Remote side has closed. Tried to read 1 bytes, but only got 0 bytes. Please tell me the eason. Thanks LiuLei