You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2016/07/04 13:34:11 UTC

[jira] [Commented] (AMBARI-17550) While changing NN, DN directories from UI, proper warning should be present for invalid values

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

Hadoop QA commented on AMBARI-17550:
------------------------------------

{color:green}+1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12816043/AMBARI-17550.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 3 new or modified test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in ambari-server.

Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/7675//testReport/
Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/7675//console

This message is automatically generated.

> While changing NN, DN directories from UI, proper warning should be present for invalid values
> ----------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-17550
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17550
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-17550.patch
>
>
> While changing NN and DN directories from ambari, for example:  
> changing dn directories from **/grid/0/hadoop/hdfs/data** to **/grid/0/hadoop/
> hdfs/data,/grid/0/hadoop/hdfs/data1,/grid/0/hadoop/hdfs/data2**
> The values are changed without being validated  
> This leads to datanodes start failing
>     
>     
>     
>     Traceback (most recent call last):
>       File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py", line 174, in <module>
>         DataNode().execute()
>       File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
>         method(env)
>       File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 709, in restart
>         self.start(env, upgrade_type=upgrade_type)
>       File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py", line 60, in start
>         self.configure(env)
>       File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py", line 55, in configure
>         datanode(action="configure")
>       File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk
>         return fn(*args, **kwargs)
>       File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_datanode.py", line 53, in datanode
>         data_dir_to_mount_file_content = handle_mounted_dirs(create_dirs, params.dfs_data_dirs, params.data_dir_mount_file, params)
>       File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/mounted_dirs_helper.py", line 158, in handle_mounted_dirs
>         raise Fail(message + " . Please turn off cluster-env/one_dir_per_partition or handle the situation manually.")
>     resource_management.core.exceptions.Fail: Trying to create another directory on the following mount: /grid/0 . Please turn off cluster-env/one_dir_per_partition or handle the situation manually.
>     
> The test fails because it set invalid value, and the directory was not created  
> A warning message informing why the new directory name is invalid could be
> useful



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)