[
https://issues.apache.org/jira/browse/FLUME-1674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13488012#comment-13488012
]
Alexander Alten-Lorenz edited comment on FLUME-1674 at 10/31/12 5:53 PM:
-------------------------------------------------------------------------
Build Flume on Windows
======================
Build system:
maven 3x, git, jdk1.6.x, WinRAR (or similar program)
Apache Flume agent:
jdk1.6.x, WinRAR (or similar program), Ultraedit++ or similar texteditor
Tweak the Windows build box
1. Download and install JDK 1.6x
2. Set the environment variables
=> Start - type "env" into the search box, select "Edit system environment
variables", click Environment Variables, Select "New" from the "Systems
variables" box, type "JAVA_HOME" into "variable name" and the path to your JDK
installation into "Variable value" (Example: C:\Program Files
(x86)\Java\jdk1.6.0_33)
3. Download and install maven 3
4. Set the environment variables
=> from the field "System variables" select New, Variable name "M2_HOME",
value Path to your maven installation (Example: D:\Maven\apache-maven-3.0.4)
=> from the field "User variables for (your username)" select New, Variable
name "M2", value "%M2_HOME%\bin"
=> from the field "User variables for (your username)" select New, Variable
name "MAVEN_OPTS", value "-XX:MaxPermSize=1024M"
5. Close the CMD if you have running one
6. Download and install msysgit or use a similar program to checkout a git repo
7. Change into the previously outchecked directory
8. Build with "mvn clean" and "mvn package -DskipTests"
Start a flume agent
===================
1. edit the log4j.properties file too, simple change the logger facility from
{code}
flume.root.logger=INFO,LOGFILE
{code}
into
{code}
flume.root.logger=DEBUG,CONSOLE
{code}
Start Flume:
{code}
flume-1.3.0-SNAPSHOT>"c:\Program Files (x86)\Java\jdk1.6.0_33\bin\java.exe"
-Xmx20m -Dlog4j.configuration=file:///%CD%\conf\log4j.properties -cp "lib\*"
org.apache.flume.node.Application -f conf\test1.conf -n syslog-agent
{code}
Explanation:
===========
Path to java.exe + Java related options + log4j config in Windows Uri style +
Flume libs + application + config
was (Author: alo.alt):
Build Flume on Windows
======================
Build system:
maven 3x, git, jdk1.6.x, WinRAR (or similar program)
Apache Flume agent:
jdk1.6.x, WinRAR (or similar program), Ultraedit++ or similar texteditor
Tweak the Windows build box
1. Download and install JDK 1.6x
2. Set the environment variables
=> Start - type "env" into the search box, select "Edit system environment
variables", click Environment Variables, Select "New" from the "Systems
variables" box, type "JAVA_HOME" into "variable name" and the path to your JDK
installation into "Variable value" (Example: C:\Program Files
(x86)\Java\jdk1.6.0_33)
3. Download and install maven 3
4. Set the environment variables
=> from the field "System variables" select New, Variable name "M2_HOME",
value Path to your maven installation (Example: D:\Maven\apache-maven-3.0.4)
=> from the field "User variables for (your username)" select New, Variable
name "M2", value "%M2_HOME%\bin"
=> from the field "User variables for (your username)" select New, Variable
name "MAVEN_OPTS", value "-XX:MaxPermSize=1024M"
5. Close the CMD if you have running one
6. Download and install msysgit or use a similar program to checkout a git repo
7. Change into the previously outchecked directory
8. Build with "mvn clean" and "mvn package -DskipTests"
Start a flume agent
===================
1. edit the log4j.properties file too, simple change the logger facility from
{code}
flume.root.logger=INFO,LOGFILE
{/code}
into
{code}
flume.root.logger=DEBUG,CONSOLE
Start Flume:
{code}
flume-1.3.0-SNAPSHOT>"c:\Program Files (x86)\Java\jdk1.6.0_33\bin\java.exe"
-Xmx20m -Dlog4j.configuration=file:///%CD%\conf\log4j.properties -cp "lib\*"
org.apache.flume.node.Application -f conf\test1.conf -n syslog-agent
Explanation:
===========
Path to java.exe + Java related options + log4j config in Windows Uri style +
Flume libs + application + config
> Documentation / Wiki
> --------------------
>
> Key: FLUME-1674
> URL: https://issues.apache.org/jira/browse/FLUME-1674
> Project: Flume
> Issue Type: Sub-task
> Components: Docs
> Affects Versions: v1.2.0
> Reporter: Alexander Alten-Lorenz
> Assignee: Alexander Alten-Lorenz
> Fix For: v1.4.0
>
>
> Add documentation and best practice about Windows running agents on Flume's
> wiki.
--
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