alexholmes / hiped2

Source code that accompanies the book "Hadoop in Practice, Second Edition".
Apache License 2.0
80 stars 73 forks source link

Cannot run example job (Appendix A) #4

Open guzu92 opened 8 years ago

guzu92 commented 8 years ago

Hi, While running command hip hip.ch1.InvertedIndexJob --input hip/input --output hip/output I get the following error:

"File does not exist: hdfs://localhost:54310/usr/local/hip-2.0.0/lib/jopt-simple-4.5.jar"

Here are my env variables (Ubuntu .bashrc file)

export HIP_HOME=/usr/local/hip-2.0.0 export PATH=$HIP_HOME/bin:$PATH

export HADOOP_HOME=/usr/local/hadoop export PATH=$PATH:$HADOOP_HOME/bin export PATH=$PATH:$HADOOP_HOME/sbin export HADOOP_MAPRED_HOME=$HADOOP_HOME export HADOOP_COMMON_HOME=$HADOOP_HOME export HADOOP_HDFS_HOME=$HADOOP_HOME export YARN_HOME=$HADOOP_HOME export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"

I've run the following prior execution to inlcude the JAR file:

export HADOOP_CLASSPATH=$HADOOP_HOME/lib export HADOOP_CLASSPATH=/usr/local/hip-2.0.0/lib/jopt-simple-4.5.jar:$HADOOP_CLASSPATH

but I get the same error message about not finding the jopt-simple-4.5.jar

Thank you