|
mardan Khan
2012-07-29, 01:01
Brock Noland
2012-07-29, 03:20
mardan Khan
2012-07-29, 04:54
Brock Noland
2012-07-29, 15:41
mardan Khan
2012-07-29, 16:27
Brock Noland
2012-07-29, 17:03
mardan Khan
2012-07-30, 10:55
Inder Pall
2012-07-30, 12:20
mardan Khan
2012-07-30, 13:24
mardan Khan
2012-07-30, 13:30
Inder Pall
2012-07-30, 13:40
mardan Khan
2012-07-30, 13:53
Inder Pall
2012-07-30, 14:02
alo alt
2012-07-30, 14:20
mardan Khan
2012-07-30, 14:44
alo alt
2012-07-30, 14:58
mardan Khan
2012-07-30, 15:48
Gumnaam Sur
2012-07-30, 16:19
Gumnaam Sur
2012-07-30, 16:27
alo alt
2012-07-30, 16:42
Gumnaam Sur
2012-07-30, 17:50
mardan Khan
2012-07-30, 19:42
mardan Khan
2012-07-30, 16:53
mardan Khan
2012-07-30, 17:03
|
-
Installation of full flume on window OSmardan Khan 2012-07-29, 01:01
Hi,
I am struggling from couple of weeks to install and configure the flume1.x on windows but could not success. Could you please someone show me step-by-step how to install flume on window. I have read a couple of posts which mentioned the git and Maven but i dont understand how can use it to install the flume. Please help me as i am total stuck and running out of time. Thanks +
mardan Khan 2012-07-29, 01:01
-
Re: Installation of full flume on window OSBrock Noland 2012-07-29, 03:20
Hi,
If you just want run a flume agent on Windows you just download the binary here: http://flume.apache.org/download.html Note that the flume startup script is written in bash so unless you use cygwin you'll need to start the JVM and setup the classpath yourself. Brock On Sat, Jul 28, 2012 at 8:01 PM, mardan Khan <[EMAIL PROTECTED]> wrote: > Hi, > > I am struggling from couple of weeks to install and configure the flume1.x > on windows but could not success. Could you please someone show me > step-by-step how to install flume on window. I have read a couple of posts > which mentioned the git and Maven but i dont understand how can use it to > install the flume. > > Please help me as i am total stuck and running out of time. > > Thanks > -- Apache MRUnit - Unit testing MapReduce - http://incubator.apache.org/mrunit/ +
Brock Noland 2012-07-29, 03:20
-
Re: Installation of full flume on window OSmardan Khan 2012-07-29, 04:54
Hi Brock.
Thanks for reply. I want to use the full flume as i have to upload the data into hdfs. I have installed the cygwin and hadoop. I have download the flume binary from the mentioned link. Now you please let me explain the follow: 1). I need just to decopress the downloaded folder? 2). where i should decompress the flume binary. Should i decompress c:\cygwin\home\user-name 3). How I will run the flume-ng. 4) The flume.conf file will configure same as configuring using Linux? Many thanks On Sun, Jul 29, 2012 at 4:20 AM, Brock Noland <[EMAIL PROTECTED]> wrote: > Hi, > > If you just want run a flume agent on Windows you just download the binary > here: http://flume.apache.org/download.html > > Note that the flume startup script is written in bash so unless you use > cygwin you'll need to start the JVM and setup the classpath yourself. > > Brock > > > On Sat, Jul 28, 2012 at 8:01 PM, mardan Khan <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> I am struggling from couple of weeks to install and configure the >> flume1.x on windows but could not success. Could you please someone show me >> step-by-step how to install flume on window. I have read a couple of posts >> which mentioned the git and Maven but i dont understand how can use it to >> install the flume. >> >> Please help me as i am total stuck and running out of time. >> >> Thanks >> > > > > -- > Apache MRUnit - Unit testing MapReduce - > http://incubator.apache.org/mrunit/ > +
mardan Khan 2012-07-29, 04:54
-
Re: Installation of full flume on window OSBrock Noland 2012-07-29, 15:41
Hi,
Inline On Sat, Jul 28, 2012 at 11:54 PM, mardan Khan <[EMAIL PROTECTED]> wrote: > Hi Brock. > > Thanks for reply. I want to use the full flume as i have to upload the > data into hdfs. I have installed the cygwin and hadoop. > OK this is a great start. > I have download the flume binary from the mentioned link. Now you please > let me explain the follow: > > 1). I need just to decopress the downloaded folder? > Yes you download a tar.gz which is like a zip. In cygwin you can use the command tar -zxvf to untar it. > 2). where i should decompress the flume binary. Should i decompress > c:\cygwin\home\user-name > Whereever you want, however a common place for "tarball" software is /usr/local or /opt > 3). How I will run the flume-ng. > You configure flume and then run the flume-ng command in the bin directory > 4) The flume.conf file will configure same as configuring using Linux? > > Yes configure flume will be the same as on Linux in cygwin. > > > Many thanks > > > > On Sun, Jul 29, 2012 at 4:20 AM, Brock Noland <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> If you just want run a flume agent on Windows you just download the >> binary here: http://flume.apache.org/download.html >> >> Note that the flume startup script is written in bash so unless you use >> cygwin you'll need to start the JVM and setup the classpath yourself. >> >> Brock >> >> >> On Sat, Jul 28, 2012 at 8:01 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >> >>> Hi, >>> >>> I am struggling from couple of weeks to install and configure the >>> flume1.x on windows but could not success. Could you please someone show me >>> step-by-step how to install flume on window. I have read a couple of posts >>> which mentioned the git and Maven but i dont understand how can use it to >>> install the flume. >>> >>> Please help me as i am total stuck and running out of time. >>> >>> Thanks >>> >> >> >> >> -- >> Apache MRUnit - Unit testing MapReduce - >> http://incubator.apache.org/mrunit/ >> > > -- Apache MRUnit - Unit testing MapReduce - http://incubator.apache.org/mrunit/ +
Brock Noland 2012-07-29, 15:41
-
Re: Installation of full flume on window OSmardan Khan 2012-07-29, 16:27
Thanks Brock.
Now when i am run the command: 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. How to solve this problem. On Sun, Jul 29, 2012 at 4:41 PM, Brock Noland <[EMAIL PROTECTED]> wrote: > Hi, > > Inline > > On Sat, Jul 28, 2012 at 11:54 PM, mardan Khan <[EMAIL PROTECTED]>wrote: > >> Hi Brock. >> >> Thanks for reply. I want to use the full flume as i have to upload the >> data into hdfs. I have installed the cygwin and hadoop. >> > > OK this is a great start. > > >> I have download the flume binary from the mentioned link. Now you please >> let me explain the follow: >> >> 1). I need just to decopress the downloaded folder? >> > > Yes you download a tar.gz which is like a zip. In cygwin you can use the > command tar -zxvf to untar it. > > >> 2). where i should decompress the flume binary. Should i decompress >> c:\cygwin\home\user-name >> > > Whereever you want, however a common place for "tarball" software is > /usr/local or /opt > > >> 3). How I will run the flume-ng. >> > > You configure flume and then run the flume-ng command in the bin directory > > >> 4) The flume.conf file will configure same as configuring using Linux? >> >> > Yes configure flume will be the same as on Linux in cygwin. > >> >> >> Many thanks >> >> >> >> On Sun, Jul 29, 2012 at 4:20 AM, Brock Noland <[EMAIL PROTECTED]> wrote: >> >>> Hi, >>> >>> If you just want run a flume agent on Windows you just download the >>> binary here: http://flume.apache.org/download.html >>> >>> Note that the flume startup script is written in bash so unless you use >>> cygwin you'll need to start the JVM and setup the classpath yourself. >>> >>> Brock >>> >>> >>> On Sat, Jul 28, 2012 at 8:01 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >>> >>>> Hi, >>>> >>>> I am struggling from couple of weeks to install and configure the >>>> flume1.x on windows but could not success. Could you please someone show me >>>> step-by-step how to install flume on window. I have read a couple of posts >>>> which mentioned the git and Maven but i dont understand how can use it to >>>> install the flume. >>>> >>>> Please help me as i am total stuck and running out of time. >>>> >>>> Thanks >>>> >>> >>> >>> >>> -- >>> Apache MRUnit - Unit testing MapReduce - >>> http://incubator.apache.org/mrunit/ >>> >> >> > > > -- > Apache MRUnit - Unit testing MapReduce - > http://incubator.apache.org/mrunit/ > +
mardan Khan 2012-07-29, 16:27
-
Re: Installation of full flume on window OSBrock Noland 2012-07-29, 17:03
Hi,
Unfortunately I am not familiar with cygwin and don't have a windows computer to test on. Hopefully someone else on the list has an insight. Brock On Sun, Jul 29, 2012 at 11:27 AM, mardan Khan <[EMAIL PROTECTED]> wrote: > Thanks Brock. > > > Now when i am run the command: 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. > > How to solve this problem. > > > > > > > > > On Sun, Jul 29, 2012 at 4:41 PM, Brock Noland <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> Inline >> >> On Sat, Jul 28, 2012 at 11:54 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >> >>> Hi Brock. >>> >>> Thanks for reply. I want to use the full flume as i have to upload the >>> data into hdfs. I have installed the cygwin and hadoop. >>> >> >> OK this is a great start. >> >> >>> I have download the flume binary from the mentioned link. Now you please >>> let me explain the follow: >>> >>> 1). I need just to decopress the downloaded folder? >>> >> >> Yes you download a tar.gz which is like a zip. In cygwin you can use the >> command tar -zxvf to untar it. >> >> >>> 2). where i should decompress the flume binary. Should i decompress >>> c:\cygwin\home\user-name >>> >> >> Whereever you want, however a common place for "tarball" software is >> /usr/local or /opt >> >> >>> 3). How I will run the flume-ng. >>> >> >> You configure flume and then run the flume-ng command in the bin directory >> >> >>> 4) The flume.conf file will configure same as configuring using Linux? >>> >>> >> Yes configure flume will be the same as on Linux in cygwin. >> >>> >>> >>> Many thanks >>> >>> >>> >>> On Sun, Jul 29, 2012 at 4:20 AM, Brock Noland <[EMAIL PROTECTED]>wrote: >>> >>>> Hi, >>>> >>>> If you just want run a flume agent on Windows you just download the >>>> binary here: http://flume.apache.org/download.html >>>> >>>> Note that the flume startup script is written in bash so unless you use >>>> cygwin you'll need to start the JVM and setup the classpath yourself. >>>> >>>> Brock >>>> >>>> >>>> On Sat, Jul 28, 2012 at 8:01 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >>>> >>>>> Hi, >>>>> >>>>> I am struggling from couple of weeks to install and configure the >>>>> flume1.x on windows but could not success. Could you please someone show me >>>>> step-by-step how to install flume on window. I have read a couple of posts >>>>> which mentioned the git and Maven but i dont understand how can use it to >>>>> install the flume. >>>>> >>>>> Please help me as i am total stuck and running out of time. >>>>> >>>>> Thanks >>>>> >>>> >>>> >>>> >>>> -- >>>> Apache MRUnit - Unit testing MapReduce - >>>> http://incubator.apache.org/mrunit/ >>>> >>> >>> >> >> >> -- >> Apache MRUnit - Unit testing MapReduce - >> http://incubator.apache.org/mrunit/ >> > > -- Apache MRUnit - Unit testing MapReduce - http://incubator.apache.org/mrunit/ +
Brock Noland 2012-07-29, 17:03
-
Re: Installation of full flume on window OSmardan Khan 2012-07-30, 10:55
Hi Brock
Thanks for reply. I have solved the problem of cygwin. Now i am getting another error message: Could not find or load main class of org.apache.flume.node.Application. I am running the following command: bin/flume-ng agent -n agent -c conf -f conf/flume-conf.properties.template Thanks On Sun, Jul 29, 2012 at 6:03 PM, Brock Noland <[EMAIL PROTECTED]> wrote: > Hi, > > Unfortunately I am not familiar with cygwin and don't have a windows > computer to test on. Hopefully someone else on the list has an insight. > > Brock > > > On Sun, Jul 29, 2012 at 11:27 AM, mardan Khan <[EMAIL PROTECTED]>wrote: > >> Thanks Brock. >> >> >> Now when i am run the command: 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. >> >> How to solve this problem. >> >> >> >> >> >> >> >> >> On Sun, Jul 29, 2012 at 4:41 PM, Brock Noland <[EMAIL PROTECTED]> wrote: >> >>> Hi, >>> >>> Inline >>> >>> On Sat, Jul 28, 2012 at 11:54 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >>> >>>> Hi Brock. >>>> >>>> Thanks for reply. I want to use the full flume as i have to upload the >>>> data into hdfs. I have installed the cygwin and hadoop. >>>> >>> >>> OK this is a great start. >>> >>> >>>> I have download the flume binary from the mentioned link. Now you >>>> please let me explain the follow: >>>> >>>> 1). I need just to decopress the downloaded folder? >>>> >>> >>> Yes you download a tar.gz which is like a zip. In cygwin you can use the >>> command tar -zxvf to untar it. >>> >>> >>>> 2). where i should decompress the flume binary. Should i decompress >>>> c:\cygwin\home\user-name >>>> >>> >>> Whereever you want, however a common place for "tarball" software is >>> /usr/local or /opt >>> >>> >>>> 3). How I will run the flume-ng. >>>> >>> >>> You configure flume and then run the flume-ng command in the bin >>> directory >>> >>> >>>> 4) The flume.conf file will configure same as configuring using Linux? >>>> >>>> >>> Yes configure flume will be the same as on Linux in cygwin. >>> >>>> >>>> >>>> Many thanks >>>> >>>> >>>> >>>> On Sun, Jul 29, 2012 at 4:20 AM, Brock Noland <[EMAIL PROTECTED]>wrote: >>>> >>>>> Hi, >>>>> >>>>> If you just want run a flume agent on Windows you just download the >>>>> binary here: http://flume.apache.org/download.html >>>>> >>>>> Note that the flume startup script is written in bash so unless you >>>>> use cygwin you'll need to start the JVM and setup the classpath yourself. >>>>> >>>>> Brock >>>>> >>>>> >>>>> On Sat, Jul 28, 2012 at 8:01 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I am struggling from couple of weeks to install and configure the >>>>>> flume1.x on windows but could not success. Could you please someone show me >>>>>> step-by-step how to install flume on window. I have read a couple of posts >>>>>> which mentioned the git and Maven but i dont understand how can use it to >>>>>> install the flume. >>>>>> >>>>>> Please help me as i am total stuck and running out of time. >>>>>> >>>>>> Thanks >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Apache MRUnit - Unit testing MapReduce - >>>>> http://incubator.apache.org/mrunit/ >>>>> >>>> >>>> >>> >>> >>> -- >>> Apache MRUnit - Unit testing MapReduce - >>> http://incubator.apache.org/mrunit/ >>> >> >> > > > -- > Apache MRUnit - Unit testing MapReduce - > http://incubator.apache.org/mrunit/ > +
mardan Khan 2012-07-30, 10:55
-
Re: Installation of full flume on window OSInder Pall 2012-07-30, 12:20
can you echo your CLASSPATH in the flume startup script.
- inder On Mon, Jul 30, 2012 at 4:25 PM, mardan Khan <[EMAIL PROTECTED]> wrote: > Hi Brock > > Thanks for reply. I have solved the problem of cygwin. Now i am getting > another error message: Could not find or load main class of > org.apache.flume.node.Application. > > I am running the following command: > > bin/flume-ng agent -n agent -c conf -f conf/flume-conf.properties.template > > Thanks > > > > On Sun, Jul 29, 2012 at 6:03 PM, Brock Noland <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> Unfortunately I am not familiar with cygwin and don't have a windows >> computer to test on. Hopefully someone else on the list has an insight. >> >> Brock >> >> >> On Sun, Jul 29, 2012 at 11:27 AM, mardan Khan <[EMAIL PROTECTED]>wrote: >> >>> Thanks Brock. >>> >>> >>> Now when i am run the command: 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. >>> >>> How to solve this problem. >>> >>> >>> >>> >>> >>> >>> >>> >>> On Sun, Jul 29, 2012 at 4:41 PM, Brock Noland <[EMAIL PROTECTED]>wrote: >>> >>>> Hi, >>>> >>>> Inline >>>> >>>> On Sat, Jul 28, 2012 at 11:54 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >>>> >>>>> Hi Brock. >>>>> >>>>> Thanks for reply. I want to use the full flume as i have to upload the >>>>> data into hdfs. I have installed the cygwin and hadoop. >>>>> >>>> >>>> OK this is a great start. >>>> >>>> >>>>> I have download the flume binary from the mentioned link. Now you >>>>> please let me explain the follow: >>>>> >>>>> 1). I need just to decopress the downloaded folder? >>>>> >>>> >>>> Yes you download a tar.gz which is like a zip. In cygwin you can use >>>> the command tar -zxvf to untar it. >>>> >>>> >>>>> 2). where i should decompress the flume binary. Should i decompress >>>>> c:\cygwin\home\user-name >>>>> >>>> >>>> Whereever you want, however a common place for "tarball" software is >>>> /usr/local or /opt >>>> >>>> >>>>> 3). How I will run the flume-ng. >>>>> >>>> >>>> You configure flume and then run the flume-ng command in the bin >>>> directory >>>> >>>> >>>>> 4) The flume.conf file will configure same as configuring using Linux? >>>>> >>>>> >>>> Yes configure flume will be the same as on Linux in cygwin. >>>> >>>>> >>>>> >>>>> Many thanks >>>>> >>>>> >>>>> >>>>> On Sun, Jul 29, 2012 at 4:20 AM, Brock Noland <[EMAIL PROTECTED]>wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> If you just want run a flume agent on Windows you just download the >>>>>> binary here: http://flume.apache.org/download.html >>>>>> >>>>>> Note that the flume startup script is written in bash so unless you >>>>>> use cygwin you'll need to start the JVM and setup the classpath yourself. >>>>>> >>>>>> Brock >>>>>> >>>>>> >>>>>> On Sat, Jul 28, 2012 at 8:01 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I am struggling from couple of weeks to install and configure the >>>>>>> flume1.x on windows but could not success. Could you please someone show me >>>>>>> step-by-step how to install flume on window. I have read a couple of posts >>>>>>> which mentioned the git and Maven but i dont understand how can use it to >>>>>>> install the flume. >>>>>>> >>>>>>> Please help me as i am total stuck and running out of time. >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Apache MRUnit - Unit testing MapReduce - >>>>>> http://incubator.apache.org/mrunit/ >>>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Apache MRUnit - Unit testing MapReduce - >>>> http://incubator.apache.org/mrunit/ >>>> >>> >>> >> >> >> -- >> Apache MRUnit - Unit testing MapReduce - >> http://incubator.apache.org/mrunit/ >> > > -- Thanks, - Inder Tech Platforms @Inmobi Linkedin - http://goo.gl/eR4Ub +
Inder Pall 2012-07-30, 12:20
-
Re: Installation of full flume on window OSmardan Khan 2012-07-30, 13:24
HI Inder,
Thanks for the reply. The following the snapshot of the prompt. Please let me know for the solution. Thanks On Mon, Jul 30, 2012 at 1:20 PM, Inder Pall <[EMAIL PROTECTED]> wrote: > can you echo your CLASSPATH in the flume startup script. > > - inder > > > On Mon, Jul 30, 2012 at 4:25 PM, mardan Khan <[EMAIL PROTECTED]> wrote: > >> Hi Brock >> >> Thanks for reply. I have solved the problem of cygwin. Now i am getting >> another error message: Could not find or load main class of >> org.apache.flume.node.Application. >> >> I am running the following command: >> >> bin/flume-ng agent -n agent -c conf -f conf/flume-conf.properties.template >> >> Thanks >> >> >> >> On Sun, Jul 29, 2012 at 6:03 PM, Brock Noland <[EMAIL PROTECTED]> wrote: >> >>> Hi, >>> >>> Unfortunately I am not familiar with cygwin and don't have a windows >>> computer to test on. Hopefully someone else on the list has an insight. >>> >>> Brock >>> >>> >>> On Sun, Jul 29, 2012 at 11:27 AM, mardan Khan <[EMAIL PROTECTED]>wrote: >>> >>>> Thanks Brock. >>>> >>>> >>>> Now when i am run the command: 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. >>>> >>>> How to solve this problem. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> On Sun, Jul 29, 2012 at 4:41 PM, Brock Noland <[EMAIL PROTECTED]>wrote: >>>> >>>>> Hi, >>>>> >>>>> Inline >>>>> >>>>> On Sat, Jul 28, 2012 at 11:54 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >>>>> >>>>>> Hi Brock. >>>>>> >>>>>> Thanks for reply. I want to use the full flume as i have to upload >>>>>> the data into hdfs. I have installed the cygwin and hadoop. >>>>>> >>>>> >>>>> OK this is a great start. >>>>> >>>>> >>>>>> I have download the flume binary from the mentioned link. Now you >>>>>> please let me explain the follow: >>>>>> >>>>>> 1). I need just to decopress the downloaded folder? >>>>>> >>>>> >>>>> Yes you download a tar.gz which is like a zip. In cygwin you can use >>>>> the command tar -zxvf to untar it. >>>>> >>>>> >>>>>> 2). where i should decompress the flume binary. Should i decompress >>>>>> c:\cygwin\home\user-name >>>>>> >>>>> >>>>> Whereever you want, however a common place for "tarball" software is >>>>> /usr/local or /opt >>>>> >>>>> >>>>>> 3). How I will run the flume-ng. >>>>>> >>>>> >>>>> You configure flume and then run the flume-ng command in the bin >>>>> directory >>>>> >>>>> >>>>>> 4) The flume.conf file will configure same as configuring using >>>>>> Linux? >>>>>> >>>>>> >>>>> Yes configure flume will be the same as on Linux in cygwin. >>>>> >>>>>> >>>>>> >>>>>> Many thanks >>>>>> >>>>>> >>>>>> >>>>>> On Sun, Jul 29, 2012 at 4:20 AM, Brock Noland <[EMAIL PROTECTED]>wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> If you just want run a flume agent on Windows you just download the >>>>>>> binary here: http://flume.apache.org/download.html >>>>>>> >>>>>>> Note that the flume startup script is written in bash so unless you >>>>>>> use cygwin you'll need to start the JVM and setup the classpath yourself. >>>>>>> >>>>>>> Brock >>>>>>> >>>>>>> >>>>>>> On Sat, Jul 28, 2012 at 8:01 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I am struggling from couple of weeks to install and configure the >>>>>>>> flume1.x on windows but could not success. Could you please someone show me >>>>>>>> step-by-step how to install flume on window. I have read a couple of posts >>>>>>>> which mentioned the git and Maven but i dont understand how can use it to >>>>>>>> install the flume. >>>>>>>> >>>>>>>> Please help me as i am total stuck and running out of time. >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Apache MRUnit - Unit testing MapReduce - >>>>>>> http://incubator.apache.org/mrunit/ >>>>>>> >>>> +
mardan Khan 2012-07-30, 13:24
-
Re: Installation of full flume on window OSmardan Khan 2012-07-30, 13:30
HI Inder,
Sorry for the previous email. Actually I past the snapshot directly into editor which convert into some noisy text. Please see the snapshot as attachment . Please let me know for any solution Thanks On Mon, Jul 30, 2012 at 1:20 PM, Inder Pall <[EMAIL PROTECTED]> wrote: > can you echo your CLASSPATH in the flume startup script. > > - inder > > > On Mon, Jul 30, 2012 at 4:25 PM, mardan Khan <[EMAIL PROTECTED]> wrote: > >> Hi Brock >> >> Thanks for reply. I have solved the problem of cygwin. Now i am getting >> another error message: Could not find or load main class of >> org.apache.flume.node.Application. >> >> I am running the following command: >> >> bin/flume-ng agent -n agent -c conf -f conf/flume-conf.properties.template >> >> Thanks >> >> >> >> On Sun, Jul 29, 2012 at 6:03 PM, Brock Noland <[EMAIL PROTECTED]> wrote: >> >>> Hi, >>> >>> Unfortunately I am not familiar with cygwin and don't have a windows >>> computer to test on. Hopefully someone else on the list has an insight. >>> >>> Brock >>> >>> >>> On Sun, Jul 29, 2012 at 11:27 AM, mardan Khan <[EMAIL PROTECTED]>wrote: >>> >>>> Thanks Brock. >>>> >>>> >>>> Now when i am run the command: 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. >>>> >>>> How to solve this problem. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> On Sun, Jul 29, 2012 at 4:41 PM, Brock Noland <[EMAIL PROTECTED]>wrote: >>>> >>>>> Hi, >>>>> >>>>> Inline >>>>> >>>>> On Sat, Jul 28, 2012 at 11:54 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >>>>> >>>>>> Hi Brock. >>>>>> >>>>>> Thanks for reply. I want to use the full flume as i have to upload >>>>>> the data into hdfs. I have installed the cygwin and hadoop. >>>>>> >>>>> >>>>> OK this is a great start. >>>>> >>>>> >>>>>> I have download the flume binary from the mentioned link. Now you >>>>>> please let me explain the follow: >>>>>> >>>>>> 1). I need just to decopress the downloaded folder? >>>>>> >>>>> >>>>> Yes you download a tar.gz which is like a zip. In cygwin you can use >>>>> the command tar -zxvf to untar it. >>>>> >>>>> >>>>>> 2). where i should decompress the flume binary. Should i decompress >>>>>> c:\cygwin\home\user-name >>>>>> >>>>> >>>>> Whereever you want, however a common place for "tarball" software is >>>>> /usr/local or /opt >>>>> >>>>> >>>>>> 3). How I will run the flume-ng. >>>>>> >>>>> >>>>> You configure flume and then run the flume-ng command in the bin >>>>> directory >>>>> >>>>> >>>>>> 4) The flume.conf file will configure same as configuring using >>>>>> Linux? >>>>>> >>>>>> >>>>> Yes configure flume will be the same as on Linux in cygwin. >>>>> >>>>>> >>>>>> >>>>>> Many thanks >>>>>> >>>>>> >>>>>> >>>>>> On Sun, Jul 29, 2012 at 4:20 AM, Brock Noland <[EMAIL PROTECTED]>wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> If you just want run a flume agent on Windows you just download the >>>>>>> binary here: http://flume.apache.org/download.html >>>>>>> >>>>>>> Note that the flume startup script is written in bash so unless you >>>>>>> use cygwin you'll need to start the JVM and setup the classpath yourself. >>>>>>> >>>>>>> Brock >>>>>>> >>>>>>> >>>>>>> On Sat, Jul 28, 2012 at 8:01 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I am struggling from couple of weeks to install and configure the >>>>>>>> flume1.x on windows but could not success. Could you please someone show me >>>>>>>> step-by-step how to install flume on window. I have read a couple of posts >>>>>>>> which mentioned the git and Maven but i dont understand how can use it to >>>>>>>> install the flume. >>>>>>>> >>>>>>>> Please help me as i am total stuck and running out of time. >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Apache MRUnit - Unit testing MapReduce - +
mardan Khan 2012-07-30, 13:30
-
Re: Installation of full flume on window OSInder Pall 2012-07-30, 13:40
Hey if you edit flume-ng script and just before java is invoked put an
echo $CLASSPATH that should help in figuring what all dir's are there in CLASSPATH. I am sorry but i am a big fan of windows hence don't run that O.S. to try it out. Thanks, - inder On Mon, Jul 30, 2012 at 7:00 PM, mardan Khan <[EMAIL PROTECTED]> wrote: > HI Inder, > > Sorry for the previous email. Actually I past the snapshot directly into > editor which convert into some noisy text. Please see the snapshot as > attachment . > > Please let me know for any solution > > Thanks > > > > > On Mon, Jul 30, 2012 at 1:20 PM, Inder Pall <[EMAIL PROTECTED]> wrote: > >> can you echo your CLASSPATH in the flume startup script. >> >> - inder >> >> >> On Mon, Jul 30, 2012 at 4:25 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >> >>> Hi Brock >>> >>> Thanks for reply. I have solved the problem of cygwin. Now i am getting >>> another error message: Could not find or load main class of >>> org.apache.flume.node.Application. >>> >>> I am running the following command: >>> >>> bin/flume-ng agent -n agent -c conf -f >>> conf/flume-conf.properties.template >>> >>> Thanks >>> >>> >>> >>> On Sun, Jul 29, 2012 at 6:03 PM, Brock Noland <[EMAIL PROTECTED]>wrote: >>> >>>> Hi, >>>> >>>> Unfortunately I am not familiar with cygwin and don't have a windows >>>> computer to test on. Hopefully someone else on the list has an insight. >>>> >>>> Brock >>>> >>>> >>>> On Sun, Jul 29, 2012 at 11:27 AM, mardan Khan <[EMAIL PROTECTED]>wrote: >>>> >>>>> Thanks Brock. >>>>> >>>>> >>>>> Now when i am run the command: 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. >>>>> >>>>> How to solve this problem. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Sun, Jul 29, 2012 at 4:41 PM, Brock Noland <[EMAIL PROTECTED]>wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> Inline >>>>>> >>>>>> On Sat, Jul 28, 2012 at 11:54 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >>>>>> >>>>>>> Hi Brock. >>>>>>> >>>>>>> Thanks for reply. I want to use the full flume as i have to upload >>>>>>> the data into hdfs. I have installed the cygwin and hadoop. >>>>>>> >>>>>> >>>>>> OK this is a great start. >>>>>> >>>>>> >>>>>>> I have download the flume binary from the mentioned link. Now you >>>>>>> please let me explain the follow: >>>>>>> >>>>>>> 1). I need just to decopress the downloaded folder? >>>>>>> >>>>>> >>>>>> Yes you download a tar.gz which is like a zip. In cygwin you can use >>>>>> the command tar -zxvf to untar it. >>>>>> >>>>>> >>>>>>> 2). where i should decompress the flume binary. Should i decompress >>>>>>> c:\cygwin\home\user-name >>>>>>> >>>>>> >>>>>> Whereever you want, however a common place for "tarball" software is >>>>>> /usr/local or /opt >>>>>> >>>>>> >>>>>>> 3). How I will run the flume-ng. >>>>>>> >>>>>> >>>>>> You configure flume and then run the flume-ng command in the bin >>>>>> directory >>>>>> >>>>>> >>>>>>> 4) The flume.conf file will configure same as configuring using >>>>>>> Linux? >>>>>>> >>>>>>> >>>>>> Yes configure flume will be the same as on Linux in cygwin. >>>>>> >>>>>>> >>>>>>> >>>>>>> Many thanks >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Sun, Jul 29, 2012 at 4:20 AM, Brock Noland <[EMAIL PROTECTED]>wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> If you just want run a flume agent on Windows you just download the >>>>>>>> binary here: http://flume.apache.org/download.html >>>>>>>> >>>>>>>> Note that the flume startup script is written in bash so unless you >>>>>>>> use cygwin you'll need to start the JVM and setup the classpath yourself. >>>>>>>> >>>>>>>> Brock >>>>>>>> >>>>>>>> >>>>>>>> On Sat, Jul 28, 2012 at 8:01 PM, mardan Khan <[EMAIL PROTECTED]>wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I am struggling from couple of weeks to install and configure the Thanks, - Inder Tech Platforms @Inmobi Linkedin - http://goo.gl/eR4Ub +
Inder Pall 2012-07-30, 13:40
-
Re: Installation of full flume on window OSmardan Khan 2012-07-30, 13:53
Thanks Inder,
when I am running the $echo $CLASSPATH, I am just getting . (dot) and nothing more. Please see below the flume-ng files. Can you just pointout where I should put echo$CLASSPATH. Thanks CLEAN_FLAG=1 ################################ # functions ################################ info() { if [ ${CLEAN_FLAG} -ne 0 ]; then local msg=$1 echo "Info: $msg" >&2 fi } warn() { if [ ${CLEAN_FLAG} -ne 0 ]; then local msg=$1 echo "Warning: $msg" >&2 fi } error() { local msg=$1 local exit_code=$2 echo "Error: $msg" >&2 if [ -n "$exit_code" ] ; then exit $exit_code fi } # If avail, add Hadoop paths to the FLUME_CLASSPATH and to the # FLUME_JAVA_LIBRARY_PATH env vars. # Requires Flume jars to already be on FLUME_CLASSPATH. add_hadoop_paths() { local HADOOP_IN_PATH=$(PATH="${HADOOP_HOME:-${HADOOP_PREFIX}}/bin:$PATH" \ which hadoop 2>/dev/null) if [ -f "${HADOOP_IN_PATH}" ]; then info "Including Hadoop libraries found via ($HADOOP_IN_PATH) for HDFS access" # determine hadoop java.library.path and use that for flume local HADOOP_CLASSPATH="" local HADOOP_JAVA_LIBRARY_PATH=$(HADOOP_CLASSPATH="$FLUME_CLASSPATH" \ ${HADOOP_IN_PATH} org.apache.flume.tools.GetJavaProperty \ java.library.path 2>/dev/null) # look for the line that has the desired property value # (considering extraneous output from some GC options that write to stdout) # IFS = InternalFieldSeparator (set to recognize only newline char as delimiter) IFS=$'\n' for line in $HADOOP_JAVA_LIBRARY_PATH; do if [[ $line =~ ^java\.library\.path=(.*)$ ]]; then HADOOP_JAVA_LIBRARY_PATH=${BASH_REMATCH[1]} break fi done unset IFS if [ -n "${HADOOP_JAVA_LIBRARY_PATH}" ]; then FLUME_JAVA_LIBRARY_PATH="$FLUME_JAVA_LIBRARY_PATH:$HADOOP_JAVA_LIBRARY_PATH" fi # determine hadoop classpath HADOOP_CLASSPATH=$($HADOOP_IN_PATH classpath 2>/dev/null) # hack up and filter hadoop classpath local ELEMENTS=$(sed -e 's/:/ /g' <<<${HADOOP_CLASSPATH}) local ELEMENT for ELEMENT in $ELEMENTS; do local PIECE for PIECE in $(echo $ELEMENT); do if [[ $PIECE =~ slf4j-(api|log4j12).*\.jar ]]; then info "Excluding $PIECE from classpath" continue else FLUME_CLASSPATH="$FLUME_CLASSPATH:$PIECE" fi done done fi } add_HBASE_paths() { local HBASE_IN_PATH=$(PATH="${HBASE_HOME}/bin:$PATH" \ which hbase 2>/dev/null) if [ -f "${HBASE_IN_PATH}" ]; then info "Including HBASE libraries found via ($HBASE_IN_PATH) for HBASE access" # determine HBASE java.library.path and use that for flume local HBASE_CLASSPATH="" local HBASE_JAVA_LIBRARY_PATH=$(HBASE_CLASSPATH="$FLUME_CLASSPATH" \ ${HBASE_IN_PATH} org.apache.flume.tools.GetJavaProperty \ java.library.path 2>/dev/null) # look for the line that has the desired property value # (considering extraneous output from some GC options that write to stdout) # IFS = InternalFieldSeparator (set to recognize only newline char as delimiter) IFS=$'\n' for line in $HBASE_JAVA_LIBRARY_PATH; do if [[ $line =~ ^java\.library\.path=(.*)$ ]]; then HBASE_JAVA_LIBRARY_PATH=${BASH_REMATCH[1]} break fi done unset IFS if [ -n "${HBASE_JAVA_LIBRARY_PATH}" ]; then FLUME_JAVA_LIBRARY_PATH="$FLUME_JAVA_LIBRARY_PATH:$HBASE_JAVA_LIBRARY_PATH" fi # determine HBASE classpath HBASE_CLASSPATH=$($HBASE_IN_PATH classpath 2>/dev/null) # hack up and filter HBASE classpath local ELEMENTS=$(sed -e 's/:/ /g' <<<${HBASE_CLASSPATH}) local ELEMENT for ELEMENT in $ELEMENTS; do local PIECE for PIECE in $(echo $ELEMENT); do if [[ $PIECE =~ slf4j-(api|log4j12).*\.jar ]]; then info "Excluding $PIECE from classpath" continue else FLUME_CLASSPATH="$FLUME_CLASSPATH:$PIECE" fi done done FLUME_CLASSPATH="$FLUME_CLASSPATH:$HBASE_HOME/conf" fi } display_help() { cat <<EOF Usage: $0 <command> [options]... commands: help display this help text agent run a Flume agent avro-client run an avro Flume client version show Flume version info global options: --conf,-c <conf> use configs in <conf> directory --classpath,-C <cp> append to the classpath --dryrun,-d do not actually start Flume, just print the command -Dproperty=value sets a JDK system property value agent options: --conf-file,-f <file> specify a config file (required) --name,-n <name> the name of this agent (required) --help,-h display help text avro-client options: --host,-H <host> hostname to which events will be sent (required) --port,-p <port> port of the avro source (required) --filename,-F <file> text file to stream to avro source [default: std input] --headerFile,-R <file> headerFile containing headers as key/value pairs on each new line --help,-h display help text Note that if <conf> directory is specified, then it is always included first in the classpath. EOF } run_flume() { local FLUME_APPLICATION_CLASS if [ "$#" -gt 0 ]; then FLUME_APPLICATION_CLASS=$1 shift else error "Must specify flume application class" 1 fi if [ ${CLEAN_FLAG} -ne 0 ]; then set -x fi $EXEC $JAVA_HOME/bin/java $JAVA_OPTS -cp "$FLUME_CLASSPATH" \ -Djava.library.path=$FLUME_JAVA_LIBRARY_PATH "$FLUME_APPLICATION_CLASS" $* } ################################ # main ################################ # set default params FLUME_CLASSPATH="" FLUME_JAVA_LIBRARY_PATH="" JAVA_OPTS="-Xmx20m" opt_conf="" opt_classpath="" opt_java_props="" opt_dryrun="" mode=$1 shift case "$mode" in help) display_help exit 0 ;; agent) opt_agent=1 ;; node) opt_agent=1 warn "The \"node\" c +
mardan Khan 2012-07-30, 13:53
-
Re: Installation of full flume on window OSInder Pall 2012-07-30, 14:02
That's the problem. I am not well versed with this script to fix on WIN but
i guess as a workaround you might want to add $FLUME_INSTALL_DIR/lib/. this lib has all the required jars and should get you moving forward. Mind, filing a JIRA for the same. - inder On Mon, Jul 30, 2012 at 7:23 PM, mardan Khan <[EMAIL PROTECTED]> wrote: > Thanks Inder, > > when I am running the $echo $CLASSPATH, I am just getting . (dot) and > nothing more. > > Please see below the flume-ng files. Can you just pointout where I should > put echo$CLASSPATH. > > Thanks > > > CLEAN_FLAG=1 > ################################ > # functions > ################################ > > info() { > if [ ${CLEAN_FLAG} -ne 0 ]; then > local msg=$1 > echo "Info: $msg" >&2 > fi > } > > warn() { > if [ ${CLEAN_FLAG} -ne 0 ]; then > local msg=$1 > echo "Warning: $msg" >&2 > fi > } > > error() { > local msg=$1 > local exit_code=$2 > > echo "Error: $msg" >&2 > > if [ -n "$exit_code" ] ; then > exit $exit_code > fi > } > > # If avail, add Hadoop paths to the FLUME_CLASSPATH and to the > # FLUME_JAVA_LIBRARY_PATH env vars. > # Requires Flume jars to already be on FLUME_CLASSPATH. > add_hadoop_paths() { > local HADOOP_IN_PATH=$(PATH="${HADOOP_HOME:-${HADOOP_PREFIX}}/bin:$PATH" > \ > which hadoop 2>/dev/null) > > if [ -f "${HADOOP_IN_PATH}" ]; then > info "Including Hadoop libraries found via ($HADOOP_IN_PATH) for HDFS > access" > > # determine hadoop java.library.path and use that for flume > local HADOOP_CLASSPATH="" > local HADOOP_JAVA_LIBRARY_PATH=$(HADOOP_CLASSPATH="$FLUME_CLASSPATH" \ > ${HADOOP_IN_PATH} org.apache.flume.tools.GetJavaProperty \ > java.library.path 2>/dev/null) > > # look for the line that has the desired property value > # (considering extraneous output from some GC options that write to > stdout) > # IFS = InternalFieldSeparator (set to recognize only newline char as > delimiter) > IFS=$'\n' > for line in $HADOOP_JAVA_LIBRARY_PATH; do > if [[ $line =~ ^java\.library\.path=(.*)$ ]]; then > HADOOP_JAVA_LIBRARY_PATH=${BASH_REMATCH[1]} > break > fi > done > unset IFS > > if [ -n "${HADOOP_JAVA_LIBRARY_PATH}" ]; then > > FLUME_JAVA_LIBRARY_PATH="$FLUME_JAVA_LIBRARY_PATH:$HADOOP_JAVA_LIBRARY_PATH" > fi > > # determine hadoop classpath > HADOOP_CLASSPATH=$($HADOOP_IN_PATH classpath 2>/dev/null) > > # hack up and filter hadoop classpath > local ELEMENTS=$(sed -e 's/:/ /g' <<<${HADOOP_CLASSPATH}) > local ELEMENT > for ELEMENT in $ELEMENTS; do > local PIECE > for PIECE in $(echo $ELEMENT); do > if [[ $PIECE =~ slf4j-(api|log4j12).*\.jar ]]; then > info "Excluding $PIECE from classpath" > continue > else > FLUME_CLASSPATH="$FLUME_CLASSPATH:$PIECE" > fi > done > done > > fi > } > add_HBASE_paths() { > local HBASE_IN_PATH=$(PATH="${HBASE_HOME}/bin:$PATH" \ > which hbase 2>/dev/null) > > if [ -f "${HBASE_IN_PATH}" ]; then > info "Including HBASE libraries found via ($HBASE_IN_PATH) for HBASE > access" > > # determine HBASE java.library.path and use that for flume > local HBASE_CLASSPATH="" > local HBASE_JAVA_LIBRARY_PATH=$(HBASE_CLASSPATH="$FLUME_CLASSPATH" \ > ${HBASE_IN_PATH} org.apache.flume.tools.GetJavaProperty \ > java.library.path 2>/dev/null) > > # look for the line that has the desired property value > # (considering extraneous output from some GC options that write to > stdout) > # IFS = InternalFieldSeparator (set to recognize only newline char as > delimiter) > IFS=$'\n' > for line in $HBASE_JAVA_LIBRARY_PATH; do > if [[ $line =~ ^java\.library\.path=(.*)$ ]]; then > HBASE_JAVA_LIBRARY_PATH=${BASH_REMATCH[1]} > break > fi > done > unset IFS > > if [ -n "${HBASE_JAVA_LIBRARY_PATH}" ]; then > > FLUME_JAVA_LIBRARY_PATH="$FLUME_JAVA_LIBRARY_PATH:$HBASE_JAVA_LIBRARY_PATH" Thanks, - Inder Tech Platforms @Inmobi Linkedin - http://goo.gl/eR4Ub +
Inder Pall 2012-07-30, 14:02
-
Re: Installation of full flume on window OSalo alt 2012-07-30, 14:20
I think we have two different conversations about the same topic. I
reply here. Thats not an issue of a env script in windows, because we haven't one so far. You may need to cp (Classpath) the flume - libs as Inder says. As I wrote in my howto: As example, starting from inside of your flume-installation (the directory where you unzip'ed the build), lets assume D:\apache-flume: d:\apache flume > "PATH\to\java.exe" -Xmx20m -Dlog4j.configuration=file:///%CD%\conf\log4j.properties -cp "d:\apache-flume\flume-1.3.0-SNAPSHOT\lib\*" org.apache.flume.node.Application -f d:\flume\flume-1.3.0-SNAPSHOT\conf\YOUR_CONFIG.conf -n agent Please be sure, that the lib-directory from flume is in place as well in the CLASSPATH (cp). - Alex > Inder Pall <mailto:[EMAIL PROTECTED]> > July 30, 2012 4:02 PM > That's the problem. I am not well versed with this script to fix on > WIN but i guess as a workaround you might want to add > $FLUME_INSTALL_DIR/lib/. this lib has all the required jars and should > get you moving forward. > > Mind, filing a JIRA for the same. > > - inder > > > > > -- > Thanks, > - Inder > Tech Platforms @Inmobi > Linkedin - http://goo.gl/eR4Ub > mardan Khan <mailto:[EMAIL PROTECTED]> > July 30, 2012 3:53 PM > Thanks Inder, > > when I am running the $echo $CLASSPATH, I am just getting . (dot) and > nothing more. > > Please see below the flume-ng files. Can you just pointout where I > should put echo$CLASSPATH. > > Thanks > > > CLEAN_FLAG=1 > ################################ > # functions > ################################ > > info() { > if [ ${CLEAN_FLAG} -ne 0 ]; then > local msg=$1 > echo "Info: $msg" >&2 > fi > } > > warn() { > if [ ${CLEAN_FLAG} -ne 0 ]; then > local msg=$1 > echo "Warning: $msg" >&2 > fi > } > > error() { > local msg=$1 > local exit_code=$2 > > echo "Error: $msg" >&2 > > if [ -n "$exit_code" ] ; then > exit $exit_code > fi > } > > # If avail, add Hadoop paths to the FLUME_CLASSPATH and to the > # FLUME_JAVA_LIBRARY_PATH env vars. > # Requires Flume jars to already be on FLUME_CLASSPATH. > add_hadoop_paths() { > local > HADOOP_IN_PATH=$(PATH="${HADOOP_HOME:-${HADOOP_PREFIX}}/bin:$PATH" \ > which hadoop 2>/dev/null) > > if [ -f "${HADOOP_IN_PATH}" ]; then > info "Including Hadoop libraries found via ($HADOOP_IN_PATH) for > HDFS access" > > # determine hadoop java.library.path and use that for flume > local HADOOP_CLASSPATH="" > local HADOOP_JAVA_LIBRARY_PATH=$(HADOOP_CLASSPATH="$FLUME_CLASSPATH" \ > ${HADOOP_IN_PATH} org.apache.flume.tools.GetJavaProperty \ > java.library.path 2>/dev/null) > > # look for the line that has the desired property value > # (considering extraneous output from some GC options that write > to stdout) > # IFS = InternalFieldSeparator (set to recognize only newline char > as delimiter) > IFS=$'\n' > for line in $HADOOP_JAVA_LIBRARY_PATH; do > if [[ $line =~ ^java\.library\.path=(.*)$ ]]; then > HADOOP_JAVA_LIBRARY_PATH=${BASH_REMATCH[1]} > break > fi > done > unset IFS > > if [ -n "${HADOOP_JAVA_LIBRARY_PATH}" ]; then > > FLUME_JAVA_LIBRARY_PATH="$FLUME_JAVA_LIBRARY_PATH:$HADOOP_JAVA_LIBRARY_PATH" > fi > > # determine hadoop classpath > HADOOP_CLASSPATH=$($HADOOP_IN_PATH classpath 2>/dev/null) > > # hack up and filter hadoop classpath > local ELEMENTS=$(sed -e 's/:/ /g' <<<${HADOOP_CLASSPATH}) > local ELEMENT > for ELEMENT in $ELEMENTS; do > local PIECE > for PIECE in $(echo $ELEMENT); do > if [[ $PIECE =~ slf4j-(api|log4j12).*\.jar ]]; then > info "Excluding $PIECE from classpath" > continue > else > FLUME_CLASSPATH="$FLUME_CLASSPATH:$PIECE" > fi > done > done > > fi > } > add_HBASE_paths() { > local HBASE_IN_PATH=$(PATH="${HBASE_HOME}/bin:$PATH" \ > which hbase 2>/dev/null) > > if [ -f "${HBASE_IN_PATH}" ]; then +
alo alt 2012-07-30, 14:20
-
Re: Installation of full flume on window OSmardan Khan 2012-07-30, 14:44
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. On Mon, Jul 30, 2012 at 3:20 PM, alo alt <[EMAIL PROTECTED]> wrote: > I think we have two different conversations about the same topic. I reply > here. > > Thats not an issue of a env script in windows, because we haven't one so > far. You may need to cp (Classpath) the flume - libs as Inder says. > As I wrote in my howto: > > As example, starting from inside of your flume-installation (the directory > where you unzip'ed the build), lets assume D:\apache-flume: > d:\apache flume > "PATH\to\java.exe" -Xmx20m -Dlog4j.configuration=file:///%CD%\conf\log4j.properties > -cp "d:\apache-flume\flume-1.3.0-SNAPSHOT\lib\*" > org.apache.flume.node.Application -f d:\flume\flume-1.3.0-SNAPSHOT\conf\YOUR_CONFIG.conf > -n agent > > Please be sure, that the lib-directory from flume is in place as well in > the CLASSPATH (cp). > > - Alex > > Inder Pall <[EMAIL PROTECTED]> > July 30, 2012 4:02 PM > That's the problem. I am not well versed with this script to fix on WIN > but i guess as a workaround you might want to add $FLUME_INSTALL_DIR/lib/. > this lib has all the required jars and should get you moving forward. > > Mind, filing a JIRA for the same. > > - inder > > > > > -- > Thanks, > - Inder > Tech Platforms @Inmobi > Linkedin - http://goo.gl/eR4Ub > mardan Khan <[EMAIL PROTECTED]> > July 30, 2012 3:53 PM > Thanks Inder, > > when I am running the $echo $CLASSPATH, I am just getting . (dot) and > nothing more. > > Please see below the flume-ng files. Can you just pointout where I should > put echo$CLASSPATH. > > Thanks > > > CLEAN_FLAG=1 > ################################ > # functions > ################################ > > info() { > if [ ${CLEAN_FLAG} -ne 0 ]; then > local msg=$1 > echo "Info: $msg" >&2 > fi > } > > warn() { > if [ ${CLEAN_FLAG} -ne 0 ]; then > local msg=$1 > echo "Warning: $msg" >&2 > fi > } > > error() { > local msg=$1 > local exit_code=$2 > > echo "Error: $msg" >&2 > > if [ -n "$exit_code" ] ; then > exit $exit_code > fi > } > > # If avail, add Hadoop paths to the FLUME_CLASSPATH and to the > # FLUME_JAVA_LIBRARY_PATH env vars. > # Requires Flume jars to already be on FLUME_CLASSPATH. > add_hadoop_paths() { > local HADOOP_IN_PATH=$(PATH="${HADOOP_HOME:-${HADOOP_PREFIX}}/bin:$PATH" > \ > which hadoop 2>/dev/null) > > if [ -f "${HADOOP_IN_PATH}" ]; then > info "Including Hadoop libraries found via ($HADOOP_IN_PATH) for HDFS > access" > > # determine hadoop java.library.path and use that for flume > local HADOOP_CLASSPATH="" > local HADOOP_JAVA_LIBRARY_PATH=$(HADOOP_CLASSPATH="$FLUME_CLASSPATH" \ > ${HADOOP_IN_PATH} org.apache.flume.tools.GetJavaProperty \ > java.library.path 2>/dev/null) > > # look for the line that has the desired property value > # (considering extraneous output from some GC options that write to > stdout) > # IFS = InternalFieldSeparator (set to recognize only newline char as > delimiter) > IFS=$'\n' > for line in $HADOOP_JAVA_LIBRARY_PATH; do > if [[ $line =~ ^java\.library\.path=(.*)$ ]]; then +
mardan Khan 2012-07-30, 14:44
-
Re: Installation of full flume on window OSalo alt 2012-07-30, 14:58
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 > mardan Khan <mailto:[EMAIL PROTECTED]> > 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. > > > > > alo alt <mailto:[EMAIL PROTECTED]> > July 30, 2012 4:20 PM > I think we have two different conversations about the same topic. I > reply here. > > Thats not an issue of a env script in windows, because we haven't one > so far. You may need to cp (Classpath) the flume - libs as Inder says. > As I wrote in my howto: > > As example, starting from inside of your flume-installation (the > directory where you unzip'ed the build), lets assume D:\apache-flume: > d:\apache flume > "PATH\to\java.exe" -Xmx20m > -Dlog4j.configuration=file:///%CD%\conf\log4j.properties -cp > "d:\apache-flume\flume-1.3.0-SNAPSHOT\lib\*" > org.apache.flume.node.Application -f > d:\flume\flume-1.3.0-SNAPSHOT\conf\YOUR_CONFIG.conf -n agent > > Please be sure, that the lib-directory from flume is in place as well > in the CLASSPATH (cp). > > - Alex > Inder Pall <mailto:[EMAIL PROTECTED]> > July 30, 2012 4:02 PM > That's the problem. I am not well versed with this script to fix on > WIN but i guess as a workaround you might want to add > $FLUME_INSTALL_DIR/lib/. this lib has all the required jars and should > get you moving forward. > > Mind, filing a JIRA for the same. > > - inder > > > > > -- > Thanks, > - Inder > Tech Platforms @Inmobi > Linkedin - http://goo.gl/eR4Ub > mardan Khan <mailto:[EMAIL PROTECTED]> > July 30, 2012 3:53 PM > Thanks Inder, > > when I am running the $echo $CLASSPATH, I am just getting . (dot) and > nothing more. > > Please see below the flume-ng files. Can you just pointout where I > should put echo$CLASSPATH. > > Thanks > > > CLEAN_FLAG=1 > ################################ > # functions > ################################ > > info() { > if [ ${CLEAN_FLAG} -ne 0 ]; then > local msg=$1 > echo "Info: $msg" >&2 > fi > } > > warn() { > if [ ${CLEAN_FLAG} -ne 0 ]; then > local msg=$1 > echo "Warning: $msg" >&2 > fi > } > > error() { > local msg=$1 > local exit_code=$2 > > echo "Error: $msg" >&2 > > if [ -n "$exit_code" ] ; then > exit $exit_code > fi > } > > # If avail, add Hadoop paths to the FLUME_CLASSPATH and to the > # FLUME_JAVA_LIBRARY_PATH env vars. > # Requires Flume jars to already be on FLUME_CLASSPATH. > add_hadoop_paths() { > local > HADOOP_IN_PATH=$(PATH="${HADOOP_HOME:-${HADOOP_PREFIX}}/bin:$PATH" \ > which hadoop 2>/dev/null) > > if [ -f "${HADOOP_IN_PATH}" ]; then > info "Including Hadoop libraries found via ($HADOOP_IN_PATH) for > HDFS access" > > # determine hadoop java.library.path and use that for flume > local HADOOP_CLASSPATH="" +
alo alt 2012-07-30, 14:58
-
Re: Installation of full flume on window OSmardan Khan 2012-07-30, 15:48
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 On Mon, Jul 30, 2012 at 3:58 PM, alo alt <[EMAIL PROTECTED]> wrote: > 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 > > > > mardan Khan <[EMAIL PROTECTED]> > 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. > > > > > alo alt <[EMAIL PROTECTED]> > July 30, 2012 4:20 PM > I think we have two different conversations about the same topic. I reply > here. > > Thats not an issue of a env script in windows, because we haven't one so > far. You may need to cp (Classpath) the flume - libs as Inder says. > As I wrote in my howto: > > As example, starting from inside of your flume-installation (the directory > where you unzip'ed the build), lets assume D:\apache-flume: > d:\apache flume > "PATH\to\java.exe" -Xmx20m -Dlog4j.configuration=file:///%CD%\conf\log4j.properties > -cp "d:\apache-flume\flume-1.3.0-SNAPSHOT\lib\*" > org.apache.flume.node.Application -f d:\flume\flume-1.3.0-SNAPSHOT\conf\YOUR_CONFIG.conf > -n agent > > Please be sure, that the lib-directory from flume is in place as well in > the CLASSPATH (cp). > > - Alex > Inder Pall <[EMAIL PROTECTED]> > July 30, 2012 4:02 PM > That's the problem. I am not well versed with this script to fix on WIN > but i guess as a workaround you might want to add $FLUME_INSTALL_DIR/lib/. > this lib has all the required jars and should get you moving forward. > > Mind, filing a JIRA for the same. > > - inder > > > > > -- > Thanks, > - Inder > Tech Platforms @Inmobi > Linkedin - http://goo.gl/eR4Ub > mardan Khan <[EMAIL PROTECTED]> > July 30, 2012 3:53 PM > Thanks Inder, > > when I am running the $echo $CLASSPATH, I am just getting . (dot) and > nothing more. > > Please see below the flume-ng files. Can you just pointout where I should > put echo$CLASSPATH. > > Thanks > > > CLEAN_FLAG=1 > ################################ > # functions > ################################ > > info() { > if [ ${CLEAN_FLAG} -ne 0 ]; then > local msg=$1 > echo "Info: $msg" >&2 > fi > } > > warn() { > if [ ${CLEAN_FLAG} -ne 0 ]; then > local msg=$1 > echo "Warning: $msg" >&2 > fi > } > > error() { > local msg=$1 > local exit_code=$2 > > echo "Error: $msg" >&2 > > if [ -n "$exit_code" ] ; then > exit $exit_code > fi > } > > # If avail, add Hadoop paths to the FLUME_CLASSPATH and to the > # FLUME_JAVA_LIBRARY_PATH env vars. > # Requires Flume jars to already be on FLUME_CLASSPATH. > add_hadoop_paths() { +
mardan Khan 2012-07-30, 15:48
-
Re: Installation of full flume on window OSGumnaam Sur 2012-07-30, 16:19
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 On Mon, Jul 30, 2012 at 11:48 AM, mardan Khan <[EMAIL PROTECTED]> wrote: > 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 > > > > On Mon, Jul 30, 2012 at 3:58 PM, alo alt <[EMAIL PROTECTED]> wrote: > >> 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 >> >> >> >> mardan Khan <[EMAIL PROTECTED]> >> 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. >> >> >> >> >> alo alt <[EMAIL PROTECTED]> >> July 30, 2012 4:20 PM >> I think we have two different conversations about the same topic. I >> reply here. >> >> Thats not an issue of a env script in windows, because we haven't one so >> far. You may need to cp (Classpath) the flume - libs as Inder says. >> As I wrote in my howto: >> >> As example, starting from inside of your flume-installation (the >> directory where you unzip'ed the build), lets assume D:\apache-flume: >> d:\apache flume > "PATH\to\java.exe" -Xmx20m -Dlog4j.configuration=file:///%CD%\conf\log4j.properties >> -cp "d:\apache-flume\flume-1.3.0-SNAPSHOT\lib\*" >> org.apache.flume.node.Application -f d:\flume\flume-1.3.0-SNAPSHOT\conf\YOUR_CONFIG.conf >> -n agent >> >> Please be sure, that the lib-directory from flume is in place as well in >> the CLASSPATH (cp). >> >> - Alex >> Inder Pall <[EMAIL PROTECTED]> >> July 30, 2012 4:02 PM >> That's the problem. I am not well versed with this script to fix on WIN >> but i guess as a workaround you might want to add $FLUME_INSTALL_DIR/lib/. >> this lib has all the required jars and should get you moving forward. >> >> Mind, filing a JIRA for the same. >> >> - inder >> >> >> >> >> -- >> Thanks, >> - Inder >> Tech Platforms @Inmobi >> Linkedin - http://goo.gl/eR4Ub >> mardan Khan <[EMAIL PROTECTED]> >> July 30, 2012 3:53 PM >> Thanks Inder, >> >> when I am running the $echo $CLASSPATH, I am just getting . (dot) and >> nothing more. >> >> Please see below the flume-ng files. Can you just pointout where I should >> put echo$CLASSPATH. >> >> Thanks >> >> >> CLEAN_FLAG=1 >> ################################ >> # functions >> ################################ >> >> info() { >> if [ ${CLEAN_FLAG} -ne 0 ]; then +
Gumnaam Sur 2012-07-30, 16:19
-
Re: Installation of full flume on window OSGumnaam Sur 2012-07-30, 16:27
Here's the second ver.
The earlier ver. was not killable from command-line via <Ctrl-C>, This one is :). On Mon, Jul 30, 2012 at 12:19 PM, Gumnaam Sur <[EMAIL PROTECTED]> wrote: > 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 > > On Mon, Jul 30, 2012 at 11:48 AM, mardan Khan <[EMAIL PROTECTED]>wrote: > >> 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 >> >> >> >> On Mon, Jul 30, 2012 at 3:58 PM, alo alt <[EMAIL PROTECTED]> wrote: >> >>> 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 >>> >>> >>> >>> mardan Khan <[EMAIL PROTECTED]> >>> 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. >>> >>> >>> >>> >>> alo alt <[EMAIL PROTECTED]> >>> July 30, 2012 4:20 PM >>> I think we have two different conversations about the same topic. I >>> reply here. >>> >>> Thats not an issue of a env script in windows, because we haven't one so >>> far. You may need to cp (Classpath) the flume - libs as Inder says. >>> As I wrote in my howto: >>> >>> As example, starting from inside of your flume-installation (the >>> directory where you unzip'ed the build), lets assume D:\apache-flume: >>> d:\apache flume > "PATH\to\java.exe" -Xmx20m -Dlog4j.configuration=file:///%CD%\conf\log4j.properties >>> -cp "d:\apache-flume\flume-1.3.0-SNAPSHOT\lib\*" >>> org.apache.flume.node.Application -f d:\flume\flume-1.3.0-SNAPSHOT\conf\YOUR_CONFIG.conf >>> -n agent >>> >>> Please be sure, that the lib-directory from flume is in place as well in >>> the CLASSPATH (cp). >>> >>> - Alex >>> Inder Pall <[EMAIL PROTECTED]> >>> July 30, 2012 4:02 PM >>> That's the problem. I am not well versed with this script to fix on WIN >>> but i guess as a workaround you might want to add $FLUME_INSTALL_DIR/lib/. >>> this lib has all the required jars and should get you moving forward. >>> >>> Mind, filing a JIRA for the same. >>> >>> - inder >>> >>> >>> >>> >>> -- >>> Thanks, >>> - Inder >>> Tech Platforms @Inmobi >>> Linkedin - http://goo.gl/eR4Ub >>> mardan Khan <[EMAIL PROTECTED]> >>> July 30, 2012 3:53 PM >>> Thanks Inder, >>> >>> when I am running the $echo $CLASSPATH, I am just getting . (dot) and +
Gumnaam Sur 2012-07-30, 16:27
-
Re: Installation of full flume on window OSalo alt 2012-07-30, 16:42
Hi Gumnaam,
Could you provide the script for native windows? Would be a good step to a native windows agent. cheers, Alex > Gumnaam Sur <mailto:[EMAIL PROTECTED]> > 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 :). > > > > Gumnaam Sur <mailto:[EMAIL PROTECTED]> > 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 > > > mardan Khan <mailto:[EMAIL PROTECTED]> > 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 > andapache-flume-1.2.0-src.tar. > > I have copied the apache-flume-1.2.0-dist.tar and unpacked into > d:\apache-flume. > > Thanks > > > > alo alt <mailto:[EMAIL PROTECTED]> > 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 > > > > mardan Khan <mailto:[EMAIL PROTECTED]> > 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. > > > > +
alo alt 2012-07-30, 16:42
-
Re: Installation of full flume on window OSGumnaam Sur 2012-07-30, 17:50
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 <[EMAIL PROTECTED]> wrote: > Hi Gumnaam, > > Could you provide the script for native windows? Would be a good step to a > native windows agent. > > cheers, > Alex > > Gumnaam Sur <[EMAIL PROTECTED]> > 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 :). > > > > Gumnaam Sur <[EMAIL PROTECTED]> > 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 > > > mardan Khan <[EMAIL PROTECTED]> > 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 > > > > alo alt <[EMAIL PROTECTED]> > 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 > > > > mardan Khan <[EMAIL PROTECTED]> > 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. > > > > > +
Gumnaam Sur 2012-07-30, 17:50
-
Re: Installation of full flume on window OSmardan Khan 2012-07-30, 19:42
Thanks, I will wait.
On Mon, Jul 30, 2012 at 6:50 PM, Gumnaam Sur <[EMAIL PROTECTED]> wrote: > 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 <[EMAIL PROTECTED]> wrote: > >> Hi Gumnaam, >> >> Could you provide the script for native windows? Would be a good step to >> a native windows agent. >> >> cheers, >> Alex >> >> Gumnaam Sur <[EMAIL PROTECTED]> >> 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 :). >> >> >> >> Gumnaam Sur <[EMAIL PROTECTED]> >> 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 >> >> >> mardan Khan <[EMAIL PROTECTED]> >> 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 >> >> >> >> alo alt <[EMAIL PROTECTED]> >> 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 >> >> >> >> mardan Khan <[EMAIL PROTECTED]> >> 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. >> >> >> >> >> > +
mardan Khan 2012-07-30, 19:42
-
Re: Installation of full flume on window OSmardan Khan 2012-07-30, 16:53
Thanks Gumnaan,
Now the 2nd version is working. The first one was not killable for the command prompt. Many thanks for your help. As i have just working on flume and have no experience. I have data file at location c:\user\test.txt and i want to upload it to hadoop. My hadoop is already working on my machine. What will be the possible configuration file for this scenario. Many thanks On Mon, Jul 30, 2012 at 5:27 PM, Gumnaam Sur <[EMAIL PROTECTED]> wrote: > Here's the second ver. > The earlier ver. was not killable from command-line via <Ctrl-C>, > This one is :). > > > On Mon, Jul 30, 2012 at 12:19 PM, Gumnaam Sur <[EMAIL PROTECTED]>wrote: > >> 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 >> >> On Mon, Jul 30, 2012 at 11:48 AM, mardan Khan <[EMAIL PROTECTED]>wrote: >> >>> 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 >>> >>> >>> >>> On Mon, Jul 30, 2012 at 3:58 PM, alo alt <[EMAIL PROTECTED]> wrote: >>> >>>> 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 >>>> >>>> >>>> >>>> mardan Khan <[EMAIL PROTECTED]> >>>> 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. >>>> >>>> >>>> >>>> >>>> alo alt <[EMAIL PROTECTED]> >>>> July 30, 2012 4:20 PM >>>> I think we have two different conversations about the same topic. I >>>> reply here. >>>> >>>> Thats not an issue of a env script in windows, because we haven't one >>>> so far. You may need to cp (Classpath) the flume - libs as Inder says. >>>> As I wrote in my howto: >>>> >>>> As example, starting from inside of your flume-installation (the >>>> directory where you unzip'ed the build), lets assume D:\apache-flume: >>>> d:\apache flume > "PATH\to\java.exe" -Xmx20m >>>> -Dlog4j.configuration=file:///%CD%\conf\log4j.properties -cp >>>> "d:\apache-flume\flume-1.3.0-SNAPSHOT\lib\*" >>>> org.apache.flume.node.Application -f d:\flume\flume-1.3.0-SNAPSHOT\conf\YOUR_CONFIG.conf >>>> -n agent >>>> >>>> Please be sure, that the lib-directory from flume is in place as well >>>> in the CLASSPATH (cp). >>>> >>>> - Alex >> +
mardan Khan 2012-07-30, 16:53
-
Re: Installation of full flume on window OSmardan Khan 2012-07-30, 17:03
HI,
What will be best hadoop version for the flume 1.2.0 version. As I have read that if there is difference between hadoop version and flume version then will not possible to upload the file into hadoop. As I have got experience on Linux system, every time I was getting the Broken Pipe error message. Could you please let me know, so that accordingly, i configure the hadoop. Many thanks On Mon, Jul 30, 2012 at 5:53 PM, mardan Khan <[EMAIL PROTECTED]> wrote: > Thanks Gumnaan, > > Now the 2nd version is working. The first one was not killable for the > command prompt. Many thanks for your help. > > As i have just working on flume and have no experience. I have data file > at location c:\user\test.txt and i want to upload it to hadoop. My hadoop > is already working on my machine. What will be the possible configuration > file for this scenario. > > > Many thanks > > > > On Mon, Jul 30, 2012 at 5:27 PM, Gumnaam Sur <[EMAIL PROTECTED]>wrote: > >> Here's the second ver. >> The earlier ver. was not killable from command-line via <Ctrl-C>, >> This one is :). >> >> >> On Mon, Jul 30, 2012 at 12:19 PM, Gumnaam Sur <[EMAIL PROTECTED]>wrote: >> >>> 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 >>> >>> On Mon, Jul 30, 2012 at 11:48 AM, mardan Khan <[EMAIL PROTECTED]>wrote: >>> >>>> 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 >>>> >>>> >>>> >>>> On Mon, Jul 30, 2012 at 3:58 PM, alo alt <[EMAIL PROTECTED]> wrote: >>>> >>>>> 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 >>>>> >>>>> >>>>> >>>>> mardan Khan <[EMAIL PROTECTED]> >>>>> 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. >>>>> >>>>> >>>>> >>>>> >>>>> alo alt <[EMAIL PROTECTED]> >>>>> July 30, 2012 4:20 PM >>>>> I think we have two different conversations about the same topic. I >>>>> reply here. >>>>> >>>>> Thats not an issue of a env script in windows, because we haven't one >>>>> so far. You may need to cp (Classpath) the flume - libs as Inder says. +
mardan Khan 2012-07-30, 17:03
|