hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ranjini Rathinam <ranjinibe...@gmail.com>
Subject Re: HIVE+MAPREDUCE
Date Wed, 22 Jan 2014 08:19:05 GMT
Hi,

Like , for there is code for hbase in mapreduce ,(able to put data in
table,configuration for hbase ) we write code in Mapreduce,

Like wise i need for hive in mapreduce. In Hive CLI i am able to load but
need to do through mapreduce code.

Please provide any sample code .

Thanks in advance.

On Tue, Jan 21, 2014 at 5:59 PM, Nirmal Kumar <nirmal.kumar@impetus.co.in>wrote:

> You can load data into existing tables from the Hive CLI using the
> commands:
>
> 1. LOAD DATA LOCAL INPATH '/home/guest/input/test_order.dat' OVERWRITE
> INTO TABLE orders;
>         If the data is in the local file system
> 2. LOAD DATA INPATH '/user/guestuser/lineitem.dat' INTO table line_item;
>         If the data is in the HDFS
>
> Thanks,
> -Nirmal
>
> -----Original Message-----
> From: Chris Mawata [mailto:chris.mawata@gmail.com]
> Sent: Tuesday, January 21, 2014 4:48 PM
> To: user@hadoop.apache.org
> Subject: Re: HIVE+MAPREDUCE
>
> If you put the sentence
> "Need to load the data into hive table using mapreduce, using java"
> into your google search box you will get tons of information.
>
> On 1/21/2014 3:21 AM, Ranjini Rathinam wrote:
> > Need to load the data into hive table using mapreduce, using java
>
>
> ________________________________
>
>
>
>
>
>
> NOTE: This message may contain information that is confidential,
> proprietary, privileged or otherwise protected by law. The message is
> intended solely for the named addressee. If received in error, please
> destroy and notify the sender. Any use of this email is prohibited when
> received in error. Impetus does not represent, warrant and/or guarantee,
> that the integrity of this communication has been maintained nor that the
> communication is free of errors, virus, interception or interference.
>

Mime
View raw message