You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by iwannaplay games <fu...@gmail.com> on 2012/07/20 08:55:55 UTC

Error in importtsv

I ran this command

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


It says :

INFO mapred.JobClient: Cleaning up the staging area
hdfs://master:54310/app/hadoop/tmp/hadoop/mapred/staging/hduser/.staging/job_201207192338_0006
12/07/19 23:57:38 ERROR security.UserGroupInformation:
PriviledgedActionException as:hduser
cause:org.apache.hadoop.mapreduce.lib.input.InvalidInputException:
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

Regards
Prabhjot

Re: Error in importtsv

Posted by lars hofhansl <lh...@yahoo.com>.
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 <fu...@gmail.com>
To: user@hbase.apache.org
Cc: 
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
/usr/ipdata.txt


It says :

INFO mapred.JobClient: Cleaning up the staging area
hdfs://master:54310/app/hadoop/tmp/hadoop/mapred/staging/hduser/.staging/job_201207192338_0006
12/07/19 23:57:38 ERROR security.UserGroupInformation:
PriviledgedActionException as:hduser
cause:org.apache.hadoop.mapreduce.lib.input.InvalidInputException:
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

Regards
Prabhjot


Re: Error in importtsv

Posted by Mohammad Tariq <do...@gmail.com>.
Have you changed the owner of your directory to hduser???

On Friday, July 20, 2012, iwannaplay games <fu...@gmail.com>
wrote:
> I ran this command
>
> ./hbase org.apache.hadoop.hbase.mapreduce.ImportTsv
> -Dimporttsv.columns=HBASE_ROW_KEY,startip,endip,countryname IPData
> /usr/ipdata.txt
>
>
> It says :
>
> INFO mapred.JobClient: Cleaning up the staging area
>
hdfs://master:54310/app/hadoop/tmp/hadoop/mapred/staging/hduser/.staging/job_201207192338_0006
> 12/07/19 23:57:38 ERROR security.UserGroupInformation:
> PriviledgedActionException as:hduser
> cause:org.apache.hadoop.mapreduce.lib.input.InvalidInputException:
> 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
>
> Regards
> Prabhjot
>

-- 
Regards,
    Mohammad Tariq