[
https://issues.apache.org/jira/browse/AMBARI-9442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Mitic updated AMBARI-9442:
-------------------------------
Attachment: AMBARI-9442.patch
Attaching the initial patch.
I validated the fix on the existing cluster and both HDFS and Hive checks are
now passing.
The issue with the hive service check was that it assumed that the hive
warehouse dir was under /apps/hive/warehouse, while it was under
/hive/warehouse on Humboldt.
The fix for the HDFS service check is not "mathematically correct" but good
enough for now. The check will perform the namonode safemode check, and a
number of default FS operations against WASB. So this will be checking the
mixes health of the HDFS and WASB. We can file a follow up item to address this
part.
> HDFS and Hive services checks fail when default FS is not HDFS
> --------------------------------------------------------------
>
> Key: AMBARI-9442
> URL: https://issues.apache.org/jira/browse/AMBARI-9442
> Project: Ambari
> Issue Type: Bug
> Components: stacks
> Affects Versions: 2.0.0
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
> Attachments: AMBARI-9442.patch
>
>
> HDFS service check fails with:
> {code}
> 2015-01-27 09:15:54,459 - Error while executing command 'service_check':
> Traceback (most recent call last):
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 184, in execute
> method(env)
> File
> "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/service_check.py",
> line 53, in service_check
> bin_dir=params.hadoop_bin_dir
> File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
> line 148, in __init__
> self.env.run()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 151, in run
> self.run_action(resource, action)
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 117, in run_action
> provider_action()
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/execute_hadoop.py",
> line 55, in action_run
> environment = self.resource.environment,
> File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
> line 148, in __init__
> self.env.run()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 151, in run
> self.run_action(resource, action)
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 117, in run_action
> provider_action()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
> line 277, in action_run
> raise ex
> Fail: Execution of 'hadoop --config /etc/hadoop/conf dfsadmin -safemode get |
> grep OFF' returned 1. DEPRECATED: Use of this script to execute hdfs command
> is deprecated.
> Instead use the hdfs command for it.
> {code}
> Hive service check fails with:
> {code}
> 2015-01-26 04:03:39,082 - Error while executing command 'service_check':
> Traceback (most recent call last):
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 184, in execute
> method(env)
> File
> "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py",
> line 55, in service_check
> hcat_service_check()
> File
> "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hcat_service_check.py",
> line 69, in hcat_service_check
> bin_dir=params.execute_path
> File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
> line 148, in __init__
> self.env.run()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 151, in run
> self.run_action(resource, action)
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 117, in run_action
> provider_action()
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/execute_hadoop.py",
> line 55, in action_run
> environment = self.resource.environment,
> File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
> line 148, in __init__
> self.env.run()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 151, in run
> self.run_action(resource, action)
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 117, in run_action
> provider_action()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
> line 277, in action_run
> raise ex
> Fail: Execution of 'hadoop --config /etc/hadoop/conf fs -test -e
> /apps/hive/warehouse/hcatsmokeid000a0d00_date022615' returned 1.
> stdout:
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)