Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/politie/hadoop-spring-context
hadoop-spring-context
https://github.com/politie/hadoop-spring-context
Last synced: 1 day ago
JSON representation
hadoop-spring-context
- Host: GitHub
- URL: https://github.com/politie/hadoop-spring-context
- Owner: politie
- Created: 2014-10-14T09:54:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-14T10:00:48.000Z (about 10 years ago)
- Last Synced: 2024-03-27T13:13:10.921Z (8 months ago)
- Language: Java
- Size: 133 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
hadoop-spring-context
=====================Sample project on how to load a Spring context from Hadoop Mapper/Reducer with property file per environment (ie dev/test/prodcution)
Build the project with `mvn clean install`
Start the Hadoop job with `hadoop -jar spring-context-1.0-SNAPSHOT-job.jar`
Don't forget to provide a folder where the properties are :
`export HADOOP_OPTS="$HADOOP_OPTS -Dproperties.folder=/home/hadoop/conf/dev"`
In the conf directory of this project are some samples. Change dev to prod to greet Hans Gruber instead of Harrie.
When your job is started look for the application id (somehting like application_1413103825819_0003) so you can collect the results with yarn :
`yarn logs -applicationId=application_1413103825819_0003 | grep ello`
This will show the name you provided in the property file
Article about this code
-----------------------For more information please read http://vanwilgenburg.wordpress.com/2014/10/12/hadoop-spring-context