Member since
11-11-2019
635
Posts
34
Kudos Received
27
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 539 | 10-09-2025 12:29 AM | |
| 5875 | 02-19-2025 09:43 PM | |
| 2242 | 02-28-2023 09:32 PM | |
| 4403 | 02-27-2023 03:33 AM | |
| 26212 | 12-24-2022 05:56 AM |
07-05-2021
10:47 PM
By default hive displays in UTC. If you want to use specific timestamp,you can run below command SELECT from_utc_timestamp(cast(from_unixtime(cast(1623943533 AS bigint)) as TIMESTAMP),"Asia/Kolkata") ;
... View more
07-05-2021
09:50 AM
I believe this issue is the result of upgrade. Did you upgrade from 3.0.1 to 3.1.0 ? In which version you were using Embedded mode ? Can you recreate the metadata if this is not production and check ?
... View more
07-02-2021
05:18 AM
Hi Srinivas, Thanks for the update. Could you please give the kudos,if the solution has worked ? Thanks, Asish
... View more
06-30-2021
11:19 PM
thanks for the answer, I also tried other ODBC drivers but they all act the same way.
... View more
06-27-2021
07:10 AM
As per HIVE-12192, by default, Hive displays timestamp in UTC. This article lists the Hive query commands that can be used to change the timestamp.
To display the current timestamp in Asia/Kolkata:
SELECT from_utc_timestamp(cast(from_unixtime(cast(current_timestamp() AS bigint)) as TIMESTAMP),"Asia/Kolkata")
To display a UNIX epoch number in Asia/Kolkata:
SELECT from_utc_timestamp(cast(from_unixtime(cast(1623943533 AS bigint)) as TIMESTAMP),"Asia/Kolkata") ;
... View more
Labels:
06-27-2021
06:45 AM
To list all the tables that are ACID(TRANSACTIONAL)/ NON_TRANSACTIONAL, perform the following steps:
Connect to the backend database
Execute "use hive" as all the tables are in the Hive database Note: Please check if the database name is different. This is specified at the time of creating the Hive service.
Execute the following to check for ACID table: select PARAM_KEY,PARAM_VALUE,TBL_NAME from TABLE_PARAMS,TBLS where PARAM_KEY='transactional' and PARAM_VALUE='true' and TABLE_PARAMS.TBL_ID=TBLS.TBL_ID;
OR, execute below to check for NON-TRANSACTIONAL table.
select PARAM_KEY,PARAM_VALUE,TBL_NAME from TABLE_PARAMS,TBLS where PARAM_KEY='transactional' and PARAM_VALUE='false' and TABLE_PARAMS.TBL_ID=TBLS.TBL_ID;
... View more
Labels:
05-03-2021
09:41 AM
@Raul23 Is datagrip a Java or non Java application? If it is a Java application. you need to use JDBC driver and use ODBC driver,if it is a non-java application. Download ODBC driver from https://www.cloudera.com/downloads/connectors/hive/odbc/2-6-9.html Driver JDBC drivers from https://www.cloudera.com/downloads/connectors/hive/jdbc/2-6-13.html Please select the latest driver. Please follow https://docs.cloudera.com/HDPDocuments/other/connectors/hive-jdbc/2.6.7/Simba-Hive-JDBC-Install-and-Configuration-Guide.pdf to configure
... View more
04-07-2021
12:31 AM
Hi @Magudeswaran , I can rewrite the query using sub-queries, but I have the same error: select count(*) as num_all_changes from ( select s.cod_pers, count(*) as num_changes from ( select t.cod_pers, t.cod_address, count(*) as num_address from be_prd_prt.test_case as t group by t.cod_pers, t.cod_address ) as s group by s.cod_pers having count(*)>1 ) as gg ; +------------------+ | num_all_changes | +------------------+ | 63 | | 58 | | 64 | | 59 | +------------------+ 4 rows selected (18.077 seconds) As you can see, always 4 rows...
... View more
03-12-2021
02:39 AM
Follow https://community.cloudera.com/t5/Support-Questions/Hive-staging-directory-not-getting-cleaned-up/td-p/43976,if you are running large number of queriesies through hue
... View more
03-12-2021
12:24 AM
1 Kudo
COuld you please collect STATS and check,if it returns in corect counts https://docs.cloudera.com/HDPDocuments/HDP2/HDP-2.6.5/bk_cloud-data-access/content/hive-analyzing-tables.html
... View more