HUE-2131 [core] Add sharing to pig, hive scripts