You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Sathwik B P <sa...@apache.org> on 2013/08/06 11:46:29 UTC

Compilation problem of Hadoop Projects after Import into Eclipse

Hi guys,

I see a couple of problem with the generation of eclipse artifacts mvn
eclipse:eclipse.
There are a couple of compilation issues after importing the hadoop
projects into eclipse, though am able to rectify them.

1) hadoop-common: TestAvroSerialization.java doesn't compile as it uses
AvroRecord which exists under target/generated-test-sources/java.
Solution: Need to include target/generated-test-sources/java as source.

2) hadoop-streaming: linked source folder conf which should point to
hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/conf
doesn't point to the path correctly
Solution: Manually add the conf and link it to
hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/conf

Can this be fixed?

I have just compiled the hadoop trunk codebase.

regards,
sathwik

RE: Compilation problem of Hadoop Projects after Import into Eclipse

Posted by German Florez-Larrahondo <ge...@samsung.com>.
Sathwik 

 

I experienced something similar a few weeks ago.

I reported a JIRA on the documentation of this, please comment there

 

https://issues.apache.org/jira/browse/HADOOP-9771

 

Regards

./g

 

 

From: Sathwik B P [mailto:sathwik@apache.org] 
Sent: Tuesday, August 06, 2013 4:46 AM
To: user@hadoop.apache.org
Subject: Compilation problem of Hadoop Projects after Import into Eclipse

 

Hi guys,

I see a couple of problem with the generation of eclipse artifacts mvn
eclipse:eclipse.
There are a couple of compilation issues after importing the hadoop projects
into eclipse, though am able to rectify them.

1) hadoop-common: TestAvroSerialization.java doesn't compile as it uses
AvroRecord which exists under target/generated-test-sources/java. 
Solution: Need to include target/generated-test-sources/java as source.

2) hadoop-streaming: linked source folder conf which should point to
hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn
-server-resourcemanager/conf
doesn't point to the path correctly
Solution: Manually add the conf and link it to
hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn
-server-resourcemanager/conf

Can this be fixed?

I have just compiled the hadoop trunk codebase.

regards,
sathwik


RE: Compilation problem of Hadoop Projects after Import into Eclipse

Posted by German Florez-Larrahondo <ge...@samsung.com>.
Sathwik 

 

I experienced something similar a few weeks ago.

I reported a JIRA on the documentation of this, please comment there

 

https://issues.apache.org/jira/browse/HADOOP-9771

 

Regards

./g

 

 

From: Sathwik B P [mailto:sathwik@apache.org] 
Sent: Tuesday, August 06, 2013 4:46 AM
To: user@hadoop.apache.org
Subject: Compilation problem of Hadoop Projects after Import into Eclipse

 

Hi guys,

I see a couple of problem with the generation of eclipse artifacts mvn
eclipse:eclipse.
There are a couple of compilation issues after importing the hadoop projects
into eclipse, though am able to rectify them.

1) hadoop-common: TestAvroSerialization.java doesn't compile as it uses
AvroRecord which exists under target/generated-test-sources/java. 
Solution: Need to include target/generated-test-sources/java as source.

2) hadoop-streaming: linked source folder conf which should point to
hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn
-server-resourcemanager/conf
doesn't point to the path correctly
Solution: Manually add the conf and link it to
hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn
-server-resourcemanager/conf

Can this be fixed?

I have just compiled the hadoop trunk codebase.

regards,
sathwik


RE: Compilation problem of Hadoop Projects after Import into Eclipse

Posted by German Florez-Larrahondo <ge...@samsung.com>.
Sathwik 

 

I experienced something similar a few weeks ago.

I reported a JIRA on the documentation of this, please comment there

 

https://issues.apache.org/jira/browse/HADOOP-9771

 

Regards

./g

 

 

From: Sathwik B P [mailto:sathwik@apache.org] 
Sent: Tuesday, August 06, 2013 4:46 AM
To: user@hadoop.apache.org
Subject: Compilation problem of Hadoop Projects after Import into Eclipse

 

Hi guys,

I see a couple of problem with the generation of eclipse artifacts mvn
eclipse:eclipse.
There are a couple of compilation issues after importing the hadoop projects
into eclipse, though am able to rectify them.

1) hadoop-common: TestAvroSerialization.java doesn't compile as it uses
AvroRecord which exists under target/generated-test-sources/java. 
Solution: Need to include target/generated-test-sources/java as source.

2) hadoop-streaming: linked source folder conf which should point to
hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn
-server-resourcemanager/conf
doesn't point to the path correctly
Solution: Manually add the conf and link it to
hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn
-server-resourcemanager/conf

Can this be fixed?

I have just compiled the hadoop trunk codebase.

regards,
sathwik


RE: Compilation problem of Hadoop Projects after Import into Eclipse

Posted by German Florez-Larrahondo <ge...@samsung.com>.
Sathwik 

 

I experienced something similar a few weeks ago.

I reported a JIRA on the documentation of this, please comment there

 

https://issues.apache.org/jira/browse/HADOOP-9771

 

Regards

./g

 

 

From: Sathwik B P [mailto:sathwik@apache.org] 
Sent: Tuesday, August 06, 2013 4:46 AM
To: user@hadoop.apache.org
Subject: Compilation problem of Hadoop Projects after Import into Eclipse

 

Hi guys,

I see a couple of problem with the generation of eclipse artifacts mvn
eclipse:eclipse.
There are a couple of compilation issues after importing the hadoop projects
into eclipse, though am able to rectify them.

1) hadoop-common: TestAvroSerialization.java doesn't compile as it uses
AvroRecord which exists under target/generated-test-sources/java. 
Solution: Need to include target/generated-test-sources/java as source.

2) hadoop-streaming: linked source folder conf which should point to
hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn
-server-resourcemanager/conf
doesn't point to the path correctly
Solution: Manually add the conf and link it to
hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn
-server-resourcemanager/conf

Can this be fixed?

I have just compiled the hadoop trunk codebase.

regards,
sathwik