Changeset 243 for hadoop4win-setup


Ignore:
Timestamp:
Apr 12, 2011, 12:09:04 PM (14 years ago)
Author:
jazz
Message:
  • modified start-hadoop-daemon
    • leave safe mode after started
  • modified start-hadoop-daemon
    • configure /opt/hadoop/conf/mapred-site.xml
Location:
hadoop4win-setup/my_packages/hadoop/bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • hadoop4win-setup/my_packages/hadoop/bin/hadoop4win-init

    r242 r243  
    3939</configuration>
    4040EOF
     41  cat > /opt/hadoop/conf/mapred-site.xml << EOF
     42<?xml version="1.0"?>
     43<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
     44<configuration>
     45  <property>
     46    <name>mapred.job.tracker</name>
     47    <value>localhost:9001</value>
     48  </property>
     49</configuration>
     50EOF
    4151fi
    4252
  • hadoop4win-setup/my_packages/hadoop/bin/start-hadoop-daemon

    r232 r243  
    55/opt/hadoop/bin/hadoop-daemon.sh start jobtracker
    66/opt/hadoop/bin/hadoop-daemon.sh start tasktracker
     7/opt/hadoop/bin/hadoop dfsadmin -safemode leave
    78echo "=========================================="
    89echo "run 'stop-hadoop' to stop hadoop daemons. "
Note: See TracChangeset for help on using the changeset viewer.