Pivotal Knowledge Base

Follow

Ambari: Hive service check always fails if default warehouse dir is changed

Environment

  • PHD 3.0
  • Ambari 1.7.1
  • Default Hive Warehouse dir has been changed

Symptoms

Trying to run Hive service check in Ambari always fails because it tries to check the default warehouse directory. The following image shows how to trigger the error if you have changed the default warehouse directory.

Further impacts

  • Operation "Move Secondary NameNode" will never finish the wizard, since the last step of the wizard is a full services restart and service check

Cause

Default hive warehouse dir is hard-coded in the script. Check AMBARI-11068.

Fix

The issue is fixed in Ambari 2.1. The fix is easy to port into PHD 3.0.

/var/lib/ambari-server/resources/stacks/PHD/2.0.6/services/HIVE/package/scripts/hcat_service_check.py
---------
- output_file = format("/apps/hive/warehouse/hcatsmoke{unique}")
+ output_file = format("{hive_apps_whs_dir}/hcatsmoke{unique}")

Comments

Powered by Zendesk