hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuti Awasthi <stutiawas...@hcl.com>
Subject RE: MR - Input from Hbase output to HDFS
Date Fri, 11 Nov 2011 05:55:46 GMT
The method " setOutputPath (JobConf,Path)" take JobConf as a parameter not the Job object.

At least this is the error Im getting while compiling with Hadoop 0.20.2 jar with eclipse.

FileOutputFormat.setOutputPath(conf, new Path("/output"));

-----Original Message-----
From: Prashant Sharma [mailto:prashant.iiith@gmail.com] 
Sent: Friday, November 11, 2011 11:20 AM
To: user@hbase.apache.org
Subject: Re: MR - Input from Hbase output to HDFS

Hi stuti,
I was wondering why  you are not using job object to set output path like this.

FileOutputFormat.setOutputPath(job, new Path("outputReadWrite") );


On Fri, Nov 11, 2011 at 10:43 AM, Stuti Awasthi <stutiawasthi@hcl.com>wrote:

> Hi Andrie,
> Well I am bit confused. When I use Jobconf , and associate with 
> JobClient to run the job then I get the error that "Input directory is not set".
> Since I want my input to be taken by Hbase table which I already 
> configured with "TableMapReduceUtil.initTableMapperJob". I don't want 
> to set input directory via jobconf.
> How to mix these 2 so that I can get input from Hbase and write ouput 
> to HDFS.
> Thanks
> -----Original Message-----
> From: Andrei Cojocaru [mailto:majormax@gmail.com]
> Sent: Thursday, November 10, 2011 7:09 PM
> To: user@hbase.apache.org
> Subject: Re: MR - Input from Hbase output to HDFS
> Stuti,
> I don't see you associating JobConf with Job anywhere.
> -Andrei
> ----------------------------------------------------------------------
> -------------------------------------------------
> The contents of this e-mail and any attachment(s) are confidential and 
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its 
> affiliates. Any views or opinions presented in this email are solely 
> those of the author and may not necessarily reflect the opinions of 
> HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, 
> modification, distribution and / or publication of this message 
> without the prior written consent of the author of this e-mail is 
> strictly prohibited. If you have received this email in error please 
> delete it and notify the sender immediately. Before opening any mail 
> and attachments please check them for viruses and defect.
> ----------------------------------------------------------------------
> -------------------------------------------------

View raw message