-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhadoop-1.2.1.patch
executable file
·144 lines (133 loc) · 4.38 KB
/
hadoop-1.2.1.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
diff -rU3 hadoop-1.2.1/conf/core-site.xml hadoop-1.2.1.modified/conf/core-site.xml
--- hadoop-1.2.1/conf/core-site.xml 2013-07-22 15:26:38.000000000 -0700
+++ hadoop-1.2.1.modified/conf/core-site.xml 2013-09-09 17:14:13.000000000 -0700
@@ -5,4 +5,19 @@
<configuration>
+ <property>
+ <name>fs.default.name</name>
+ <value>hdfs://###HADOOP_MASTER###:9000</value>
+ </property>
+
+ <property>
+ <name>hadoop.tmp.dir</name>
+ <value>/hadoop/tmp</value>
+ </property>
+
+ <property>
+ <name>fs.checkpoint.dir</name>
+ <value>/hadoop/checkpoint</value>
+ </property>
+
</configuration>
diff -rU3 hadoop-1.2.1/conf/hadoop-env.sh hadoop-1.2.1.modified/conf/hadoop-env.sh
--- hadoop-1.2.1/conf/hadoop-env.sh 2013-07-22 15:26:38.000000000 -0700
+++ hadoop-1.2.1.modified/conf/hadoop-env.sh 2013-09-09 17:14:13.000000000 -0700
@@ -6,7 +6,7 @@
# remote nodes.
# The java implementation to use. Required.
-# export JAVA_HOME=/usr/lib/j2sdk1.5-sun
+export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
# Extra Java CLASSPATH elements. Optional.
# export HADOOP_CLASSPATH=
@@ -31,7 +31,7 @@
# export HADOOP_SSH_OPTS="-o ConnectTimeout=1 -o SendEnv=HADOOP_CONF_DIR"
# Where log files are stored. $HADOOP_HOME/logs by default.
-# export HADOOP_LOG_DIR=${HADOOP_HOME}/logs
+export HADOOP_LOG_DIR=/var/log/hadoop
# File naming remote slave hosts. $HADOOP_HOME/conf/slaves by default.
# export HADOOP_SLAVES=${HADOOP_HOME}/conf/slaves
@@ -48,7 +48,7 @@
# NOTE: this should be set to a directory that can only be written to by
# the users that are going to run the hadoop daemons. Otherwise there is
# the potential for a symlink attack.
-# export HADOOP_PID_DIR=/var/hadoop/pids
+export HADOOP_PID_DIR=/run/hadoop
# A string representing this instance of hadoop. $USER by default.
# export HADOOP_IDENT_STRING=$USER
Only in hadoop-1.2.1.modified/conf: hadoop-env.sh.orig
diff -rU3 hadoop-1.2.1/conf/hdfs-site.xml hadoop-1.2.1.modified/conf/hdfs-site.xml
--- hadoop-1.2.1/conf/hdfs-site.xml 2013-07-22 15:26:38.000000000 -0700
+++ hadoop-1.2.1.modified/conf/hdfs-site.xml 2013-09-09 17:14:13.000000000 -0700
@@ -5,4 +5,29 @@
<configuration>
+ <property>
+ <name>slave.host.name</name>
+ <value>###EXTERNAL_IP_ADDRESS###</value>
+ </property>
+
+ <property>
+ <name>dfs.replication</name>
+ <value>3</value>
+ </property>
+
+ <property>
+ <name>dfs.name.dir</name>
+ <value>/hadoop/hdfs/name</value>
+ </property>
+
+ <property>
+ <name>dfs.data.dir</name>
+ <value>/hadoop/hdfs/data</value>
+ </property>
+
+ <property>
+ <name>dfs.http.address</name>
+ <value>0.0.0.0:50070</value>
+ </property>
+
</configuration>
diff -rU3 hadoop-1.2.1/conf/mapred-site.xml hadoop-1.2.1.modified/conf/mapred-site.xml
--- hadoop-1.2.1/conf/mapred-site.xml 2013-07-22 15:26:38.000000000 -0700
+++ hadoop-1.2.1.modified/conf/mapred-site.xml 2013-09-09 17:14:13.000000000 -0700
@@ -5,4 +5,40 @@
<configuration>
+ <property>
+ <name>mapred.job.tracker</name>
+ <value>###HADOOP_MASTER###:9001</value>
+ </property>
+
+ <property>
+ <name>slave.host.name</name>
+ <value>###EXTERNAL_IP_ADDRESS###</value>
+ </property>
+
+ <property>
+ <name>hadoop.job.history.location</name>
+ <value>file:///hadoop/mapred/history</value>
+ <description>hdfs:// is UNusable.</description>
+ </property>
+
+ <property>
+ <name>mapred.job.tracker.history.completed.location</name>
+ <value>hdfs:///mapred/history/done</value>
+ </property>
+
+ <property>
+ <name>mapred.job.tracker.http.address</name>
+ <value>0.0.0.0:50030</value>
+ </property>
+
+ <property>
+ <name>mapred.tasktracker.map.tasks.maximum</name>
+ <value>8</value>
+ </property>
+
+ <property>
+ <name>mapred.tasktracker.reduce.tasks.maximum</name>
+ <value>8</value>
+ </property>
+
</configuration>