[
https://issues.apache.org/jira/browse/HIVE-22869?focusedWorklogId=459830&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-459830
]
ASF GitHub Bot logged work on HIVE-22869:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 16/Jul/20 14:02
Start Date: 16/Jul/20 14:02
Worklog Time Spent: 10m
Work Description: zchovan commented on a change in pull request #1073:
URL: https://github.com/apache/hive/pull/1073#discussion_r455810030
##########
File path:
standalone-metastore/metastore-tools/metastore-benchmarks/src/main/java/org/apache/hadoop/hive/metastore/tools/BenchmarkUtils.java
##########
@@ -0,0 +1,72 @@
+package org.apache.hadoop.hive.metastore.tools;
+
+import org.apache.hadoop.hive.metastore.TableType;
+import org.apache.hadoop.hive.metastore.api.FieldSchema;
+import org.apache.hadoop.hive.metastore.api.TxnInfo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.stream.IntStream;
+
+import static org.apache.hadoop.hive.metastore.tools.Util.createSchema;
+import static
org.apache.hadoop.hive.metastore.tools.Util.throwingSupplierWrapper;
+
+public class BenchmarkUtils {
+ private static final Logger LOG =
LoggerFactory.getLogger(BenchmarkUtils.class);
+
+
+ static void createManyTables(HMSClient client, int howMany, String dbName,
String format) {
+ List<FieldSchema> columns = createSchema(new
ArrayList<>(Arrays.asList("name", "string")));
Review comment:
fixed
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 459830)
Time Spent: 50m (was: 40m)
> Add locking benchmark to metastore-tools/metastore-benchmarks
> -------------------------------------------------------------
>
> Key: HIVE-22869
> URL: https://issues.apache.org/jira/browse/HIVE-22869
> Project: Hive
> Issue Type: Improvement
> Reporter: Zoltan Chovan
> Assignee: Zoltan Chovan
> Priority: Major
> Labels: pull-request-available
> Attachments: HIVE-22869.2.patch, HIVE-22869.3.patch,
> HIVE-22869.4.patch, HIVE-22869.5.patch, HIVE-22869.6.patch,
> HIVE-22869.7.patch, HIVE-22869.8.patch, HIVE-22869.9.patch, HIVE-22869.patch
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Add the possibility to run benchmarks on opening lock in the HMS
--
This message was sent by Atlassian Jira
(v8.3.4#803005)