Member since
11-11-2019
637
Posts
34
Kudos Received
27
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1041 | 10-09-2025 12:29 AM | |
| 8793 | 02-19-2025 09:43 PM | |
| 2467 | 02-28-2023 09:32 PM | |
| 5192 | 02-27-2023 03:33 AM | |
| 26877 | 12-24-2022 05:56 AM |
08-12-2021
05:10 AM
@vidanimegh, Sure. Thanks for your response, will wait for your update.
... View more
07-19-2021
10:26 AM
Hi Sai, Please follow https://community.cloudera.com/t5/Support-Questions/Does-hive-support-Photo-or-images-datatypes/td-p/221473 Copy the data to hdfs instead of loadpath and check, Thanks, Asish
... View more
07-18-2021
08:37 AM
All the hive related tables are stored under "hive" database in mysql. You can take mysql dump for a database hive and can prevent this from happening in the future. You can use command like: mysqldump -u root -p hive Reference: https://www.sqlshack.com/how-to-backup-and-restore-mysql-databases-using-the-mysqldump-command/
... View more
07-18-2021
08:32 AM
Following is the criteria:
ORC and Managed table
ACID enabled
HDFS directory should be owned by Hive
According to the shouldTableBeExternal method in HiveStrictMigration.java, a table is external if it is a StorageHandler table, or if it is an Avro/Text/Parquet table, or if it is a list bucketed table, or the directory is not owned by Hive.
Following is the codebase that describes the same:
String reason = shouldTableBeExternal(tableObj, ownerName, conf, hms, isPathOwnedByHive); if (reason != null) { LOG.debug("Converting {} to external table. {}", getQualifiedName(tableObj), reason); result = TableMigrationOption.EXTERNAL; } else { result = TableMigrationOption.MANAGED;
Reference: HiveStrictManagedMigration (GitHub)
It should be converted to an EXTERNAL table, in case it does not fit the criteria for the upgrade.
... View more
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-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
- « Previous
- Next »