ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayush Luniya (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMBARI-11868) Hive service check fails when hive.metastore.warehouse.dir property is modified
Date Fri, 17 Jul 2015 17:13:05 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-11868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jayush Luniya resolved AMBARI-11868.
------------------------------------
    Resolution: Duplicate

> 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
>            Assignee: Jayush Luniya
>
> 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)

Mime
View raw message