Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # user >> Unable to stop Thrift Server


Copy link to this message
-
Re: 答复: Unable to stop Thrift Server


Hi,

I had to do a kill -9. I am very surprised even 'Programming Hive' book has not given details on how to stop the thrift service. It just metioned on how to start.
Thanks,
Raj

________________________________
 From: Jie Zhou (周杰) <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; Raj Hadoop <[EMAIL PROTECTED]>; Sanjay Subramanian <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2013 5:23 PM
Subject: 答复: Unable to stop Thrift Server
 
 
The direct solution is that first find the pid of hive service and then just kill  it.
netstat -anp |grep 10000
 
kill -9 pid
________________________________
 
发件人: Raj Hadoop [[EMAIL PROTECTED]]
发送时间: 2013年5月21日 5:17
收件人: Sanjay Subramanian; [EMAIL PROTECTED]; User
主题: Re: Unable to stop Thrift Server
Hi Sanjay,

I am using 0.9 version.
I do not have a sudo access. is there any other command to stop the service.

thanks,
raj
________________________________
 From: Sanjay Subramanian <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; Raj Hadoop <[EMAIL PROTECTED]>; User <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2013 5:11 PM
Subject: Re: Unable to stop Thrift Server

Raj
Which version r u using ?

I think from 0.9+ onwards its best to use service to stop and start and NOT hive 

sudo service hive-metastore stop
sudo service hive-server stop

sudo service hive-metastore start
sudo service hive-server start

Couple of general things that might help 

1. Use linux screens : then u can start many screen sessions and u don't have to give the synch mode "&" of execution 
     Its very easy to manage several screen sessions and they keep running till your server restarts….and generally u can ssh to some jumhost and create your screen sessions there  

2. Run the following 
     pstree -pulac | less
     U can possible search for hive or your username or root which was used to start the service…and kill the process

sanjay 
From: Raj Hadoop <[EMAIL PROTECTED]>
Reply-To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, Raj Hadoop <[EMAIL PROTECTED]>
Date: Monday, May 20, 2013 2:03 PM
To: Hive <[EMAIL PROTECTED]>, User <[EMAIL PROTECTED]>
Subject: Unable to stop Thrift Server
Hi,

I was not able to stopThrift Server after performing the following steps.
$ bin/hive --service hiveserver &
Starting Hive Thrift Server

$ netstat -nl | grep 10000
tcp 0 0 :::10000 :::* LISTEN
I gave the following to stop. but not working.
hive --service hiveserver --action stop 10000

How can I stop this service?
Thanks,
Raj
CONFIDENTIALITY NOTICE
=====================This email message and any attachments are for the exclusive use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient,
 please contact the sender by reply email and destroy all copies of the original message along with any attachments, from your computer system. If you are the intended recipient, please be advised that the content of this message is subject to access, review
 and disclosure by the sender's Email System Administrator.
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB