hyphen in hive struct field

2015-03-24 Thread Udit Mehta
Hi, I have a hive table query: create external table test (field1 struct< `inner-table` : string>); I believe hyphens are disallowed but to overcome that i read that we can use ``(ticks) around them. But even this seems to fail. Is there a way around this or hypens are not allowed in nested hi

Hive 1.1.0 compile error

2015-03-24 Thread 小木头
when I compile Hive 1.1 from src on my server, it encounter errors like below : [ERROR] Failed to execute goal on project hive-shims-0.23: Could not resolve dependencies for project org.apache.hive.shims:hive-shims-0.23:jar:1.1.0: The following artifacts could not be resolved: org.xerial.snapp

GenericUDF configure method not called for ORC tables

2015-03-24 Thread Rahul Sharma
Hi, I have a Hive table stored as ORC with the following properties: # Detailed Table Information Database: default Owner: root CreateTime: Tue Mar 24 21:33:53 PDT 2015 LastAccessTime: UNKNOWN Protect Mode: None Retention:

Re: Delete ORC partition

2015-03-24 Thread Megha Garg
Thanks a lot. That worked for me. On Wed, Mar 25, 2015 at 2:40 AM, Steve Howard wrote: > What happens if you try it with the actual colon rather than the encoded > value? > > alter table my_tbl drop partition (date='2014-01-02 00:00:00.0') ; > > On Tue, Mar 24, 2015 at 12:37 AM, Megha Garg > w

rename a database

2015-03-24 Thread Shushant Arora
Hi Is there any way in hive0.10 to rename a database ? Thanks

Re: Executing HQL files from JAVA application.

2015-03-24 Thread Gopal Vijayaraghavan
Hi, Any mechanism which bypasses schema layers for SQL is a bad idea. See this example for how you can connect to HiveServer2 directly from Java - https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveSe rver2Clients-JDBCClientSampleCode Use the JDBC driver to access HiveServ

Re: [ANNOUNCE] New Hive Committers - Jimmy Xiang, Matt McCline, and Sergio Pena

2015-03-24 Thread Matthew McCline
? Thanks everyone, too! Congrats to Jimmy and Sergio. I hear we will soon receive some "karma". From: Jimmy Xiang Sent: Tuesday, March 24, 2015 8:41 AM To: user@hive.apache.org Cc: sanjiv.is...@gmail.com; d...@hive.apache.org; Matthew McCline; jxi...@apache.o

RE: Analyze stats on 4 million rows table fails with exception Buffer underflow.

2015-03-24 Thread Mich Talebzadeh
Hm I ran it analyze stats again and it worked second timeL MapReduce Total cumulative CPU time: 5 minutes 26 seconds 500 msec Ended Job = job_1426887201015_0016 Table oraclehadoop.tdash stats: [numFiles=4, numRows=400, totalSize=32568651117, rawDataSize=32564651117] MapReduce Jobs Launch

Re: Delete ORC partition

2015-03-24 Thread Steve Howard
What happens if you try it with the actual colon rather than the encoded value? alter table my_tbl drop partition (date='2014-01-02 00:00:00.0') ; On Tue, Mar 24, 2015 at 12:37 AM, Megha Garg wrote: > Thanks for correcting, that was a typo. My actual command is :- > > alter table my_tbl drop

Analyze stats on 4 million rows table fails with exception Buffer underflow.

2015-03-24 Thread Mich Talebzadeh
Hi all, Trying to analyze stats on 4 million rows table imported from Oracle via Sqoop and Hive 0: jdbc:hive2://rhes564:10010/default> analyze table tdash compute statistics; INFO : Hadoop job information for Stage-0: number of mappers: 121; number of reducers: 0 INFO : 2015-03-24

The curious case of the hive-server-2 empty partitions.

2015-03-24 Thread Edward Capriolo
Hey all, I have cloudera 5.3, and an issue involving HiveServer2, Hive. We have a process that launches Hive JDBC queries, hourly. This process selects from one table and builds another. It looks something like this (slightly obfuscated query) FROM beacon INSERT OVERWRITE TABLE author_arti

Re: [ANNOUNCE] New Hive Committers - Jimmy Xiang, Matt McCline, and Sergio Pena

2015-03-24 Thread Jimmy Xiang
Thanks everyone! Congrats to Sergio and Matt!! On Mon, Mar 23, 2015 at 11:36 PM, Xu, Cheng A wrote: > Congratulations!!! > > > > *From:* @Sanjiv Singh [mailto:sanjiv.is...@gmail.com] > *Sent:* Tuesday, March 24, 2015 12:45 PM > *To:* user@hive.apache.org > *Cc:* d...@hive.apache.org; mmccl...@h

Date conversion in Hive

2015-03-24 Thread Raunak Jhawar
UDF's are great but if you do not want to use one, you can still convert Long dates into short dates using the set of inbuilt functions. Thu Mar 19 08:30:06 + 2015 (stored as string) can be converted into 2015-03-19 14:00:06 (stored as date timestamp object - all times referred from local time