You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Colman Madden (JIRA)" <ji...@apache.org> on 2015/09/22 07:33:04 UTC

[jira] [Commented] (AMBARI-9421) truncate path string after '=' in flume.conf when sync from ambari server

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

Colman Madden commented on AMBARI-9421:
---------------------------------------

We were having the same issue so we came up with a work around to get us by until the fix is released
In Ambari edit the flume-env.sh file (one gets created for every agent and it gets run every time before it starts the agent)

1) Build the flume config with a token such as '&eq&' where you want the '=' character
2) Edit the flume_env.sh file in Ambari to do the replace with the below two lines.

echo fixing flume.conf replacing '&eq&' with '=' in file ${BASH_ARGV[3]}
sed -i 's/&eq&/=/g' ${BASH_ARGV[3]}

Note: BASH_ARGV[3] gives you the full file path for the flume conf file

Works really well!!

> truncate path string after '=' in flume.conf when sync from ambari server
> -------------------------------------------------------------------------
>
>                 Key: AMBARI-9421
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9421
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent
>    Affects Versions: 1.7.0
>         Environment: centos 6.5
>            Reporter: xiao_cao
>            Priority: Critical
>             Fix For: 2.1.2
>
>
> if I change the property of flume config in ambari-admin:
> collector.sinks.sink_hdfs.hdfs.path=/user/flume/%{category}/dt=%Y%m%d/hour=%H
> after save and restart flume in ambari-admin, the flume conf that sync from master in agent:
> collector.sinks.sink_hdfs.hdfs.path=/user/flume/%{category}/dt



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