Tuesday, 15 July 2014

java - Hadoop YARN simple yarn application -



java - Hadoop YARN simple yarn application -

i trying run simple yarn application listed here: https://github.com/hortonworks/simple-yarn-app

i beginner both java , hadoop, , when seek compile simple yarn client file using 'javac', next error:

client.java:9: error: bundle org.apache.hadoop.conf not exist

import org.apache.hadoop.conf.configuration;

the command using compile file is:

javac client.java

i have googled error see if find jar file missing classpath, couldn't find helpful respect yarn. of results related hbase, pig or hive.

can please point me towards relevant jar file missing here? thanks.

add hadoop jars in classpath:

hadoop_client=/usr/lib/hadoop/client-0.20 hadoop_lib=/usr/lib/hadoop/lib in ${hadoop_client}/*.jar ; classpath=$classpath:$i done in ${hadoop_lib}/*.jar ; classpath=$classpath:$i done javac -cp $classpath yourclass.java

save runscript.sh , run it.

java hadoop yarn

No comments:

Post a Comment