Re: how to save the output information of hive console client to a file?

2011-06-15 Thread jinhang du
iki.apache.org/hadoop/Hive/HiveClient > > hope that helps. > good luck! > > > On Tue, Jun 14, 2011 at 4:45 AM, jinhang du wrote: > >> Hi all, >> >> I want record the output of every commends executed on hive console >> client. >> How to do it ? >> >> Thanks. >> >> -- >> dujinhang >> > > -- dujinhang

Re: When joins are executed, exceptions occur.

2011-06-14 Thread jinhang du
from a join b on (a.s=b.s) select a.p, b.p When I use console client, this query is well executed. 2011/6/15 Shouguo Li > what query did u run? > > > On Tue, Jun 14, 2011 at 4:49 AM, jinhang du wrote: > >> >> Hi all, I use hive java client to execute hql. >&g

When joins are executed, exceptions occur.

2011-06-14 Thread jinhang du
Hi all, I use hive java client to execute hql. Simple queries like 'select * from table' are answered well. However, when i use join in my query ,exceptions occur. Error log : java.lang.NoClassDefFoundError: org/codehaus/jackson/map/JsonMappingException at org.apache.hadoop.hive.ql.exec.ExecD

how to save the output information of hive console client to a file?

2011-06-14 Thread jinhang du
Hi all, I want record the output of every commends executed on hive console client. How to do it ? Thanks. -- dujinhang

Re: Hive basic questions

2011-06-01 Thread jinhang du
As far as I know, 1. The external table does not need to copy data from hdfs to your warehouse when loading data. 2. "Location" locates the data in hdfs and it links data to the table. And when you drop table, data is not deleted. 3. The tables' information is stored in your metastore, ie derby, my

Re: Question about create hive tables.

2011-05-31 Thread jinhang du
How does the columns in the table match the "input.regex" ? In other words, which part of the regex matches the columns of the table? Will anybody offer some help? 2011/5/30 YUYANG LAN > hi, how about this ? > > (.+)&&&(.+?)(?:\^\^.*)? > > On Mon, May 3

Re: Question about create hive tables.

2011-05-30 Thread jinhang du
quot; > > > > * > * > > > -- Original -- > *From: * "jinhang du"; > *Date: * Mon, May 30, 2011 05:07 PM > *To: * "user"; > *Subject: * Question about create hive tables. > > My data form

Question about create hive tables.

2011-05-30 Thread jinhang du
My data format is as follows: a&&&b c&&&b^^xyz c&&&d^^hdo create table f(str1 string, str2 string) ROW FORMAT SERDE 'org.apache.hadoop.hive.contrib.serde2.RegexSerDe' With SERDEPROPERTIES ( "input.regex"="(.+)&&&(.+)(\^\^.+)?" ) My aim is : a b c b c d However , a b c b^^xyz c d^^hdo So how to

How to specify the files when creating external table?

2011-05-29 Thread jinhang du
Hi all, I want to create external tables, and the location should be a directory in HDFS. How could I specify several not all files in this directory to be stored into the table? Thanks. -- dujinhang

Re: Re: Hive create table

2011-05-29 Thread jinhang du
expression? Thanks. 在 2011年5月27日 下午11:21,bangbig 写道: > Check the log file, you can find more information about the error. The log > file could be found from the URL given below. > > > At 2011-05-27 20:07:17,"jinhang du" wrote: > > Are there any documents to he

Re: Hive create table

2011-05-27 Thread jinhang du
xSerDe' > With SERDEPROPERTIES ( > "input.regex"="(\\d+)&&&&(\\d+)&&&&(\\d+)" > ) > LOCATION '/path1; > > > 2011/5/25 jinhang du > >> Hi all, >> >> I want to custom the delimiter of the table in a

Re: how to invoke hive command line client?

2011-05-25 Thread jinhang du
So what's the difference between a embedded server and a standalone server? Can you help me understand it? 2011/5/26 김영우 > See, > http://wiki.apache.org/hadoop/Hive/HiveClient > > <http://wiki.apache.org/hadoop/Hive/HiveClient>- Youngwoo > > > 2011/5/26 jinhang

how to invoke hive command line client?

2011-05-25 Thread jinhang du
Hi all, I want to create a lot of tables and load data separately. These tables need different parameters. So I want to use python for example, to invoke the command line client. How to do it? My hive runs in embedded mode. Thanks. -- dujinhang

Re: Hive create table

2011-05-25 Thread jinhang du
rib.serde2.RegexSerDe' > With SERDEPROPERTIES ( > "input.regex"="(\\d+)&&&&(\\d+)&&&&(\\d+)" > ) > LOCATION '/path1; > > > 2011/5/25 jinhang du > >> Hi all, >> >> I want to custom the del

Hive create table

2011-05-25 Thread jinhang du
Hi all, I want to custom the delimiter of the table in a row. Like my data format is '124‘, and how could I create a table (int, int, int) Thanks. -- dujinhang

Re: An issue with Hive on hadoop cluster

2011-05-23 Thread jinhang du
Set the follow property in hive.site.xml. fs.default.name = hdfs: mapred.job.tracker = hive.metastore.warehouse.dir = Make sure you have the authority to write into this directory (hive.metastore.warehouse.dir). Try it. 2011/5/23 MIS > I'm getting into an issue when trying to run hive over t

Re: How to change the hive.metastore.warehouse.dir ?

2011-05-18 Thread jinhang du
thx. 2011/5/18 jinhang du > Thanks for your answers. > > I run my hive client console on a machine which doesn't belong to the > hadoop cluster. > I just changed "fs.default.name" and "mapred.job.tracker" in hive-site.xml > to connect the hadoop cluster. >

Re: How to change the hive.metastore.warehouse.dir ?

2011-05-17 Thread jinhang du
about my operations or my understanding about hive? Can hive just act a client without any changes on hadoop configuration? Thanks. 2011/5/18 Ted Yu > Can you try as user hadoop ? > > Cheers > > > > On May 17, 2011, at 9:53 PM, jinhang du wrote: > > > hi, >

How to change the hive.metastore.warehouse.dir ?

2011-05-17 Thread jinhang du
hi, The default value is "/user/hive/warehouse" in hive.site.xml. After I changed the directory to a path on HDFS, I got the exception. FAILED: Error in metadata: MetaException(message:Got exception: org.apache.hadoop.security. AccessControlException org.apache.hadoop.security.AccessControlExcepti