Hi Mardan, log4j is on the path of flume's conf Dir? And java is exported within your shell? I don't know how cygwin will handle such global environment exports. After you've build flume on windows you don't need to start them in a cygwin environment. It could be, when you import the hadoop classes as well, that you can use the hdfs uri scheme (hdfs://namenode:port) to connect directly.
Please note, the windows port is in work, I've only tested syslog and avro so far. Next step will be to integrate hadoop natively. cheers, Alex On Jul 30, 2012, at 3:36 AM, mardan Khan <[email protected]> wrote: > HI Alex > > Thank for the post. I have followed the link and done all the steps which > you have mentioned. After successfully build the flume, i have unzipe the > apache-flume-1.2.0-dist.tar into c:\cygwin\usr\home\Apache-flume. > > when I applied the following command then get the error message: Could not > find or load main class org.apache.flume.node.Application. > > bin/flume-ng agent -n agent -c conf -f conf/flume-conf.properties > > Then I copied the apache-flume-1.2.0-dist.tar into D:\apache-flume and type > the following command. > > D:\apache-flume>"c:\java\jdk1.7.0_01\bin\java.exe" > -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 -n agent. > > getting the error: The system cannot find the path spacified. My java path: > c:\java\jdk1.7.0_01. > > > Could please let me suggest the solution. > > Thanks > > > > On Sun, Jul 29, 2012 at 11:47 AM, alo.alt <[email protected]> wrote: > >> Hi, >> >> You've to build flume on a windows machine. Follow the steps I written up >> here: >> http://mapredit.blogspot.de/2012/07/run-flume-13x-on-windows.html >> >> cheers, >> Alex >> >> >> mardan Khan wrote: >> >> >> Hi, >> >> I have download the flume from the link: >> http://flume.apache.org/download.html and Unzip into >> c:\cygwin\home\mardan. Now when i am apply the command, getting the >> warning message. >> >> flume$ bin/flume-ng agent -n agent -f conf/flume-conf.properties.template. >> >> Cygwin Warning: MS-DOS style path detected >> >> /usr/local/bin/c:\program...................................................................... >> bin/flume-ng line:210 exec c:\program not found. >> >> >> Any solution for the problem. >> >> Many thanks >> >> -- Alexander Alten-Lorenz http://mapredit.blogspot.com German Hadoop LinkedIn Group: http://goo.gl/N8pCF
