Re: How do I alter the combination of keys that exit the Spark shell?

2015-03-13 Thread Marcelo Vanzin
I'm not aware of a way to do that. CTRL-C is generally handled by the terminal emulator and just sends a SIGINT to the process; and the JVM doesn't allow you to ignore SIGINT. Setting a signal handler on the parent process doesn't work either. And there are other combinations you need to care

Re: How do I alter the combination of keys that exit the Spark shell?

2015-03-13 Thread Marcelo Vanzin
BTW this might be useful: http://superuser.com/questions/160388/change-bash-shortcut-keys-such-as-ctrl-c On Fri, Mar 13, 2015 at 10:53 AM, Sean Owen so...@cloudera.com wrote: This is more of a function of your shell, since ctrl-C will send SIGINT. I'm sure you can change that, depending on your

Re: How do I alter the combination of keys that exit the Spark shell?

2015-03-13 Thread Sean Owen
This is more of a function of your shell, since ctrl-C will send SIGINT. I'm sure you can change that, depending on your shell or terminal, but it's not a Spark-specific answer. On Fri, Mar 13, 2015 at 5:44 PM, Adamantios Corais adamantios.cor...@gmail.com wrote: this doesn't solve my problem...

Re: How do I alter the combination of keys that exit the Spark shell?

2015-03-13 Thread Marcelo Vanzin
You can type :quit. On Fri, Mar 13, 2015 at 10:29 AM, Adamantios Corais adamantios.cor...@gmail.com wrote: Hi, I want change the default combination of keys that exit the Spark shell (i.e. CTRL + C) to something else, such as CTRL + H? Thank you in advance. // Adamantios -- Marcelo

How do I alter the combination of keys that exit the Spark shell?

2015-03-13 Thread Adamantios Corais
Hi, I want change the default combination of keys that exit the Spark shell (i.e. CTRL + C) to something else, such as CTRL + H? Thank you in advance. *// Adamantios*