Top "Hive" questions

Hive is a database built on top of Hadoop and facilitates easy data summarization, ad-hoc queries, and the analysis of large datasets stored in Hadoop compatible distributed file system.

Is there a Hive equivalent of SQL "not like"

While Hive supports positive like queries: ex. select * from table_name where column_name like 'root~%'; Hive Does not …

syntax hive sql-like
How to copy all hive table from one Database to other Database

I have default db in hive table which contains 80 tables . I have created one more database and I want to …

hive hiveql impala
Is there a way to make a multi line comment in hive scripts

I know that we can make a single line comment with '--' in hiveQL(hive.sql scripts) but is there …

hive
Using Sqoop to import data from MySQL to Hive

I am using Sqoop (version 1.4.4) to import data from MySQL to Hive. The data will be a subset of one …

mysql hadoop hive sqoop
COLLECT_SET() in Hive, keep duplicates?

Is there a way to keep the duplicates in a collected set in Hive, or simulate the sort of aggregate …

java hadoop user-defined-functions hive
Hive from_unixtime for milliseconds

We have a timestamp epoch column (BIGINT) stored in Hive. We want to get Date 'yyyy-MM-dd' for this epoch. Problem …

hive unix-timestamp epoch milliseconds
How to know location about partition in hive?

If I write a hive sql like ALTER TABLE tbl_name ADD PARTITION (dt=20131023) LOCATION 'hdfs://path/to/tbl_name/…

sql hadoop hive
What's the best way to write if/else if/else if/else in HIVE?

Hive uses IF(condition, expression, expression), so when I want to do if / else if / else if / else, I have …

hive hql
Map type variable in hive

I am having trouble trying to define map type in hive. According to Hive Manual there definitely is a map …

hive hiveql
Date comparison in Hive

I'm working with Hive and I have a table structured as follows: CREATE TABLE t1 ( id INT, created TIMESTAMP, some_…

hive timestamp hiveql ddl