Top "Hiveql" questions

Variant of SQL used in the Apache Hive data warehouse infrastructure.

Add a column in a table in HIVE QL

I'm writing a code in HIVE to create a table consisting of 1300 rows and 6 columns: create table test1 as SELECT …

hadoop hive hiveql
I have created a table in hive, I would like to know which directory my table is created in?

I have created a table in hive, I would like to know which directory my table is created in? I …

hive hiveql
How to calculate Date difference in Hive

I'm a novice. I have a employee table with a column specifying the joining date and I want to retrieve …

hadoop hive hiveql
Select top 2 rows in Hive

I'm a noobie here. I'm trying to retrieve top 2 tables from my employee list based on salary in hive (version 0.11). …

hadoop hive hiveql
Explode the Array of Struct in Hive

This is the below Hive Table CREATE EXTERNAL TABLE IF NOT EXISTS SampleTable ( USER_ID BIGINT, NEW_ITEM ARRAY<…

hadoop mapreduce hive hiveql
Row number functionality in Hive

How can I generate row numbers for an existing table while running a select query? For example: select row_number(), * …

hive hiveql
Hive error: parseexception missing EOF

I am not sure what I am doing wrong here: hive> CREATE TABLE default.testtbl(int1 INT,string1 STRING) …

hadoop hive hiveql hcatalog
How to rename a hive table without changing location?

Based on the Hive doc below: Rename Table ALTER TABLE table_name RENAME TO new_table_name; This statement lets …

hadoop hive hiveql
java.lang.RuntimeException:Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient

I have configured my Hive as given on link: http://www.youtube.com/watch?v=Dqo1ahdBK_A, but I …

hive hiveql hive-metastore
Convert string to timestamp in Hive

I have the following string representation of a timestamp in my Hive table: 20130502081559999 I need to convert it to a …

hadoop hive hiveql