Github user pu239ppy commented on the issue:
https://github.com/apache/phoenix/pull/307
@joshelser If you are still unable to get .deactivate to work, remove it
from the shell script for now and we can revisit it. Again I am being overly
pedantic here, but a the shell exits, we really do not need to clean up any
environment.---
