Advertisement
Guest User

Untitled

a guest
Aug 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.22 KB | None | 0 0
  1. m3jacob@cs-uwaterloo:~/hadoop-2.7.3/etc/hadoop$ cat core-site.xml
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  4. <!--
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8.  
  9. http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11. Unless required by applicable law or agreed to in writing, software
  12. distributed under the License is distributed on an "AS IS" BASIS,
  13. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. See the License for the specific language governing permissions and
  15. limitations under the License. See accompanying LICENSE file.
  16. -->
  17.  
  18. <!-- Put site-specific property overrides in this file. -->
  19.  
  20. <configuration>
  21. <property>
  22. <name>fs.default.name</name>
  23. <value>hdfs://localhost:9000</value>
  24. </property>
  25. </configuration>
  26.  
  27.  
  28.  
  29. m3jacob@cs-uwaterloo:~/hadoop-2.7.3/etc/hadoop$ cat hdfs-site.xml
  30. <?xml version="1.0" encoding="UTF-8"?>
  31. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  32. <!--
  33. Licensed under the Apache License, Version 2.0 (the "License");
  34. you may not use this file except in compliance with the License.
  35. You may obtain a copy of the License at
  36.  
  37. http://www.apache.org/licenses/LICENSE-2.0
  38.  
  39. Unless required by applicable law or agreed to in writing, software
  40. distributed under the License is distributed on an "AS IS" BASIS,
  41. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  42. See the License for the specific language governing permissions and
  43. limitations under the License. See accompanying LICENSE file.
  44. -->
  45.  
  46. <!-- Put site-specific property overrides in this file. -->
  47.  
  48. <configuration>
  49. <property>
  50. <name>dfs.replication</name>
  51. <value>1</value>
  52. </property>
  53. <!-- property>
  54. <name>dfs.permission</name>
  55. <value>false</value>
  56. </property -->
  57. </configuration>
  58.  
  59.  
  60.  
  61.  
  62. m3jacob@cs-uwaterloo:~/hadoop-2.7.3/etc/hadoop$ cat mapred-site.xml
  63. <?xml version="1.0"?>
  64. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  65. <!--
  66. Licensed under the Apache License, Version 2.0 (the "License");
  67. you may not use this file except in compliance with the License.
  68. You may obtain a copy of the License at
  69.  
  70. http://www.apache.org/licenses/LICENSE-2.0
  71.  
  72. Unless required by applicable law or agreed to in writing, software
  73. distributed under the License is distributed on an "AS IS" BASIS,
  74. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  75. See the License for the specific language governing permissions and
  76. limitations under the License. See accompanying LICENSE file.
  77. -->
  78.  
  79. <!-- Put site-specific property overrides in this file. -->
  80.  
  81. <configuration>
  82. <property>
  83. <name>mapreduce.framework.name</name>
  84. <value>yarn</value>
  85. </property>
  86. </configuration>
  87.  
  88.  
  89.  
  90.  
  91.  
  92. m3jacob@cs-uwaterloo:~/hadoop-2.7.3/etc/hadoop$ cat yarn-site.xml
  93. <?xml version="1.0"?>
  94. <!--
  95. Licensed under the Apache License, Version 2.0 (the "License");
  96. you may not use this file except in compliance with the License.
  97. You may obtain a copy of the License at
  98.  
  99. http://www.apache.org/licenses/LICENSE-2.0
  100.  
  101. Unless required by applicable law or agreed to in writing, software
  102. distributed under the License is distributed on an "AS IS" BASIS,
  103. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  104. See the License for the specific language governing permissions and
  105. limitations under the License. See accompanying LICENSE file.
  106. -->
  107. <configuration>
  108.  
  109. <!-- Site specific YARN configuration properties -->
  110. <property>
  111. <name>yarn.nodemanager.aux-services</name>
  112. <value>mapreduce_shuffle</value>
  113. </property>
  114. <property>
  115. <name>yarn.nodemanager.auxservices.mapreduce.shuffle.class</name>
  116. <value>org.apache.hadoop.mapred.ShuffleHandler</value>
  117. </property>
  118. </configuration>
  119.  
  120.  
  121.  
  122.  
  123. m3jacob@cs-uwaterloo:~/hadoop-2.7.3/etc/hadoop$ cat hadoop-env.sh | more
  124. # Licensed to the Apache Software Foundation (ASF) under one
  125. # or more contributor license agreements. See the NOTICE file
  126. # distributed with this work for additional information
  127. # regarding copyright ownership. The ASF licenses this file
  128. # to you under the Apache License, Version 2.0 (the
  129. # "License"); you may not use this file except in compliance
  130. # with the License. You may obtain a copy of the License at
  131. #
  132. # http://www.apache.org/licenses/LICENSE-2.0
  133. #
  134. # Unless required by applicable law or agreed to in writing, software
  135. # distributed under the License is distributed on an "AS IS" BASIS,
  136. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  137. # See the License for the specific language governing permissions and
  138. # limitations under the License.
  139.  
  140. # Set Hadoop-specific environment variables here.
  141.  
  142. # The only required environment variable is JAVA_HOME. All others are
  143. # optional. When running a distributed configuration it is best to
  144. # set JAVA_HOME in this file, so that it is correctly defined on
  145. # remote nodes.
  146.  
  147. # The java implementation to use.
  148. # export JAVA_HOME=${JAVA_HOME}
  149. export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
  150.  
  151. # The jsvc implementation to use. Jsvc is required to run secure datanodes
  152. # that bind to privileged ports to provide authentication of data transfer
  153. # protocol. Jsvc is not required if SASL is configured for authentication of
  154. # data transfer protocol using non-privileged ports.
  155. #export JSVC_HOME=${JSVC_HOME}
  156.  
  157. export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-"/etc/hadoop"}
  158.  
  159. # Extra Java CLASSPATH elements. Automatically insert capacity-scheduler.
  160. for f in $HADOOP_HOME/contrib/capacity-scheduler/*.jar; do
  161. if [ "$HADOOP_CLASSPATH" ]; then
  162. export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$f
  163. else
  164. export HADOOP_CLASSPATH=$f
  165. fi
  166. done
  167.  
  168. # The maximum amount of heap to use, in MB. Default is 1000.
  169. #export HADOOP_HEAPSIZE=
  170. #export HADOOP_NAMENODE_INIT_HEAPSIZE=""
  171.  
  172. # Extra Java runtime options. Empty by default.
  173. export HADOOP_OPTS="$HADOOP_OPTS -Djava.net.preferIPv4Stack=true"
  174.  
  175. # Command specific options appended to HADOOP_OPTS when specified
  176. export HADOOP_NAMENODE_OPTS="-Dhadoop.security.logger=${HADOOP_SECURITY_LOGGER:-INFO,RFAS} -Dhdfs.audit.logger=${HDFS_AUDIT_LOGGER:-INFO,NullAppender} $HADOOP_NAMENODE_OPTS"
  177. export HADOOP_DATANODE_OPTS="-Dhadoop.security.logger=ERROR,RFAS $HADOOP_DATANODE_OPTS"
  178.  
  179. export HADOOP_SECONDARYNAMENODE_OPTS="-Dhadoop.security.logger=${HADOOP_SECURITY_LOGGER:-INFO,RFAS} -Dhdfs.audit.logger=${HDFS_AUDIT_LOGGER:-INFO,NullAppender} $HADOOP_SECONDARYNAMENODE_OPTS"
  180.  
  181. export HADOOP_NFS3_OPTS="$HADOOP_NFS3_OPTS"
  182. export HADOOP_PORTMAP_OPTS="-Xmx512m $HADOOP_PORTMAP_OPTS"
  183.  
  184. # The following applies to multiple commands (fs, dfs, fsck, distcp etc)
  185. export HADOOP_CLIENT_OPTS="-Xmx512m $HADOOP_CLIENT_OPTS"
  186. #HADOOP_JAVA_PLATFORM_OPTS="-XX:-UsePerfData $HADOOP_JAVA_PLATFORM_OPTS"
  187.  
  188. # On secure datanodes, user to run the datanode as after dropping privileges.
  189. # This **MUST** be uncommented to enable secure HDFS if using privileged ports
  190. # to provide authentication of data transfer protocol. This **MUST NOT** be
  191. # defined if SASL is configured for authentication of data transfer protocol
  192. # using non-privileged ports.
  193. export HADOOP_SECURE_DN_USER=${HADOOP_SECURE_DN_USER}
  194.  
  195. # Where log files are stored. $HADOOP_HOME/logs by default.
  196. #export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER
  197.  
  198. # Where log files are stored in the secure data environment.
  199. export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER}
  200.  
  201. ###
  202. # HDFS Mover specific parameters
  203. ###
  204. # Specify the JVM options to be used when starting the HDFS Mover.
  205. # These options will be appended to the options specified as HADOOP_OPTS
  206. # and therefore may override any similar flags set in HADOOP_OPTS
  207. #
  208. # export HADOOP_MOVER_OPTS=""
  209.  
  210. ###
  211. # Advanced Users Only!
  212. ###
  213.  
  214. # The directory where pid files are stored. /tmp by default.
  215. # NOTE: this should be set to a directory that can only be written to by
  216. # the user that will run the hadoop daemons. Otherwise there is the
  217. # potential for a symlink attack.
  218. export HADOOP_PID_DIR=${HADOOP_PID_DIR}
  219. export HADOOP_SECURE_DN_PID_DIR=${HADOOP_PID_DIR}
  220.  
  221. # A string representing this instance of hadoop. $USER by default.
  222. export HADOOP_IDENT_STRING=$USER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement