Member since
10-28-2020
568
Posts
46
Kudos Received
39
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
4369 | 07-23-2024 11:49 PM | |
650 | 05-28-2024 11:06 AM | |
1148 | 05-05-2024 01:27 PM | |
722 | 05-05-2024 01:09 PM | |
786 | 03-28-2024 09:51 AM |
10-07-2021
10:45 AM
@dr If it's a managed table, you could get its size from TABLE_PARAMS table: e.g. SELECT a.TBL_NAME AS `TABLE`, b.PARAM_VALUE AS `SIZE` from TABLE_PARAMS b INNER JOIN TBLS a where a.TBL_ID=b.TBL_ID and b.PARAM_KEY='totalSize'; You could change the you need it. But, if there are external tables, or the table stats are not generated regularly, then you might not get the correct data. You could get the table size using HDFS file system commands as well: hdfs dfs -du -s -h <path to the table location> This will give you more accurate data.
... View more
10-07-2021
10:05 AM
1 Kudo
@hxn It seems like hive on Tez service is not up. Please go through Hive on Tez logs, and you should see more info around the error 'Error stopping schq'. We need to bring Hive service up first, and then we can approach the Hue issue, or Hue might start working after fixing Hive.
... View more
10-07-2021
09:50 AM
@sat_046 Please refer to the Cloudera doc on Starting and stopping services.
... View more
10-07-2021
09:45 AM
@Shab are we talking about the "Metastore canary failed to create a database" error or the warning messages you have pasted here? If we are addressing the canary error, please check the Service Monitor logs if you find any relevant error or warning messages. If you notice any timeout error, you could increase 'hive.metastore.client.socket.timeout ' value to, say, 5 mins, under the "Service Monitor Client Config Overrides" in Hive configuration. Or if it's a different error, please paste them here. Service Monitor log file location : /var/log/cloudera-scm-firehose/ Refer to https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/td-p/81021, if that helps.
... View more
10-04-2021
08:50 AM
@enirys You could refer to the following doc for Hive tuning: https://docs.cloudera.com/HDPDocuments/HDP2/HDP-2.6.5/bk_hive-performance-tuning/content/ch_connectivity-admission-control.html#guidelines-hiveserver2-heaps If you have other services running on the same HS2 node as well, you might want to reduce Hive heap size or move a service to a different node. Are you expecting too many connections as explained in the above doc, else you might want to bring down HS2 heap size? If you do not see too many connections, but notice high heap usage, you might want to take a heap dump as @asish mentioned, and see if there is memory leak. Load balancing across HS2 could take place based on how you are accessing Hive. You could use zooKeeper based connection string.
... View more
09-29-2021
08:19 AM
@enirys htop lists every single thread as a separate process. Every individual connection to HS2 and HMS shows up as different processes. So, you do not need to worry about that. As you say, you have 3 hiveserver2 nodes, see if you could reduce heap size of the hiveserver2. You could also lower 'hive.server2.thrift.max.worker.threads' so, it does not spin up too many threads in a single hs2 node. Make sure that your workload is getting distributed across HS2s.
... View more
09-28-2021
08:21 AM
Hi @DamienO As you say you are scanning Hive schemas, this must be putting a lot of load on Hive metastore. The driver logs suggest there are issues establishing new connections to Metastore. org.apache.hadoop.hive.ql.metadata.HiveException:java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient:33:1 You could review HS2 logs to see how many concurrent connections were there to the HMS at the time of the issue. Check if there is scope to increase max_connection value in your rdbms, or increase Metastore Heap size to accommodate more number of connections.
... View more
09-28-2021
08:11 AM
@Anitauzanna you could do it exactly the same way. e.g. CREATE TABLE final_table(col1 int, col3 int) PARTITIONED BY (year int, month int, day int) stored as orc; INSERT OVERWRITE TABLE final_table PARTITION(year,month,day) select col1, col3, substring(col2,1,4), substring(col2,5,6), substring(col2,7,8) from orig_table;
... View more
09-28-2021
03:50 AM
@Anitauzanna partition column will appear at the end of the table if you query it from hive cli or beeline. But partition col data will not be part of the actual table data when you check in hdfs. They will appear as directories in hdfs filesystem. Answering your second question, yes, you could use substring(or regexp_extract) to take part of a column and use it as a partition. check : https://community.cloudera.com/t5/Support-Questions/Hive-partitions-based-on-date-from-timestamp/td-p/179583
... View more
09-27-2021
02:22 PM
@Anitauzanna sure you could do that. I believe you have date in the int format, e.g. 20210927 . Correct me if I am wrong. You could create a non-partitioned table and load the dataset into it. Once done, create the final partitioned table, with the 2nd column as a partition. e.g. CREATE TABLE table_final (col1 int, col3 int) PARTITIONED BY (col2 int) STORED AS orc; Set the following Hive properties, and then load the data to the new partitioned table: SET hive.exec.dynamic.partition=true;
SET hive.exec.dynamic.partition.mode=nonstrict;
INSERT OVERWRITE TABLE table_final PARTITION(col2) SELECT col1,col3,col2 FROM <first table>; I hope this answers your question. If it does please accept this as the solution.
... View more
- « Previous
- Next »