Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 61068 invoked from network); 2 Dec 2010 11:04:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Dec 2010 11:04:12 -0000 Received: (qmail 71990 invoked by uid 500); 2 Dec 2010 11:04:09 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 71805 invoked by uid 500); 2 Dec 2010 11:04:09 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 71791 invoked by uid 99); 2 Dec 2010 11:04:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Dec 2010 11:04:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a78.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Dec 2010 11:04:02 +0000 Received: from homiemail-a78.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a78.g.dreamhost.com (Postfix) with ESMTP id 9D0C115C069 for ; Thu, 2 Dec 2010 03:03:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; q=dns; s=thelastpickle.com; b=CJlOpKa9Ze RRA53Pem0fN6SSfClrvgmyzG4Za79NzJnsfEJkIhVyH7LAxx5OSevPPTjYz8E8fN shiFanRRycEEx5kceDTyS66UNEP+UcODsftj0P2Q3fI/68cvIMh9LdjbwZvdQOAq Jt3ZqpBXxqH5tAhdB/Xq0urPl1cJEppMU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; s=thelastpickle.com; bh=4I5cRQ0C+oHBSmyX fSwCpEANrco=; b=byUlRCnqbFR1RplX0JC5iUjdTSXLwlr6+zGn/7hhTSGh3OT/ J2h5eZTuXGgOtRZV6yqs+GPr8jVDrbGVGYTdH1rJhngaqDOFJ5fjDyDLRhFsX7GF TljSLw8oMOWZ4o7pJhBdd32VN+YcSJZAcYABXw2Epv+Lu4Xle0vGpfhpkZs= Received: from [10.0.1.155] (unknown [121.73.157.230]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a78.g.dreamhost.com (Postfix) with ESMTPSA id B9B9615C064 for ; Thu, 2 Dec 2010 03:03:40 -0800 (PST) From: aaron morton Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/alternative; boundary=Apple-Mail-1--551996101 Subject: Re: how can i ran the word count example on windows? Date: Fri, 3 Dec 2010 00:03:36 +1300 In-Reply-To: <201012021603381742776@gmail.com> To: user@cassandra.apache.org References: <201012021026104741156@gmail.com> <2FCDA521-AA6D-4099-913F-B0D58B3F2BF1@gmail.com> <201012021603381742776@gmail.com> Message-Id: <7EB46F22-D0CE-4B0B-8782-DFB31F7F70E3@thelastpickle.com> X-Mailer: Apple Mail (2.1082) --Apple-Mail-1--551996101 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 chmod is used on linux to change the file permissions. It seems like = hadoop links your on linux.=20 What command are you running to get this error ?=20 Aaron On 2 Dec 2010, at 21:03, Bingbing Liu wrote: > i use the same configuration in eclispe both on windows and linux , on = linux ,it goes well, but on windows , it fails > =20 > here is the exception information: > =20 > =20 > 10/12/02 10:53:40 INFO mapreduce.MRSelect: output reducer type: = filesystem > 10/12/02 10:53:40 INFO jvm.JvmMetrics: Initializing JVM Metrics with = processName=3DJobTracker, sessionId=3D > Exception in thread "main" java.io.IOException: Cannot run program = "chmod": CreateProcess error=3D2, =CF=B5=CD=B3=C3=95=D2=B2=C2=BB=C2=B5=C2=BD= =D6=B8=C2=B6 > at java.lang.ProcessBuilder.start(Unknown Source) > at org.apache.hadoop.util.Shell.runCommand(Shell.java:149) > at org.apache.hadoop.util.Shell.run(Shell.java:134) > at = org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:286) > at org.apache.hadoop.util.Shell.execCommand(Shell.java:354) > at org.apache.hadoop.util.Shell.execCommand(Shell.java:337) > at = org.apache.hadoop.fs.RawLocalFileSystem.execCommand(RawLocalFileSystem.jav= a:481) > at = org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.j= ava:473) > at = org.apache.hadoop.fs.FilterFileSystem.setPermission(FilterFileSystem.java:= 280) > at org.apache.hadoop.fs.FileSystem.mkdirs(FileSystem.java:261) > at = org.apache.hadoop.mapred.JobClient.configureCommandLineOptions(JobClient.j= ava:573) > at = org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:761) > at org.apache.hadoop.mapreduce.Job.submit(Job.java:432) > at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:447) > at org.clouddb.cassandra.mapreduce.MRSelect.run(MRSelect.java:209) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > at org.clouddb.cassandra.mapreduce.MRSelect.main(MRSelect.java:54) > Caused by: java.io.IOException: CreateProcess error=3D2, = =CF=B5=CD=B3=C3=95=D2=B2=C2=BB=C2=B5=C2=BD=D6=B8=C2=B6 > at java.lang.ProcessImpl.create(Native Method) > at java.lang.ProcessImpl.(Unknown Source) > at java.lang.ProcessImpl.start(Unknown Source) > ... 17 more > =20 > 2010-12-02 > Bingbing Liu > =E5=8F=91=E4=BB=B6=E4=BA=BA=EF=BC=9A Jeremy Hanna > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4=EF=BC=9A 2010-12-02 11:13:04 > =E6=94=B6=E4=BB=B6=E4=BA=BA=EF=BC=9A user > =E6=8A=84=E9=80=81=EF=BC=9A > =E4=B8=BB=E9=A2=98=EF=BC=9A Re: how can i ran the word count example = on windows? > There isn't currently, but perhaps you could contribute one :). If = you take a look at the sh script in the bin directory of the word count = example, it shouldn't be terribly difficult to mimic the behavior. It's = mostly just setting up the classpath and executing the Java class with = some arguments. > =20 > On Dec 1, 2010, at 8:26 PM, Bingbing Liu wrote: >=20 >> i don't know how to set the command line >> =20 >> is there a word_count.bat ? like the word_count in the bin on linux? >> =20 >> 2010-12-02 >> Bingbing Liu >=20 >=20 --Apple-Mail-1--551996101 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 chmod is used on linux to change the file = permissions. It seems like hadoop links your on = linux. 

What command are you running to get this = error ? 

Aaron

On = 2 Dec 2010, at 21:03, Bingbing Liu wrote:

i use the same = configuration in eclispe both on windows and linux , on linux ,it goes = well, but on windows , it fails
 
here = is the exception information:
 
 
10/12/02 10:53:40 INFO mapreduce.MRSe= lect: output reducer type: filesystem
10/12/= 02 10:53:40 INFO jvm.JvmMetrics: Initializing JVM=  Metrics with processName=3DJobTracker, sessionId=3D
Exception in thread "main" java.io.IOExceptio= n: Cannot run program "chmod": CreateProcess = ;error=3D2, =CF=B5=CD=B3=C3=95=D2=B2=C2=BB=C2=B5=C2=BD=D6=B8=C2=B6
at java.lang.ProcessBuilder.start(Unknown Source)
<= div>at org.apache.hadoop.util.Shell.runCommand(Shell.java:149)
<= div>at org.apache.hadoop.util.Shell.run(Shell.java:134)
at&= nbsp;org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:= 286)
at org.apache.hadoop.util.Shell.execCommand(Shell.java= :354)
at org.apache.hadoop.util.Shell.execCommand(Shell.jav= a:337)
at org.apache.hadoop.fs.RawLocalFileSystem.execComma= nd(RawLocalFileSystem.java:481)
at org.apache.hadoop.fs.Raw= LocalFileSystem.setPermission(RawLocalFileSystem.java:473)
at&nb= sp;org.apache.hadoop.fs.FilterFileSystem.setPermission(FilterFileSystem.ja= va:280)
at org.apache.hadoop.fs.FileSystem.mkdirs(FileSyste= m.java:261)
at org.apache.hadoop.mapred.JobClient.configure= CommandLineOptions(JobClient.java:573)
at org.apache.hadoop= .mapred.JobClient.submitJobInternal(JobClient.java:761)
at = org.apache.hadoop.mapreduce.Job.submit(Job.java:432)
at org= .apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:447)
at&= nbsp;org.clouddb.cassandra.mapreduce.MRSelect.run(MRSelect.java:209)
=
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.clouddb.cassandra.mapreduce.MRSelect.main(MRSelect.java= :54)
Caused by: java.io.IOException: CreateProces= s error=3D2, =CF=B5=CD=B3=C3=95=D2=B2=C2=BB=C2=B5=C2=BD=D6=B8=C2= =B6
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
= ... 17 more
 
2010-12-02

Bingbing = Liu

=E5=8F=91=E4=BB=B6=E4=BA=BA=EF=BC=9A Jeremy = Hanna
=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4=EF=BC=9A 2010-12-02  = 11:13:04
=E6=94=B6=E4=BB=B6=E4=BA=BA=EF=BC=9A user
=E6=8A=84=E9=80=81=EF=BC=9A
=
=E4=B8=BB=E9=A2=98=EF=BC=9A=  Re: how can = i ran the word count example on windows?
There isn't currently, but perhaps you could contribute = one :).  If you take a look at the sh script in the bin directory = of the word count example, it shouldn't be terribly difficult to mimic = the behavior.  It's mostly just setting up the classpath and = executing the Java class with some = arguments.
 
On Dec 1, 2010, at 8:26 PM, = Bingbing Liu wrote:

i = don't know how to set the command = line
 
is there a word_count.bat ? like the word_count in the = bin on linux?
 
2010-12-02

Bingbing = Liu



= --Apple-Mail-1--551996101--