visoft
visoft

Reputation: 503

Hadoop 1.2.1 plugin for Eclipse Juno: I can't launch the application

I want to use the Hadoop Eclipse plugin to run the WordCount example.

I have the systems: Local: Windows 7, Eclipse Juno (4.2.2), hadoop-1.2.1 unpacked. Remote: Debian 7.1 with the same hadoop version installed and tested.

I followed the instructions found at: http://iredlof.com/part-4-compile-hadoop-v1-0-4- eclipse-plugin-on-ubuntu-12-10/ and built the plugin on windows machine.

The hadoop is running, tested with hadoop-examples wordcount and with my freshly created WordCount.

What works with the plugin:

What doesn't work:

I exported the jar from my project, copied it on the remote machine and launched hadoop from command line. Everything worked as expected.

I also saw that when manually launching the project on the remote machine, hadoop creates a job.jar in user/.staging directory. When launching the project from Eclipse, this jar is missing.

My question is: How can I run my project from Eclipse plugin?

Thanks

Upvotes: 0

Views: 1734

Answers (1)

Rags
Rags

Reputation: 1881

Set the user from your job driver.

System.setProperty("HADOOP_USER_NAME", "YourUbuntuUserID");

It might work. Try and let me know.

Upvotes: 1

Related Questions