hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lars hofhansl <lhofha...@yahoo.com>
Subject Re: Error in importtsv
Date Fri, 20 Jul 2012 07:04:12 GMT
importtsv runs as an M/R job, so the file needs to exist in HDFS (unless you're running in
local mode, in which case you can try to use a file URL: file:///usr/ipdata.txt, although
I have not tried that).

See here: http://hadoop.apache.org/common/docs/r0.17.2/hdfs_shell.html
specifically -copyFromLocal or -put.

importtsv is documented here: http://hbase.apache.org/book/ops_mgt.html#importtsv

'hope that helps.

-- Lars

----- Original Message -----
From: iwannaplay games <funnlearnforkids@gmail.com>
To: user@hbase.apache.org
Sent: Thursday, July 19, 2012 11:55 PM
Subject: Error in importtsv

I ran this command

./hbase org.apache.hadoop.hbase.mapreduce.ImportTsv
-Dimporttsv.columns=HBASE_ROW_KEY,startip,endip,countryname IPData

It says :

INFO mapred.JobClient: Cleaning up the staging area
12/07/19 23:57:38 ERROR security.UserGroupInformation:
PriviledgedActionException as:hduser
Input path does not exist: hdfs://master:54310/usr/ipdata.txt
Exception in thread "main"
org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input
path does not exist: hdfs://master:54310/usr/ipdata.txt

What path should i give for ipdata.txt or ipdatatsv file (input) so
that it recognizes the file


View raw message