You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by "www.gwtorm.com" <ji...@gmail.com> on 2010/05/06 14:17:27 UTC

Eclipse plugin

I have two machines, one is Windows XP and another one is Widows Vista. I
did the same thing on two machines. Hadoop Eclipse Plugin works fine in
Windows XP. But I got an error when I run it in Windows Vista.

I copied hadoop-0.20.2-eclipse-plugin into Eclipse/plugins folder and
restarted Eclipse. When I tried to open "Preference" page, I got
java.lang.UnsupportedClassVersionError(Bad version number in .class file). I
confirmed Eclipse was running Java 6 because I opened a DOS prompt and run
"java -version" to display it is Java 6 (I tried Java 6 for 32 bits of
Windows and 64 bits of Windows).


I appreciate your solutions.


Jim

RE: How can I syncronize writing to an hdfs file

Posted by Bill Habermaas <bi...@habermaas.us>.
I had a similar requirement. Hdfs has no locking that I am aware of, at
least I have never run across it in reading the source. My solution was to
build a distributed locking mechanism using ZooKeeper.  You might want to
visit http://hadoop.apache.org/zookeeper/docs/current/recipes.html
For some ideas.  The code you find there is a start but buggy. 

Bill 

-----Original Message-----
From: Raymond Jennings III [mailto:raymondjiii@yahoo.com] 
Sent: Friday, May 07, 2010 10:32 AM
To: common-user@hadoop.apache.org
Subject: How can I syncronize writing to an hdfs file

I want to write to a common hdfs file from within my map method.  Given that
each task runs in a separate jvm (on separate machines) making a method
syncronized will not work I assume.  Are there any file locking or other
methods to guarantee mutual exclusion on hdfs?

(I want to append to this file and I have the append option turned on.)
Thanks.


      



How can I syncronize writing to an hdfs file

Posted by Raymond Jennings III <ra...@yahoo.com>.
I want to write to a common hdfs file from within my map method.  Given that each task runs in a separate jvm (on separate machines) making a method syncronized will not work I assume.  Are there any file locking or other methods to guarantee mutual exclusion on hdfs?

(I want to append to this file and I have the append option turned on.)  Thanks.


      

Re: Eclipse plugin

Posted by "www.gwtorm.com" <ji...@gmail.com>.
Hemanth,


       I didn't know how to fix this problem. Here is what I did - I just
reboot my machine to fix this issue. Right now I get another issue. When I
am trying to run an application by clicking "Run As" -> "Run on Hadoop",
nothing happens visually and something happens in background because I get
an indication when I try to rebuild the project. I can even not kill
eclipse.exe from Windows Task Manager.

java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

Jim

On Thu, May 6, 2010 at 10:02 PM, Hemanth Yamijala <yh...@gmail.com>wrote:

> Jim,
>
> > I have two machines, one is Windows XP and another one is Widows Vista. I
> > did the same thing on two machines. Hadoop Eclipse Plugin works fine in
> > Windows XP. But I got an error when I run it in Windows Vista.
> >
> > I copied hadoop-0.20.2-eclipse-plugin into Eclipse/plugins folder and
> > restarted Eclipse. When I tried to open "Preference" page, I got
> > java.lang.UnsupportedClassVersionError(Bad version number in .class
> file). I
> > confirmed Eclipse was running Java 6 because I opened a DOS prompt and
> run
> > "java -version" to display it is Java 6 (I tried Java 6 for 32 bits of
> > Windows and 64 bits of Windows).
> >
>
> It would help to know what exact (dot/update) version of Java 6 you
> are using. I ran into a problem recently where I was using one of the
> earliest versions of Java 6, where the class file format defaulted to
> Java1.5 for stability reasons.
>

Re: Eclipse plugin

Posted by Hemanth Yamijala <yh...@gmail.com>.
Jim,

> I have two machines, one is Windows XP and another one is Widows Vista. I
> did the same thing on two machines. Hadoop Eclipse Plugin works fine in
> Windows XP. But I got an error when I run it in Windows Vista.
>
> I copied hadoop-0.20.2-eclipse-plugin into Eclipse/plugins folder and
> restarted Eclipse. When I tried to open "Preference" page, I got
> java.lang.UnsupportedClassVersionError(Bad version number in .class file). I
> confirmed Eclipse was running Java 6 because I opened a DOS prompt and run
> "java -version" to display it is Java 6 (I tried Java 6 for 32 bits of
> Windows and 64 bits of Windows).
>

It would help to know what exact (dot/update) version of Java 6 you
are using. I ran into a problem recently where I was using one of the
earliest versions of Java 6, where the class file format defaulted to
Java1.5 for stability reasons.