You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Dmitry Sen (JIRA)" <ji...@apache.org> on 2013/08/30 23:00:53 UTC
[jira] [Updated] (AMBARI-3061) Do not use regex to determine folder
name by full path for dfs_domain_socket_path
[ 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