README 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. YARN (YET ANOTHER RESOURCE NEGOTIATOR or YARN Application Resource Negotiator)
  2. ------------------------------------------------------------------------------
  3. Requirements
  4. -------------
  5. Java: JDK 1.6
  6. Maven: Maven 3
  7. Setup
  8. -----
  9. Install protobuf 2.4.0a or higher (Download from http://code.google.com/p/protobuf/downloads/list)
  10. - install the protoc executable (configure, make, make install)
  11. - install the maven artifact (cd java; mvn install)
  12. Installing protoc requires gcc 4.1.x or higher.
  13. If the make step fails with (Valid until a fix is released for protobuf 2.4.0a)
  14. ./google/protobuf/descriptor.h:1152: error:
  15. `google::protobuf::internal::Mutex*google::protobuf::DescriptorPool::mutex_'
  16. is private
  17. Replace descriptor.cc with http://protobuf.googlecode.com/svn-history/r380/trunk/src/google/protobuf/descriptor.cc
  18. Quick Maven Tips
  19. ----------------
  20. clean workspace: mvn clean
  21. compile and test: mvn install
  22. skip tests: mvn install -DskipTests
  23. skip test execution but compile: mvn install -Dmaven.test.skip.exec=true
  24. skip native build: mvn -fn install -P-cbuild
  25. clean and test: mvn clean install
  26. run selected test after compile: mvn test -Dtest=TestClassName (combined: mvn clean install -Dtest=TestClassName)
  27. create runnable binaries after install: mvn assembly:assembly (combined: mvn clean install assembly:assembly)
  28. Eclipse Projects
  29. ----------------
  30. http://maven.apache.org/guides/mini/guide-ide-eclipse.html
  31. 1. Generate .project and .classpath files in all maven modules
  32. mvn eclipse:eclipse
  33. CAUTION: If the project structure has changed from your previous workspace, clean up all .project and .classpath files recursively. Then run:
  34. mvn eclipse:eclipse
  35. 2. Import the projects in eclipse.
  36. 3. Set the environment variable M2_REPO to point to your .m2/repository location.
  37. NetBeans Projects
  38. -----------------
  39. NetBeans has builtin support of maven projects. Just "Open Project..."
  40. and everything is setup automatically. Verified with NetBeans 6.9.1.
  41. Custom Hadoop Dependencies
  42. --------------------------
  43. By default Hadoop dependencies are specified in the top-level pom.xml
  44. properties section. One can override them via -Dhadoop-common.version=...
  45. on the command line. ~/.m2/settings.xml can also be used to specify
  46. these properties in different profiles, which is useful for IDEs.
  47. Modules
  48. -------
  49. YARN consists of multiple modules. The modules are listed below as per the directory structure:
  50. hadoop-yarn-api - Yarn's cross platform external interface
  51. hadoop-yarn-common - Utilities which can be used by yarn clients and server
  52. hadoop-yarn-server - Implementation of the hadoop-yarn-api
  53. hadoop-yarn-server-common - APIs shared between resourcemanager and nodemanager
  54. hadoop-yarn-server-nodemanager (TaskTracker replacement)
  55. hadoop-yarn-server-resourcemanager (JobTracker replacement)