Adarsh, Your command should be : patch -p0 < fix-test-pipes.patch See http://wiki.apache.org/hadoop/HowToContribute for details on how to contribute.
Thanks Amareshwari On 3/31/11 9:54 AM, "Adarsh Sharma" <adarsh.sha...@orkash.com> wrote: Thanks Harsh, I am trying the patch command but below error exists : [root@ws-test project]# patch hadoop-0.20.2 fix-test-pipes.patch patch: **** File hadoop-0.20.2 is not a regular file -- can't patch [root@ws-test project]# patch -R hadoop-0.20.2 fix-test-pipes.patch patch: **** File hadoop-0.20.2 is not a regular file -- can't patch [root@ws-test project]# patch -p hadoop-0.20.2 fix-test-pipes.patch patch: **** strip count hadoop-0.20.2 is not a number [root@ws-test project]# Best regards, Adarsh Harsh J wrote: > There is a utility available for Unix called 'patch'. You can use that > with a suitable -p(num) argument (man patch, for more info). > > On Thu, Mar 31, 2011 at 9:41 AM, Adarsh Sharma <adarsh.sha...@orkash.com> > wrote: > >> Dear all, >> >> Can Someone Please tell me how to apply a patch on hadoop-0.20.2 package. >> >> I attached the patch. >> >> Please find the attachment. I just follow below steps for Hadoop : >> 1. Download Hadoop-0.20.2.tar.gz >> 2. Extract the file. >> 3. Set Configurations in site.xml files >> >> Thanks & best Regards, >> Adarsh Sharma >> >> > > > >