Yahoo India Web Search

Search results

  1. Dictionary
    hive
    /hʌɪv/

    noun

    • 1. a beehive.
    • 2. a place in which people are busily occupied: "the kitchen became a hive of activity"

    verb

    • 1. place (bees) in a hive: "smoke is used to subdue bees when taking and hiving a swarm"

    More definitions, origin and scrabble points

  2. Feb 20, 2013 · You have just to specify another partition name, so your query should look like: from sample_table insert overwrite table sample1 partition (src='a') select * where act=10 insert overwrite table sample1 partition (src='b') select * where act=20; After that you should see 2 new partitions "a" and "b" in table "sample1" with some data from these ...

  3. Jul 23, 2013 · Hive aims to provide acceptable (but not optimal) latency for interactive data browsing, queries over small data sets or test queries. Hive is not designed for online transaction processing and does not offer real-time queries and row level updates. It is best used for batch jobs over large sets of immutable data (like web logs).

  4. Jan 29, 2014 · I'm trying to filter data between September 1st, 2010 and August 31st, 2013 in a Hive table. The column containing the date is in string format (yyyy-mm-dd). I can use month() and year() on this column. But how do I use them to filter data between the above dates? Any examples/sample code would be welcome!

  5. Sep 18, 2012 · select ${which_date}; If you're planning to set variables from shell script and want to pass those variables into your Hive script (HQL) file, you can use --hivevar option while calling hive or beeline command. # shell script will invoke script like this. beeline --hivevar tablename=testtable -f select.hql.

  6. Jan 5, 2014 · I am using Hue 3.7.0 - The Hadoop UI and to get current date/time information we can use below commands in Hive: SELECT from_unixtime(unix_timestamp()); --/Selecting Current Time stamp/ SELECT CURRENT_DATE; --/Selecting Current Date/ SELECT CURRENT_TIMESTAMP; --/Selecting Current Time stamp/

  7. Step 1 - Loaded the data from hive table into another table as follows. DROP TABLE IF EXISTS TestHiveTableCSV; CREATE TABLE TestHiveTableCSV ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' AS SELECT Column List FROM TestHiveTable; Step 2 - Copied the blob from hive warehouse to the new location with appropriate extension

  8. Nov 18, 2016 · It's simple usually to change/modify the exesting table use this syntax in Hive. ALTER TABLE table_name CHANGE old_col_name new_col_name new_data_type. Here you can change your column name and data type at a time. If you don't want to change col_name simply makes old_col_name and new_col_name are same. Ok. Come to your problem.

  9. Jan 27, 2014 · 14. Below python program should work to access hive tables from python: import commands. cmd = "hive -S -e 'SELECT * FROM db_name.table_name LIMIT 1;' ". status, output = commands.getstatusoutput(cmd) if status == 0: print output. else: print "error".

  10. Aug 1, 2014 · Similar to @VB_ answer, use the BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING statement. The HiveQL query is therefore: SELECT key, product_code, SUM(costs) OVER (PARTITION BY key ORDER BY key ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM test; answered Aug 12, 2014 at 8:34. joshlk.

  11. Dec 11, 2012 · Just FYI, for Spark SQL this will also not work to update an existing partition's location, mostly because the Spark SQL API does not support it. Also from the Hive CLI, you would need to run use <schema> first, otherwise it will fail with FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter partition.

  1. People also search for