Task在TaskTracker上执行环境的准备(2)

bash-c "echo $$ > /home/xhh/workspace/Java/HMapred/build/test/mapred/task/local/taskTracker/jobcache/job_201112121911_0001/attempt_201112121911_0001_m_000003_0/pid ;exec'/opt/jdk1.6.0/jre/bin/java' '-Djava.library.path=/opt/jdk1.6.0/jre/lib/i386/server:/opt/jdk1.6.0/jre/lib/i386:/opt/jdk1.6.0/jre/../lib/i386:/opt/jdk1.6.0/jre/lib/i386/client:/opt/jdk1.6.0/jre/lib/i386::/usr/java/packages/lib/i386:/lib:/usr/lib:/home/xhh/workspace/Java/HMapred/build/test/mapred/task/local/taskTracker/jobcache/job_201112121911_0001/attempt_201112121911_0001_m_000003_0/work' '-Xmx200m' '-Djava.io.tmpdir=/home/xhh/workspace/Java/HMapred/build/test/mapred/task/local/taskTracker/jobcache/job_201112121911_0001/attempt_201112121911_0001_m_000003_0/work/tmp' '-classpath''/home/xhh/workspace/Java/HMapred/bin:/home/xhh/workspace/Java/HMapred/lib/ant.jar:/home/xhh/workspace/Java/HMapred/lib/commons-cli-1.2.jar:/home/xhh/workspace/Java/HMapred/lib/commons-codec-1.3.jar:/home/xhh/workspace/Java/HMapred/lib/commons-el-1.0.jar:/home/xhh/workspace/Java/HMapred/lib/commons-httpclient-3.0.1.jar:/home/xhh/workspace/Java/HMapred/lib/commons-logging-1.0.4.jar:/home/xhh/workspace/Java/HMapred/lib/commons-logging-api-1.0.4.jar:/home/xhh/workspace/Java/HMapred/lib/commons-net-1.4.1.jar:/home/xhh/workspace/Java/HMapred/lib/core-3.1.1.jar:/home/xhh/workspace/Java/HMapred/lib/Hadoop-0.20.2-tools.jar:/home/xhh/workspace/Java/HMapred/lib/hsqldb-1.8.0.10.jar:/home/xhh/workspace/Java/HMapred/lib/hsqldb-1.8.0.10.LICENSE.txt:/home/xhh/workspace/Java/HMapred/lib/jasper-compiler-5.5.12.jar:/home/xhh/workspace/Java/HMapred/lib/jasper-runtime-5.5.12.jar:/home/xhh/workspace/Java/HMapred/lib/jets3t-0.6.1.jar:/home/xhh/workspace/Java/HMapred/lib/jetty-6.1.14.jar:/home/xhh/workspace/Java/HMapred/lib/jetty-util-6.1.14.jar:/home/xhh/workspace/Java/HMapred/lib/jsp-2.1.jar:/home/xhh/workspace/Java/HMapred/lib/jsp-api-2.1.jar:/home/xhh/workspace/Java/HMapred/lib/junit-3.8.1.jar:/home/xhh/workspace/Java/HMapred/lib/kfs-0.2.2.jar:/home/xhh/workspace/Java/HMapred/lib/kfs-0.2.LICENSE.txt:/home/xhh/workspace/Java/HMapred/lib/log4j-1.2.15.jar:/home/xhh/workspace/Java/HMapred/lib/mockito-all-1.8.0.jar:/home/xhh/workspace/Java/HMapred/lib/oro-2.0.8.jar:/home/xhh/workspace/Java/HMapred/lib/servlet-api-2.5-6.1.14.jar:/home/xhh/workspace/Java/HMapred/lib/slf4j-api-1.4.3.jar:/home/xhh/workspace/Java/HMapred/lib/slf4j-log4j12-1.4.3.jar:/home/xhh/workspace/Java/HMapred/lib/xmlenc-0.52.jar:/home/xhh/workspace/Java/HMapred/lib/hdfs.jar::/home/xhh/workspace/Java/HMapred/build/test/mapred/task/local/taskTracker/jobcache/job_201112121911_0001/jars/classes:/home/xhh/workspace/Java/HMapred/build/test/mapred/task/local/taskTracker/jobcache/job_201112121911_0001/jars:/home/xhh/workspace/Java/HMapred/build/test/mapred/task/local/taskTracker/archive/mapred-fs/home/xhh/workspace/Java/HMapred/build/test/mapred/job/system/job_201112121911_0001/libjars/ant1.jar:/home/xhh/workspace/Java/HMapred/build/test/mapred/task/local/taskTracker/archive/mapred-fs/home/xhh/workspace/Java/HMapred/build/test/mapred/job/system/job_201112121911_0001/libjars/ant.jar:/home/xhh/workspace/Java/HMapred/build/test/mapred/task/local/taskTracker/jobcache/job_201112121911_0001/attempt_201112121911_0001_m_000003_0/work' '-Dhadoop.log.dir=/home/xhh/workspace/Java/HMapred/build/test/mapred/task/log' '-Dhadoop.root.logger=INFO,TLA' '-Dhadoop.tasklog.taskid=attempt_201112121911_0001_m_000003_0' '-Dhadoop.tasklog.totalLogFileSize=0' 'org.apache.hadoop.mapred.Child''211.69.205.3' '50070' 'attempt_201112121911_0001_m_000003_0' '1443792525'  < /dev/null  1>> /home/xhh/workspace/Java/HMapred/build/test/mapred/task/log/userlogs/attempt_201112121911_0001_m_000003_0/stdout 2>> /home/xhh/workspace/Java/HMapred/build/test/mapred/task/log/userlogs/attempt_201112121911_0001_m_000003_0/stderr"

   从这个调用系统的语句中我们可以归纳出这样的一个运行语句模式:java ***org.apache.hadoop.mapred.Child***,其中,***表示运行时所需要的一些JVM参数以及应用程序所依赖的第三方jar包和相应的配置参数;***表是应用程序运行时本身需要的一些输入参数。


内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/pszgx.html