Hi Guys,
I found the problem I hope it helps someone else. The way to do those sort of thigs is to suppress the command output. In effect you need to tell the sshpass-ed command to suppress it's output if you do that you can daemonize the remote command , in my case the hiveserver2.


Regards,
Peter

On 5.12.2014 20:42, Daniel Haviv wrote:
Try using screen

Daniel

On 5 בדצמ׳ 2014, at 19:08, peterm_second <regest...@gmail.com <mailto:regest...@gmail.com>> wrote:

yes,
I've tried nohup , & even sh -c .
& works but after the first call get's executed in the background I get the message you can see when a hadoop job is submitted to the cluster and then the terminal get's frozen. I think the problem is in the ext/hiveserver2.sh:hiveserver2 function. it's says something along the lines of
*exec $HADOOP jar $JAR $CLASS $HIVE_OPTS "$@" *
I am not 100% how the exec command works , but somehow it re-owns the launching terminal. My problem is aggravated by the fact that I am launching hive using sshpass

Peter

On 5.12.2014 18:55, Jörn Franke wrote:

Have you tried nohup ?

Le 5 déc. 2014 15:25, "peterm_second" <regest...@gmail.com <mailto:regest...@gmail.com>> a écrit :

    Hi Guys,
    How can I launch the Hiveserver2 as a daemon.
    I am launching the hiverserv2 using sshpass and I can't detach
    hiveserver2 from my terminal. Is there a way to deamonise the
    hiveserver2  ?

    I've also tried using & but it's not working either, any thoughts ?

    Regards,
    Peter



Reply via email to