stderr: /var/lib/ambari-agent/data/errors-71.txt Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/service_check.py", line 146, in HdfsServiceCheck().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute method(env) File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/service_check.py", line 67, in service_check action="create_on_execute" File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__ self.env.run() File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 158, in run self.run_action(resource, action) File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 121, in run_action provider_action() File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 402, in action_create_on_execute self.action_delayed("create") File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 399, in action_delayed self.get_hdfs_resource_executor().action_delayed(action_name, self) File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 255, in action_delayed self._create_resource() File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 269, in _create_resource self._create_file(self.main_resource.resource.target, source=self.main_resource.resource.source, mode=self.mode) File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 322, in _create_file self.util.run_command(target, 'CREATE', method='PUT', overwrite=True, assertable_result=False, file_to_put=source, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 210, in run_command raise Fail(err_msg) resource_management.core.exceptions.Fail: Execution of 'curl -sS -L -w '%{http_code}' -X PUT -T /etc/passwd 'http://hadoop.core:50070/webhdfs/v1/tmp/id0a0a8f14_date562616?op=CREATE&user.name=hdfs&overwrite=True'' returned status_code=500. { "RemoteException": { "exception": "UndeclaredThrowableException", "javaClassName": "java.lang.reflect.UndeclaredThrowableException", "message": null } } stdout: /var/lib/ambari-agent/data/output-71.txt 2016-01-26 10:56:14,444 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf 2016-01-26 10:56:14,447 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf 2016-01-26 10:56:14,469 - ExecuteHadoop['dfsadmin -fs hdfs://hadoop.core:8020 -safemode get | grep OFF'] {'bin_dir': '/usr/hdp/current/hadoop-client/bin', 'conf_dir': '/usr/hdp/current/hadoop-client/conf', 'logoutput': True, 'try_sleep': 3, 'tries': 20, 'user': 'hdfs'} 2016-01-26 10:56:14,491 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf dfsadmin -fs hdfs://hadoop.core:8020 -safemode get | grep OFF'] {'logoutput': True, 'try_sleep': 3, 'environment': {}, 'tries': 20, 'user': 'hdfs', 'path': ['/usr/hdp/current/hadoop-client/bin']} DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command for it. Safe mode is OFF 2016-01-26 10:56:17,875 - HdfsResource['/tmp'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'default_fs': 'hdfs://hadoop.core:8020', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': None, 'user': 'hdfs', 'action': ['create_on_execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'directory', 'mode': 0777} 2016-01-26 10:56:17,879 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://hadoop.core:50070/webhdfs/v1/tmp?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmped32uo 2>/tmp/tmpln4Reu''] {'logoutput': None, 'quiet': False} 2016-01-26 10:56:17,938 - call returned (0, '') 2016-01-26 10:56:17,939 - HdfsResource['/tmp/id0a0a8f14_date562616'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'default_fs': 'hdfs://hadoop.core:8020', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': None, 'user': 'hdfs', 'action': ['delete_on_execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file'} 2016-01-26 10:56:17,945 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://hadoop.core:50070/webhdfs/v1/tmp/id0a0a8f14_date562616?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpEn0xDB 2>/tmp/tmpWV7xZz''] {'logoutput': None, 'quiet': False} 2016-01-26 10:56:18,000 - call returned (0, '') 2016-01-26 10:56:18,001 - HdfsResource['/tmp/id0a0a8f14_date562616'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'default_fs': 'hdfs://hadoop.core:8020', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': None, 'user': 'hdfs', 'action': ['create_on_execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file'} 2016-01-26 10:56:18,002 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://hadoop.core:50070/webhdfs/v1/tmp/id0a0a8f14_date562616?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpYijdSV 2>/tmp/tmpaF8uV9''] {'logoutput': None, 'quiet': False} 2016-01-26 10:56:18,056 - call returned (0, '') 2016-01-26 10:56:18,057 - Creating new file /tmp/id0a0a8f14_date562616 in DFS 2016-01-26 10:56:18,057 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://hadoop.core:50070/webhdfs/v1/tmp/id0a0a8f14_date562616?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpJZiPos 2>/tmp/tmph8F8Lh''] {'logoutput': None, 'quiet': False} 2016-01-26 10:56:18,114 - call returned (0, '')