Changeset 242 for hadoop4win-setup/my_packages/hadoop/bin/hadoop4win-init
- Timestamp:
- Apr 12, 2011, 11:31:58 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop4win-setup/my_packages/hadoop/bin/hadoop4win-init
r241 r242 12 12 tar zxvf /usr/src/hadoop-*.tar.gz -C /opt/ 13 13 mv /opt/hadoop-* /opt/hadoop 14 cp -R /usr/src/conf-examples/ /opt/hadoop/conf-pseudo15 mv /opt/hadoop/conf/ /opt/hadoop/conf- local14 cp /opt/hadoop/conf/ /opt/hadoop/conf-local 15 mv /opt/hadoop/conf/ /opt/hadoop/conf-pseudo 16 16 ln -s /opt/hadoop/conf-pseudo /opt/hadoop/conf 17 cat > /opt/hadoop/conf/core-site.xml << EOF 18 <?xml version="1.0"?> 19 <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> 20 <configuration> 21 <property> 22 <name>fs.default.name</name> 23 <value>hdfs://localhost:9000</value> 24 </property> 25 <property> 26 <name>hadoop.tmp.dir</name> 27 <value>/var/hadoop/hadoop-\${user.name}</value> 28 </property> 29 </configuration> 30 EOF 31 cat > /opt/hadoop/conf/hdfs-site.xml << EOF 32 <?xml version="1.0"?> 33 <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> 34 <configuration> 35 <property> 36 <name>dfs.replication</name> 37 <value>1</value> 38 </property> 39 </configuration> 40 EOF 17 41 fi 18 42
Note: See TracChangeset
for help on using the changeset viewer.