Re: Error while table creation

2013-03-09 Thread Abhishek Gayakwad
it is an old installation, we recently upgraded hive 0.7.0 to 0.9.0 and we are not using "if not exists" clause On Sun, Mar 10, 2013 at 4:37 AM, Ramki Palle wrote: > Just wondering if your create table syntax include "if not exists" such as > > CREATE EXTERNAL TABLE IF NOT EXISTS my_table ( >

Re: Error while table creation

2013-03-09 Thread Ramki Palle
Just wondering if your create table syntax include "if not exists" such as CREATE EXTERNAL TABLE IF NOT EXISTS my_table ( ... ... ... ) On Sun, Mar 10, 2013 at 2:34 AM, Viral Bajaria wrote: > Is this is a new installation of Hive or did you upgrade ? How many tables > do you already have ? >

Re: Find current db we r using in Hive

2013-03-09 Thread Nagarjuna Kanamarlapudi
Another alternative way, just say  Desc extended There we can see the db name of the table  — Sent from iPhone On Sun, Mar 10, 2013 at 1:02 AM, Mark Grover wrote: > Created https://issues.apache.org/jira/browse/HIVE-4144 > On Fri, Mar 8, 2013 at 5:25 AM, Dean Wampler > wrote: >> It's odd

Re: Error while table creation

2013-03-09 Thread Viral Bajaria
Is this is a new installation of Hive or did you upgrade ? How many tables do you already have ? On Sat, Mar 9, 2013 at 12:00 PM, Abhishek Gayakwad wrote: > while trying to create external table in oozie hive action, I am getting > following error, hive version is 0.9.0 > > > Caused by: javax.jd

Error while table creation

2013-03-09 Thread Abhishek Gayakwad
while trying to create external table in oozie hive action, I am getting following error, hive version is 0.9.0 Caused by: javax.jdo.JDODataStoreException: Insert of object "org.apache.hadoop.hive.metastore.model.MColumnDescriptor@46c1dc0b" using statement "INSERT INTO `CDS` (`CD_ID`) VALUES (?)"

Re: Find current db we r using in Hive

2013-03-09 Thread Mark Grover
Created https://issues.apache.org/jira/browse/HIVE-4144 On Fri, Mar 8, 2013 at 5:25 AM, Dean Wampler wrote: > It's odd that there is no such command. The trick Ramki mentioned is the > only one I know of. Two points about it, though: > > 1. It only works on Hive v0.8+. > 2. I've seen a few cases

Re: Rename external table, including HDFS directory

2013-03-09 Thread Ramki Palle
As you can run the hadoop dfs commands from inside Hive, you can put both the commands in a script file and run the script file using hive. These are still two different commands but are together at one place and can be executed in the same environment in one go. -Ramki. On Fri, Mar 8, 2013 at 5

Re: hive issue with sub-directories

2013-03-09 Thread Mark Grover
Suresh, By default, the partition column name has to be appear in HDFS directory structure. e.g. /user/hive/warehouse//=/data1.txt /user/hive/warehouse//=/data2.txt On Thu, Mar 7, 2013 at 7:20 AM, Suresh Krishnappa wrote: > Hi All, > I have the following directory structure in hdfs > > /test/a/

Re: difference between add jar in hive session and hive --auxpath

2013-03-09 Thread Edward Capriolo
BTW if your looking for protobuf + hive you should look at... https://github.com/edwardcapriolo/hive-protobuf/ On Sat, Mar 9, 2013 at 12:32 PM, Ramki Palle wrote: > I am not sure whether it works but try this: > > Put your ADD JAR commands into a file and invoke hive with -i file option. > > o

Re: HIVE issues when using large number of partitions

2013-03-09 Thread Edward Capriolo
2) Getting 'out of memory' java exception while adding partitions > 5 3) Sometimes getting 'out of memory' java exception for select queries for partitions > 1 So hive/hadoop have to "plan" the job. Planning involves building all the partitions into a list (in memory) of the client. It als

Re: difference between add jar in hive session and hive --auxpath

2013-03-09 Thread Ramki Palle
I am not sure whether it works but try this: Put your ADD JAR commands into a file and invoke hive with -i file option. or insert your ADD JAR commands in your $HOME/.hiverc file and start hive. -Ramki. On Fri, Mar 8, 2013 at 11:55 PM, Edward Capriolo wrote: > Essentially anything that is p

Re: HIVE issues when using large number of partitions

2013-03-09 Thread Ramki Palle
Check this for your first question: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Recoverpartitions Please post if you find any solution for your 2nd and 3rd questions. Regards, Ramki. On Thu, Mar 7, 2013 at 8:01 PM, Suresh Krishnappa < suresh.krishna...