flume在windows下的启动脚本

windows下flume启动脚本


::@echo off

::USAGE:  apache-flume-1.5.0.1-bin>call bin/flume-win*.bat
::AUTHOER: Ning Guo of CIB
::TIME: 2014/11/28  12:55
::set java home
set JAVA_HOME="C:\Java\jdk1.7.0_67"
::set configuration file
set CONF_FILE=testconsole.conf




::set DEBUG="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=2345"

::java -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n zhc_application

::set java remote testing

set DEBUG="-agentlib:jdwp=transport=dt_socket,address=2345,server=y,suspend=y"
set JVM_OPTS="%DEBUG%"
::set agent name 
set AGENT_NAME=agent
::retrieve the parent directory
setlocal
for %%i in ("%~dp0..") do set "folder=%%~fi"
set FLUME_HOME="%folder%"
%JAVA_HOME%\bin\java.exe -Xms128m -Xmx512m %JVM_OPTS% -Dlog4j.configuration=file:///%FLUME_HOME%\conf\log4j.properties -cp %FLUME_HOME%\lib\* org.apache.flume.node.Application -f %FLUME_HOME%\conf\%CONF_FILE% -n %AGENT_NAME%
pause

你可能感兴趣的:(flume)