Changeset 242


Ignore:
Timestamp:
Apr 12, 2011, 11:31:58 AM (13 years ago)
Author:
jazz
Message:
  • modified hadoop4win-setup.bat
    • remove copying hadoop/conf-examples
  • removed my_packages/hadoop/conf-examples
  • modified hadoop4win-init
    • [BUGFIX] when using conf-examples, Win7 will not able to set the correct permission. Now we use copy default conf folder to conf-pseudo.
Location:
hadoop4win-setup
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • hadoop4win-setup/hadoop4win-setup.bat

    r241 r242  
    167167copy /Y "%MY_PACKAGE%\hbase\bin\*" "%CYGWIN_ROOT%\bin"
    168168copy /Y "%MY_PACKAGE%\hadoop\bin\*" "%CYGWIN_ROOT%\bin"
    169 xcopy /Y /E /I "%MY_PACKAGE%\hadoop\conf-examples" "%HADOOP_DES%\conf-examples"
    170169
    171170cls
  • hadoop4win-setup/my_packages/hadoop/bin/hadoop4win-init

    r241 r242  
    1212  tar zxvf /usr/src/hadoop-*.tar.gz -C /opt/
    1313  mv /opt/hadoop-* /opt/hadoop
    14   cp -R /usr/src/conf-examples/ /opt/hadoop/conf-pseudo
    15   mv /opt/hadoop/conf/ /opt/hadoop/conf-local
     14  cp /opt/hadoop/conf/ /opt/hadoop/conf-local
     15  mv /opt/hadoop/conf/ /opt/hadoop/conf-pseudo
    1616  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>
     30EOF
     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>
     40EOF
    1741fi
    1842
Note: See TracChangeset for help on using the changeset viewer.