hadoop - Error while using FROM_UNIXTIME(UNIX_TIMESTAMP() in Hive -


i trying run function current date in hive getting following error:

error while compiling statement: failed: semanticexception no valid privileges required privileges query: server=server1->db=_dummy_database->table=_dummy_table->action=select;

i have searched online , being suggested following functions current date in hive giving same error:

select from_unixtime(unix_timestamp()); --/selecting current time stamp/  select current_date; --/selecting current date/  select current_timestamp; --/selecting current time stamp/ 

but showing error if run them given.

right answers: 1. select from_unixtime(unix_timestamp()); - works impala

  1. select from_unixtime(unix_timestamp()) any_table_name; - works in hive

note: must use clause any_table_name present in database hive


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -