hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jinhang du <dujinh...@gmail.com>
Subject Re: how to save the output information of hive console client to a file?
Date Thu, 16 Jun 2011 05:15:58 GMT
Thanks.

2011/6/15 Shouguo Li <the1plummie@gmail.com>

> you can save the output to a directory, for later use. like this:
> INSERT OVERWRITE LOCAL DIRECTORY '/tmp/hive_query_dump/'
> SELECT * FROM table1;
>
> more details here: http://wiki.apache.org/hadoop/Hive/LanguageManual/DML
> (scroll to the end of the page)
>
> if you need to do more complicated processing after you get the output from
> hive, maybe you want to run queries from some scripts (like python) via hive
> server. here are some docs about that:
> http://wiki.apache.org/hadoop/Hive/HiveServer
> http://wiki.apache.org/hadoop/Hive/HiveClient
>
> hope that helps.
> good luck!
>
>
> On Tue, Jun 14, 2011 at 4:45 AM, jinhang du <dujinhang@gmail.com> wrote:
>
>> Hi all,
>>
>> I want record the output of every commends executed on hive console
>> client.
>> How to do it ?
>>
>> Thanks.
>>
>> --
>> dujinhang
>>
>
>


-- 
dujinhang

Mime
View raw message