wukong 1.4.2 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/wukong/boot.rb DELETED
@@ -1,47 +0,0 @@
1
- module Wukong
2
-
3
- # ---------------------------------------------------------------------------
4
- #
5
- # Default options for Wukong
6
- # http://github.com/infochimps/wukong
7
- #
8
- # If you set an environment variable WUKONG_CONFIG, *or* if the file
9
- # $HOME/.wukong.rb exists, that file will be +require+'d as well.
10
- #
11
- # Important values to set:
12
- #
13
- # * Wukong::CONFIG[:hadoop_home] --
14
- # Path to root of hadoop install. If your hadoop runner is
15
- # /usr/local/share/hadoop/bin/hadoop
16
- # then your hadoop_home is
17
- # /usr/local/share/hadoop.
18
- # You can also set a
19
- #
20
- # * Wukong::CONFIG[:default_run_mode] -- Whether to run using hadoop (and
21
- # thus, requiring a working hadoop install), or to run in local mode
22
- # (script --map | sort | script --reduce)
23
- #
24
- CONFIG = {
25
- # Run as local or as hadoop?
26
- :default_run_mode => 'hadoop',
27
-
28
- # The command to run when a nil mapper or reducer is given.
29
- :default_mapper => '/bin/cat',
30
- :default_reducer => '/bin/cat',
31
-
32
- # Anything in HADOOP_OPTIONS_MAP (see lib/wukong/script/hadoop_command.rb)
33
- :runner_defaults => {
34
- },
35
- }
36
-
37
- def self.config_options
38
- # # override with site-specific options
39
- site_config_filename = ENV['WUKONG_CONFIG'] || (ENV['HOME'].to_s+'/.wukong.rb')
40
- require site_config_filename.gsub(/\.rb$/,'') if File.exists?(site_config_filename)
41
-
42
- # try to guess a hadoop_home if none given
43
- Wukong::CONFIG[:hadoop_home] ||= ENV['HADOOP_HOME'] || '/usr/lib/hadoop'
44
- end
45
- self.config_options
46
- end
47
-
@@ -1,4 +0,0 @@
1
- # -*- coding: undecided -*-
2
-
3
-
4
- I18N_STR = "Iñtërnâtiônàlizætiøn hasn't happened to ruby 1.8 yet"