简体   繁体   中英

InvalidInputException When loading file into Hbase MapReduce

I am very new for Hadoop and Map Reduce. For starting bases i executed Word Count Program. It executed well but when i try running csv file into Htable which i followed [Csv File][1] It throwing me in to following error which i am not aware of it, please can any one help me in knowing the above error

    12/09/07 05:47:31 ERROR security.UserGroupInformation: PriviledgedActionException as:hduser cause:org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path   [1]: http://salsahpc.indiana.edu/ScienceCloud/hbase_hands_on_1.htm#shell_exercises

This error is really kiiling my time, please can any one help me with this exception

your job is attempting to read an input file from:

 hdfs://HadoopMaster:54310/user/hduser/csvtable

you should verify that this file exists on HDFS using the hadoop shell tools :

hadoop fs -ls /user/hduser/csvtable

my guess is that your file hasn't been loaded onto HDFS.

The problem why you are directing to path hdfs://HadoopMaster:54310/user/hduser/csvtable instead of csvtable is. 1) Add your Hbase jars into Hadoop class path because your Map reduce doesn't by default configure to hbase jars. 2) GO to hadoop-ev.sh and edit Hadoop_classpath and add all your hbase jars in it. hope it might work now

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM