Yes, that should be doable. 
I'll cook up a .bat file for you guys.

On Mon, Jul 30, 2012 at 12:42 PM, alo alt <wget.null@gmail.com> wrote:
Hi Gumnaam,

Could you provide the script for native windows? Would be a good step to a native windows agent.

cheers,
 Alex

July 30, 2012 6:27 PM
Here's the second ver.
The earlier ver. was not killable from command-line via <Ctrl-C>,
This one is :).



July 30, 2012 6:19 PM
Hi Mardan,
Please try with the attached, flume-ng script,
I've modified it to be able to run under cygwin.

Put the file under where-ever you've extracted flume dist, under bin directory.

I've tested it , and it works, if you can confirm, then I can submit a patch to flume devs.

cheers


July 30, 2012 5:48 PM
yeah, you right.

After successfully build the project through mvn package -DskipTest.
 
I have got two directories in flume source: flume-ng-dist/target/apache-flume-1.2.0-dist.tar and apache-flume-1.2.0-src.tar.

I have copied the apache-flume-1.2.0-dist.tar and unpacked into d:\apache-flume.

Thanks



July 30, 2012 4:58 PM
Ah, okay.

For non-cygwin:

You have done git-checkout and build flume successfully (mvn -DSkipTests)?

After you've build you've copied the binaries, located in flume's source directory (flume-ng-dist\target\flume-ng-dist-1.3.0-SNAPSHOT-dist.tar.gz) onto another directory and unpacked them? And that directory is apache-flume?

cheers,
 Alex



July 30, 2012 4:44 PM
HI,

Actually i am doing conversation with Inder regarding the Cygwin. As I am trying to run on cygwin and with you on MS-DOS command prompt.

I am just telling you important location


1). My flume installation directory: D:\apache-flume
2). Lib path:                                 D:\apache-flume\lib
3). Configuration File:                    D:\apache-flume\conf\flume-conf.properties.template (I have copied the configuration file from your previous post).
4). My Java path:                          D:\program files\java\jdk1.7.0_03

My Command:

D:\apache-flume>"c:\Program Files\Java\jdk1.7.0_03\bin\java.exe" -Xmx20m -Dlog4j

.configuration=file:///%CD%\conf\log4j.properties -cp "d:\apache-flume\lib\*" org.apache.flume.node.Application

-f d:\apache-flume\conf\flume-conf.properties.template -n syslog-agent



Error: Could not find or load main class d:\apache-flume\lib\asynchbase-1.2.0.jar



Now please let me know where I am doing mistake.