incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Sen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-3061) Do not use regex to determine folder name by full path for dfs_domain_socket_path
Date Fri, 30 Aug 2013 21:00:53 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-3061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dmitry Sen updated AMBARI-3061:
-------------------------------

    Attachment: AMBARI-3061.patch
    
> 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