Re: Exceptions with importtsv

2012-04-26 Thread slim tebourbi
Hi Sambit, I think that you should add google guava jar to your job classpath. Slim. Le 26 avril 2012 10:50, Sambit Tripathy a écrit : > Hi All, > > Can anyone help me with this exception? > > I have been trying to import data from csv files into HBase. > > As per my understanding the process i

Re: Exceptions with importtsv

2012-04-26 Thread Sambit Tripathy
Slim, That exception is gone now after adding guava jar. (I wonder why do we need a Google Data Java Client !!!) Well there is something more, I am getting the following exception now. Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAcce

Re: Exceptions with importtsv

2012-04-26 Thread Peter Vandenabeele
On Thu, Apr 26, 2012 at 10:40 AM, Sambit Tripathy wrote: > Slim, > > > That exception is gone now after adding guava jar. (I wonder why do we need > a Google Data Java Client !!!) > > Well there is something more, I am getting the following exception now. > > Exception in thread "main" java.lang.r

Re: Exceptions with importtsv

2012-04-26 Thread slim tebourbi
As you use a hbase client in the importer you should have the zookeeper dependency. So add it to the job classpath. I think that you should also add the hbase/zookeeper confs into your classpath. For your question on guava, it's used in the parser (the guava splitter). Slim. Le 26 avril 2012 11:

Re: Exceptions with importtsv

2012-04-26 Thread Harsh J
Sambit, Just a tip: When using the "hadoop" executable to run HBase programs of any kind, the right way is to do this: HADOOP_CLASSPATH=`hbase classpath` hadoop jar This will ensure you run with all HBase dependencies loaded on the classpath, for code to find its HBase-specific resources. On

Re: Exceptions with importtsv

2012-04-26 Thread Sambit Tripathy
Thanks all for the reply. I am able to run this. HADOOP_CLASSPATH=`${HBASE_HOME}/bin/hbase classpath` hadoop jar ${HBASE_HOME}/hbase-0.92.1.jar importtsv -Dimporttsv.bulk.output=/user/hadoop/input/bulk -Dimporttsv.columns=HBASE_ROW_KEY,ns: -Dimporttsv.separator=, testTable /opt/hadoop/raw -Sa

Re: Exceptions with importtsv

2012-04-27 Thread Sambit Tripathy
I am able to run this command but it goes on forever. I don't see any data uploaded. This is what I see on the console. http://pastebin.com/J2WApji1 Any idea on how to debug this? On Fri, Apr 27, 2012 at 11:30 AM, Sambit Tripathy wrote: > Thanks all for the reply. > > I am able to run this

Re: Exceptions with importtsv

2012-04-29 Thread Yifeng Jiang
Hi Sambit, Are you specifying a local file system path on the command line? Before invoking importtsv, you will need to copy your tsv files to HDFS at first. -Yifeng On Apr 27, 2012, at 6:08 PM, Sambit Tripathy wrote: > I am able to run this command but it goes on forever. I don't see any data

Re: Exceptions with importtsv

2012-05-01 Thread Sambit Tripathy
Thanks Yifeng. Well thought input :) and it works. On Sun, Apr 29, 2012 at 1:43 PM, Yifeng Jiang wrote: > Hi Sambit, > > Are you specifying a local file system path on the command line? > Before invoking importtsv, you will need to copy your tsv files to HDFS at > first. > > -Yifeng > > On Apr 2