Would it make sense to either export the SERVICE parameter in hive.distro or maybe pass it as input to hive-env.sh so that we can set environment parameters based on the service (hiveserver2, megastore, etc.)? If this is already happening I must be missing it in the code.