Ok, fixed a couple of more things. 1. JAVA and HADOOP_HOME env. variables were not set in my computer. I set them as required by the script.
2. In the script, hadoop-config-script is being defined to be available at %HADOOP_HOME%\bin, but in reality, it's available in %HADOOP_HOME%\libexec. After I fixed this in the script, the script ran, but I got further errors, which I need help. Here they are: (a) Script is unable to locate winutils.exe while looking at bin directory because of which there's an IO exception (b) ExecType is set to MAPREDUCE by default. Is there a way I can configure the ExecType to LOCAL? I am not running MAPREDUCE at this point of time. (c) Default bootup file is being looked at C:\USERS\VENKAT/.pigbootup. Note that the last slash is a unix style file separator, and there's nothing in C:\USERS\VENKAT anyway. (d) A couple of deprecation errors and warning about being unable to load native hadoop library for my platform. And then I get the 'grunt' prompt. I am attaching the screen shot for your reference. Any help would be appreciated. Thanks & Best Regards, Venkat. On Tue, Dec 16, 2014 at 10:46 AM, Venkat Ramakrishnan < venkat.archit...@gmail.com> wrote: > > Thanks Andrew, no worries. > > Okay, I did some more digging, and here's what I found (may be it's not > the right thing to do, but it helps me progress further to locate the area > in the script in which the problem occurs) : > > 1. The first line in the 'pig' windows executable starts with @echo off, > followed by a whole lot of comments. These text, to me, do not look like > valid commands, in which case, the entire line should be commented out with > 'REM'. I did that, and the script was able to proceed normally, till it > hits the 'call -Xmx' command. > > 2. When 'call -Xmx' is executed, it complains about '-Xmx1000M' not being > a valid command. I did a help on windows 'call' command, and I found that > the parameters to 'call' should be in the format 'call <filename> > <parameters>, but in this case, > 'call' is invoked with '-XMx' as the filename, because of which, I > presume, the script is failing. > > It looks like the script is broken. Windows folks can confirm. Please let > me know how to work around the 'call' command problem to proceed with the > installation testing. > > Thanks, > Venkat. > > > On Tue, Dec 16, 2014 at 10:32 AM, Andrew Musselman < > andrew.mussel...@gmail.com> wrote: >> >> Sorry, don't know how to help then; any Windows folks seen this? >> >> > On Dec 15, 2014, at 8:49 PM, Venkat Ramakrishnan < >> venkat.archit...@gmail.com> wrote: >> > >> > I just typed 'pig' at the command line. >> > >> > Thanks, >> > Venkat. >> > >> > >> > On Tue, Dec 16, 2014 at 10:01 AM, Andrew Musselman < >> > andrew.mussel...@gmail.com> wrote: >> >> >> >> What exact command, including whitespace and quotation marks, are you >> >> using? >> >> >> >>>> On Dec 15, 2014, at 8:29 PM, Venkat Ramakrishnan < >> >>> venkat.archit...@gmail.com> wrote: >> >>> >> >>> Hi all, >> >>> >> >>> I installed Pig 0.14.0 in my Windows 7 machine to test Pig local, >> >>> and I followed the instructions from: >> >>> >> >>> http://pig.apache.org/docs/r0.14.0/start.html#download >> >>> >> >>> After the installation, I tried to run Pig as per Step 4 under >> 'Download >> >>> Pig' >> >>> at the above link. >> >>> >> >>> I am getting the following error: >> >>> >> >>> '-Xmx1000M' is not recognized as an internal or external command, >> >> operable >> >>> program or batch file'. >> >>> >> >>> I looked at the pig windows executable at the 'bin' directory, and I >> >> found >> >>> that >> >>> the text '-Xmx' is used while setting JAVA_HEAP_MAX environment >> variable. >> >>> >> >>> I don't find anything wrong with the 'set' command as such. May be I >> am >> >>> missing >> >>> something obvious. >> >>> >> >>> Can someone point out what needs to be done to make the installation >> >> work? >> >>> >> >>> Thanks & Best Regards, >> >>> Venkat Ramakrishnan. >> >> >> >