Changeset 242
- Timestamp:
- Apr 12, 2011, 11:31:58 AM (14 years ago)
- Location:
- hadoop4win-setup
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop4win-setup/hadoop4win-setup.bat
r241 r242 167 167 copy /Y "%MY_PACKAGE%\hbase\bin\*" "%CYGWIN_ROOT%\bin" 168 168 copy /Y "%MY_PACKAGE%\hadoop\bin\*" "%CYGWIN_ROOT%\bin" 169 xcopy /Y /E /I "%MY_PACKAGE%\hadoop\conf-examples" "%HADOOP_DES%\conf-examples"170 169 171 170 cls -
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.