incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bm...@apache.org
Subject svn commit: r1324992 - /incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/flume/flume-node.init
Date Wed, 11 Apr 2012 20:47:59 GMT
Author: bmahe
Date: Wed Apr 11 20:47:59 2012
New Revision: 1324992

URL: http://svn.apache.org/viewvc?rev=1324992&view=rev
Log:
BIGTOP-502. Flume NG init script should pass --name 'agent' instead of --name '<hostname>'

Modified:
    incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/flume/flume-node.init

Modified: incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/flume/flume-node.init
URL: http://svn.apache.org/viewvc/incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/flume/flume-node.init?rev=1324992&r1=1324991&r2=1324992&view=diff
==============================================================================
--- incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/flume/flume-node.init
(original)
+++ incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/flume/flume-node.init
Wed Apr 11 20:47:59 2012
@@ -62,8 +62,8 @@ FLUME_PID_FILE=${FLUME_RUN}/flume-node.p
 install -d -m 0755 -o flume -g flume ${FLUME_RUN} 
 USER=flume
 
-HOSTNAME=`hostname`
-FLUME_NODE_NAME=${FLUME_NODE_NAME:-$HOSTNAME}
+DEFAULT_FLUME_NODE_NAME="agent"
+FLUME_NODE_NAME=${FLUME_NODE_NAME:-${DEFAULT_FLUME_NODE_NAME}}
 
 start() {
   [ -x $exec ] || exit $ERROR_PROGRAM_NOT_INSTALLED



Mime
View raw message