You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/07/18 22:17:00 UTC

[jira] [Commented] (AMBARI-24272) OneFS service check fails with 'dfs_type' is not set.

    [ https://issues.apache.org/jira/browse/AMBARI-24272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16548477#comment-16548477 ] 

Hudson commented on AMBARI-24272:
---------------------------------

SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #9614 (See [https://builds.apache.org/job/Ambari-trunk-Commit/9614/])
AMBARI-24272. OneFS service check fails with 'dfs_type' is not set. (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=32d88a874b9de7208de68f998df5979e2544966d])
* (edit) contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params_linux.py


> OneFS service check fails with 'dfs_type' is not set.
> -----------------------------------------------------
>
>                 Key: AMBARI-24272
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24272
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.7.0
>            Reporter: Attila Magyar
>            Assignee: Attila Magyar
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.7.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Following error comes when running a OneFS service check.
> {code}
> resource_management.core.exceptions.Fail: Resource parameter 'dfs_type' is not set.
> stderr:
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/ONEFS/package/scripts/service_check.py", line 59, in <module>
>     HdfsServiceCheck().execute()
>   File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 353, in execute
>     method(env)
>   File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/ONEFS/package/scripts/service_check.py", line 43, in service_check
>     mode=0777
>   File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
>     self.env.run()
>   File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
>     self.run_action(resource, action)
>   File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 119, in run_action
>     provider = provider_class(resource)
>   File "/usr/lib/ambari-agent/lib/resource_management/libraries/providers/hdfs_resource.py", line 594, in __init__
>     self.assert_parameter_is_set('dfs_type')
>   File "/usr/lib/ambari-agent/lib/resource_management/libraries/providers/hdfs_resource.py", line 673, in assert_parameter_is_set
>     raise Fail("Resource parameter '{0}' is not set.".format(parameter_name))
> resource_management.core.exceptions.Fail: Resource parameter 'dfs_type' is not set.
> stdout:
> 2018-07-09 17:29:05,706 - Using hadoop conf dir: /usr/hdp/3.0.0.0-1485/hadoop/conf
> 2018-07-09 17:29:05,715 - Using hadoop conf dir: /usr/hdp/3.0.0.0-1485/hadoop/conf
> 2018-07-09 17:29:05,717 - checked_call['hostid'] {}
> 2018-07-09 17:29:05,721 - checked_call returned (0, 'f20a5572')
> 2018-07-09 17:29:05,722 - HdfsResource['/tmp'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/3.0.0.0-1485/hadoop/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://ah-onefs-hdp3.west.isilon.com:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': None, 'user': 'hdfs', 'action': ['create_on_execute'], 'hadoop_conf_dir': '/usr/hdp/3.0.0.0-1485/hadoop/conf', 'type': 'directory', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp'], 'mode': 0777}
> Command failed after 1 tries
> {code}
> In params_linux.py, dfs_type should come from clusterLevelParams instead of commandParams.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)