ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleksandr Diachenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-3061) Do not use regex to determine folder name by full path for dfs_domain_socket_path
Date Mon, 02 Sep 2013 12:46:51 GMT

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

Oleksandr Diachenko commented on AMBARI-3061:
---------------------------------------------

+1
                
> Do not use regex to determine folder name by full path for dfs_domain_socket_path
> ---------------------------------------------------------------------------------
>
>                 Key: AMBARI-3061
>                 URL: https://issues.apache.org/jira/browse/AMBARI-3061
>             Project: Ambari
>          Issue Type: Bug
>          Components: agent
>    Affects Versions: 1.4.1
>            Reporter: Dmitry Sen
>            Assignee: Dmitry Sen
>             Fix For: 1.4.1
>
>         Attachments: AMBARI-3061.patch
>
>
> The point is to use custom puppet function instead of regex for line
> {code}
> $dfs_domain_socket_path_dir = regsubst($hdp-hadoop::params::dfs_domain_socket_path, '/[^\/]+$',
'')
> {code}.
> It could be implemented with ruby:
> {code}
> File.split('/path/to/file') # => ["/path/to", "file"]
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message