You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Alexander Denissov (JIRA)" <ji...@apache.org> on 2015/06/12 00:25:00 UTC
[jira] [Created] (AMBARI-11868) Hive service check fails when
hive.metastore.warehouse.dir property is modified
Alexander Denissov created AMBARI-11868:
-------------------------------------------
Summary: Hive service check fails when hive.metastore.warehouse.dir property is modified
Key: AMBARI-11868
URL: https://issues.apache.org/jira/browse/AMBARI-11868
Project: Ambari
Issue Type: Bug
Components: stacks
Affects Versions: 1.7.0
Environment: Ambari 1.7.0 with HDP 2.2.4.2 stack and Ambari 1.7.1 with PHD 3.0 stack
Reporter: Alexander Denissov
When Hive is installed as part of the cluster and "hive.metastore.warehouse.dir" property in "hive-site" is modified to anything other than "/apps/hive/warehouse" then HIVE Service Check fails with the message:
Fail: Execution of 'hadoop --config /etc/hadoop/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06502_date351115' returned 1.
The problem is due to the fact that "/apps/hive/warehouse" is hardcoded in ambari-server/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/hcat_service_check.py file. When the actual warehouse location changes, the script has to perform existence check in the new location.
The solution is to use the variable from params.py, i.e. substitute the lines:
old:
output_file = format("/apps/hive/warehouse/hcatsmoke{unique}")
new:
output_file = format("{hive_apps_whs_dir}/hcatsmoke{unique}")
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)