Problem: When I submit a task to my hadoop 2.2.0 cluster, it does not appear in the work tracker , but the task completes successfully. . can see the result, and it works correctly and prints the output as it starts.
I tried multiple-choice options, but the job tracker doesn't see the job. If I start a streaming task using 2.2.0 hadoop, it appears in the task tracker, but when I submit it via apoop-client api, it does not appear in the work tracker. I am looking at the ui interface on port 8088 to check if it works.
Environment OSX Mavericks, Java 1.6, Hadoop 2.2.0 single cluster node, Tomcat 7.0.47
code
try { configuration.set("fs.defaultFS", "hdfs://127.0.0.1:9000"); configuration.set("mapred.jobtracker.address", "localhost:9001"); Job job = createJob(configuration); job.waitForCompletion(true); } catch (Exception e) { logger.log(Level.SEVERE, "Unable to execute job", e); } return null;
etc. / Hadoop / mapred -site.xml
<configuration> <property> <name>mapreduce.framework.name</name> <value>yarn</value> </property> <property> <name>mapred.job.tracker</name> <value>localhost:9001</value> </property> </configuration>
etc. / Hadoop / core-site.xml
<configuration> <property> <name>hadoop.tmp.dir</name> <value>/tmp/hadoop-${user.name}</value> <description>A base for other temporary directories.</description> </property> <property> <name>fs.default.name</name> <value>hdfs://localhost:9000</value> </property> </configuration>
source share