Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](hive)Modify the Hive notification event processing method when using meta cache and add parameters to the Hive catalog. #39239

Merged
merged 9 commits into from
Aug 23, 2024

Conversation

hubgeter
Copy link
Contributor

@hubgeter hubgeter commented Aug 12, 2024

before #15401 and #38244

Proposed changes

  1. Add the parameter hive.enable_hms_events_incremental_sync to the hive catalog, which is used to switch the catalog to read hive notification events (default is false). The default value is enable_hms_events_incremental_sync in fe.conf

  2. Add the parameter hive.hms_events_batch_size_per_rpc to the hive catalog, which is used to set the size of notification events read by the catalog each time. The default value is hms_events_batch_size_per_rpc in fe.conf (default is 500)

  3. append hms event notification case .

  4. Remove the use_meta_cache setting in catalog that is forced to true.

Example :

create catalog if not exists catalog_name properties (
      "type"="hms",
      'hive.metastore.uris' = 'thrift://externalEnvIp:hms_port',
       "hive.enable_hms_events_incremental_sync" ="true",
       "hive.hms_events_batch_size_per_rpc" = "1000"
);

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@hubgeter
Copy link
Contributor Author

run buildall

@github-actions github-actions bot added the doing label Aug 12, 2024
@hubgeter
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 37508 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 001a538a83611a9a7235388fc725aba5d4ec2ac6, data reload: false

------ Round 1 ----------------------------------
q1	17638	4363	4296	4296
q2	2020	183	176	176
q3	11760	1012	1125	1012
q4	10522	728	712	712
q5	7783	2767	2831	2767
q6	224	139	136	136
q7	975	578	589	578
q8	9329	2034	2035	2034
q9	7296	6521	6505	6505
q10	7006	2218	2137	2137
q11	489	243	245	243
q12	395	227	220	220
q13	18821	2964	2966	2964
q14	271	241	237	237
q15	525	486	478	478
q16	497	409	388	388
q17	962	668	793	668
q18	7344	6697	6730	6697
q19	3735	1072	1060	1060
q20	701	323	334	323
q21	4111	2882	2877	2877
q22	1092	1018	1000	1000
Total cold run time: 113496 ms
Total hot run time: 37508 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4439	4291	4245	4245
q2	369	283	263	263
q3	2916	2605	2667	2605
q4	1919	1632	1659	1632
q5	5645	5735	5823	5735
q6	234	132	135	132
q7	2163	1755	1783	1755
q8	3234	3496	3479	3479
q9	8915	8895	8886	8886
q10	3676	3437	3314	3314
q11	604	498	513	498
q12	856	647	667	647
q13	16980	3078	3264	3078
q14	322	287	294	287
q15	550	506	505	505
q16	539	447	445	445
q17	1886	1596	1521	1521
q18	8119	7966	8884	7966
q19	6659	1596	1512	1512
q20	2227	2005	1932	1932
q21	5857	5709	5639	5639
q22	1143	1016	1034	1016
Total cold run time: 79252 ms
Total hot run time: 57092 ms

@hubgeter
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 37485 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit ec2aac7ea36f306743ba74864ae56f9d0bbcad81, data reload: false

------ Round 1 ----------------------------------
q1	17625	4361	4233	4233
q2	2018	172	173	172
q3	11899	986	1144	986
q4	10511	684	728	684
q5	7783	2819	2805	2805
q6	219	135	135	135
q7	952	585	585	585
q8	9528	2040	2057	2040
q9	7599	6500	6506	6500
q10	7007	2210	2262	2210
q11	448	238	242	238
q12	392	220	217	217
q13	17752	2958	2989	2958
q14	282	242	240	240
q15	512	493	488	488
q16	486	396	384	384
q17	968	738	770	738
q18	7471	6751	6836	6751
q19	6583	1033	1109	1033
q20	668	317	324	317
q21	3819	2752	2851	2752
q22	1116	1022	1019	1019
Total cold run time: 115638 ms
Total hot run time: 37485 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4519	4251	4217	4217
q2	375	286	276	276
q3	2856	2617	2579	2579
q4	1960	1668	1739	1668
q5	5698	5695	5690	5690
q6	234	136	135	135
q7	2149	1733	1727	1727
q8	3272	3479	3467	3467
q9	8794	8817	8881	8817
q10	3622	3327	3333	3327
q11	604	524	495	495
q12	846	695	631	631
q13	15878	3013	3262	3013
q14	345	310	298	298
q15	525	496	491	491
q16	493	444	466	444
q17	1892	1516	1550	1516
q18	8159	8082	7871	7871
q19	1840	1631	1522	1522
q20	2139	2004	1961	1961
q21	5839	5711	5614	5614
q22	1230	1124	1148	1124
Total cold run time: 73269 ms
Total hot run time: 56883 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 189905 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit ec2aac7ea36f306743ba74864ae56f9d0bbcad81, data reload: false

query1	2205	910	880	880
query2	7637	1915	1856	1856
query3	10746	4066	3860	3860
query4	33459	23035	23056	23035
query5	5465	513	497	497
query6	281	160	168	160
query7	3970	295	298	295
query8	249	199	203	199
query9	8407	2435	2422	2422
query10	480	288	280	280
query11	17924	14864	14976	14864
query12	159	92	91	91
query13	1520	353	365	353
query14	9512	7111	7135	7111
query15	255	172	175	172
query16	7816	526	483	483
query17	1516	602	556	556
query18	2175	288	282	282
query19	213	148	148	148
query20	132	112	108	108
query21	205	102	100	100
query22	4460	4350	4397	4350
query23	34418	33611	33659	33611
query24	6786	2926	2883	2883
query25	551	392	367	367
query26	697	159	156	156
query27	1875	273	277	273
query28	4094	2043	2041	2041
query29	724	407	407	407
query30	253	147	154	147
query31	966	759	705	705
query32	79	50	51	50
query33	507	279	285	279
query34	869	464	482	464
query35	834	679	752	679
query36	1063	903	931	903
query37	136	86	80	80
query38	3913	3854	3823	3823
query39	1497	1376	1393	1376
query40	201	119	119	119
query41	47	47	47	47
query42	116	99	98	98
query43	502	471	469	469
query44	1114	739	733	733
query45	198	161	167	161
query46	1077	760	751	751
query47	1841	1788	1767	1767
query48	371	301	345	301
query49	785	443	439	439
query50	809	399	399	399
query51	6842	6696	6704	6696
query52	95	97	86	86
query53	249	175	182	175
query54	562	445	444	444
query55	77	78	73	73
query56	269	239	235	235
query57	1134	1047	1055	1047
query58	216	215	229	215
query59	2894	2798	2772	2772
query60	284	257	264	257
query61	95	94	125	94
query62	737	660	649	649
query63	215	188	178	178
query64	4272	2246	1745	1745
query65	3294	3134	3133	3133
query66	711	326	322	322
query67	15467	14710	14995	14710
query68	5560	560	552	552
query69	597	373	297	297
query70	1161	1079	1067	1067
query71	462	274	296	274
query72	6387	2250	2053	2053
query73	807	318	323	318
query74	9314	8776	8905	8776
query75	3579	2672	2708	2672
query76	3149	988	937	937
query77	622	309	318	309
query78	11497	9541	9027	9027
query79	3672	513	549	513
query80	1044	487	489	487
query81	571	217	222	217
query82	721	136	136	136
query83	181	145	140	140
query84	272	76	75	75
query85	704	284	318	284
query86	406	312	306	306
query87	4432	4314	4192	4192
query88	4361	2334	2318	2318
query89	479	290	294	290
query90	2269	200	196	196
query91	139	111	107	107
query92	70	53	51	51
query93	4302	533	528	528
query94	773	302	295	295
query95	368	275	269	269
query96	611	272	271	271
query97	3158	3088	3019	3019
query98	237	210	212	210
query99	1640	1353	1258	1258
Total cold run time: 296067 ms
Total hot run time: 189905 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 30.43 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit ec2aac7ea36f306743ba74864ae56f9d0bbcad81, data reload: false

query1	0.04	0.04	0.04
query2	0.08	0.04	0.04
query3	0.22	0.05	0.05
query4	1.66	0.07	0.07
query5	0.50	0.48	0.49
query6	1.12	0.72	0.73
query7	0.02	0.01	0.02
query8	0.05	0.04	0.05
query9	0.56	0.50	0.47
query10	0.54	0.54	0.53
query11	0.15	0.11	0.11
query12	0.15	0.12	0.12
query13	0.60	0.60	0.59
query14	0.76	0.79	0.78
query15	0.86	0.83	0.83
query16	0.36	0.37	0.38
query17	1.04	1.01	1.03
query18	0.23	0.22	0.22
query19	1.86	1.71	1.73
query20	0.01	0.03	0.02
query21	15.40	0.73	0.65
query22	4.13	7.94	1.54
query23	18.28	1.36	1.25
query24	2.16	0.22	0.24
query25	0.15	0.08	0.09
query26	0.32	0.23	0.21
query27	0.46	0.23	0.22
query28	13.21	1.02	0.99
query29	12.61	3.29	3.27
query30	0.24	0.05	0.05
query31	2.89	0.40	0.39
query32	3.26	0.49	0.49
query33	2.98	2.98	2.98
query34	17.04	4.39	4.37
query35	4.45	4.46	4.44
query36	0.64	0.47	0.48
query37	0.19	0.16	0.16
query38	0.16	0.15	0.16
query39	0.04	0.03	0.03
query40	0.15	0.12	0.13
query41	0.09	0.06	0.06
query42	0.05	0.05	0.04
query43	0.05	0.04	0.04
Total cold run time: 109.76 s
Total hot run time: 30.43 s

@hubgeter
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 37386 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit ec2aac7ea36f306743ba74864ae56f9d0bbcad81, data reload: false

------ Round 1 ----------------------------------
q1	17614	4371	4259	4259
q2	2018	177	173	173
q3	11853	971	1124	971
q4	10492	740	815	740
q5	7770	2838	2814	2814
q6	223	138	137	137
q7	954	585	579	579
q8	9533	2027	2091	2027
q9	8228	6500	6564	6500
q10	7002	2179	2177	2177
q11	444	239	241	239
q12	386	218	218	218
q13	17766	2996	3015	2996
q14	286	239	232	232
q15	520	468	508	468
q16	482	402	387	387
q17	958	667	708	667
q18	7464	6744	6784	6744
q19	6781	1040	967	967
q20	819	318	314	314
q21	3843	2775	2849	2775
q22	1086	1002	1004	1002
Total cold run time: 116522 ms
Total hot run time: 37386 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4476	4251	4216	4216
q2	404	270	266	266
q3	2856	2587	2590	2587
q4	1857	1676	1660	1660
q5	5699	5696	5660	5660
q6	232	138	133	133
q7	2117	1791	1759	1759
q8	3295	3465	3455	3455
q9	8819	8774	8791	8774
q10	3566	3233	3244	3233
q11	596	509	508	508
q12	820	613	626	613
q13	16126	3098	3191	3098
q14	317	288	295	288
q15	527	486	510	486
q16	483	447	445	445
q17	1860	1563	1515	1515
q18	7965	7953	7781	7781
q19	1762	1445	1481	1445
q20	2125	1882	1869	1869
q21	7391	5512	5406	5406
q22	1087	1006	993	993
Total cold run time: 74380 ms
Total hot run time: 56190 ms

@hubgeter
Copy link
Contributor Author

run buildall

1 similar comment
@hubgeter
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 37886 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit fa96d2f56e374207469b90ade3963f8411f96429, data reload: false

------ Round 1 ----------------------------------
q1	17835	4323	4254	4254
q2	2054	212	205	205
q3	11766	1172	1045	1045
q4	10536	782	726	726
q5	7801	2828	2784	2784
q6	255	148	148	148
q7	973	640	632	632
q8	9580	2061	2112	2061
q9	8682	6529	6545	6529
q10	7038	2207	2207	2207
q11	462	268	265	265
q12	410	255	248	248
q13	18963	2992	2974	2974
q14	290	267	252	252
q15	551	517	513	513
q16	534	412	411	411
q17	989	673	790	673
q18	7302	6902	6831	6831
q19	6526	1107	1171	1107
q20	790	368	370	368
q21	3861	2942	2606	2606
q22	1129	1068	1047	1047
Total cold run time: 118327 ms
Total hot run time: 37886 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4519	4291	4276	4276
q2	408	295	289	289
q3	2813	2618	2730	2618
q4	1987	1716	1735	1716
q5	5682	5784	5626	5626
q6	232	147	155	147
q7	2146	1777	1777	1777
q8	3301	3573	3443	3443
q9	8798	8783	8687	8687
q10	3663	3364	3277	3277
q11	619	522	519	519
q12	877	687	663	663
q13	15805	3157	3177	3157
q14	320	303	301	301
q15	545	516	509	509
q16	498	461	463	461
q17	1861	1591	1504	1504
q18	8113	7829	7700	7700
q19	8961	1685	1674	1674
q20	2149	1914	1901	1901
q21	13707	5424	5475	5424
q22	1211	1085	1064	1064
Total cold run time: 88215 ms
Total hot run time: 56733 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 195789 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit fa96d2f56e374207469b90ade3963f8411f96429, data reload: false

query1	1328	913	880	880
query2	6562	1987	1980	1980
query3	10632	3855	3836	3836
query4	58174	24482	23204	23204
query5	6047	653	635	635
query6	528	185	187	185
query7	6439	305	306	305
query8	453	361	353	353
query9	9169	2477	2490	2477
query10	553	314	329	314
query11	15844	15156	15177	15156
query12	185	129	130	129
query13	1686	418	417	417
query14	11722	7644	7595	7595
query15	262	195	198	195
query16	7671	547	506	506
query17	1170	631	626	626
query18	2087	341	339	339
query19	297	169	167	167
query20	150	137	132	132
query21	254	141	136	136
query22	4535	4592	4331	4331
query23	34677	33928	34413	33928
query24	5722	2962	2980	2962
query25	555	433	434	433
query26	698	186	192	186
query27	1910	300	329	300
query28	4366	2221	2205	2205
query29	687	449	435	435
query30	212	177	179	177
query31	1002	817	794	794
query32	108	76	77	76
query33	507	335	335	335
query34	872	488	493	488
query35	862	762	755	755
query36	1075	967	959	959
query37	162	101	101	101
query38	3952	3890	3885	3885
query39	1654	1477	1468	1468
query40	233	154	150	150
query41	132	130	132	130
query42	140	119	114	114
query43	552	506	495	495
query44	1104	774	788	774
query45	223	191	197	191
query46	1113	775	749	749
query47	1904	1813	1812	1812
query48	403	341	327	327
query49	909	596	573	573
query50	852	461	458	458
query51	6948	6881	6598	6598
query52	126	109	114	109
query53	302	223	225	223
query54	622	506	509	506
query55	90	89	88	88
query56	334	305	328	305
query57	1179	1144	1156	1144
query58	299	322	299	299
query59	3071	2777	2647	2647
query60	346	325	321	321
query61	147	143	143	143
query62	813	701	676	676
query63	258	225	223	223
query64	3402	1861	1886	1861
query65	3247	3160	3193	3160
query66	987	695	671	671
query67	15346	14902	14826	14826
query68	6421	577	586	577
query69	631	429	335	335
query70	1272	1195	1112	1112
query71	551	314	323	314
query72	6499	2384	2091	2091
query73	806	349	349	349
query74	9247	8743	8910	8743
query75	3747	2760	2793	2760
query76	3642	1016	1081	1016
query77	852	443	437	437
query78	9956	9131	9144	9131
query79	3259	557	555	555
query80	2631	609	591	591
query81	600	257	255	255
query82	771	162	156	156
query83	377	217	214	214
query84	288	100	99	99
query85	1030	358	350	350
query86	439	336	317	317
query87	4458	4251	4290	4251
query88	4821	2419	2483	2419
query89	442	317	333	317
query90	1947	223	223	223
query91	152	126	127	126
query92	88	74	73	73
query93	5291	554	555	554
query94	762	321	319	319
query95	383	293	290	290
query96	628	284	274	274
query97	3254	3042	3064	3042
query98	252	240	230	230
query99	1619	1311	1325	1311
Total cold run time: 326967 ms
Total hot run time: 195789 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 31.73 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit fa96d2f56e374207469b90ade3963f8411f96429, data reload: false

query1	0.05	0.05	0.04
query2	0.07	0.04	0.04
query3	0.23	0.05	0.06
query4	1.66	0.07	0.08
query5	0.51	0.48	0.50
query6	1.14	0.73	0.74
query7	0.02	0.01	0.02
query8	0.06	0.05	0.04
query9	0.54	0.50	0.49
query10	0.56	0.55	0.54
query11	0.16	0.12	0.12
query12	0.16	0.13	0.12
query13	0.61	0.62	0.60
query14	0.77	0.78	0.78
query15	0.86	0.83	0.82
query16	0.39	0.38	0.37
query17	1.00	1.05	1.05
query18	0.24	0.23	0.23
query19	1.89	1.83	1.74
query20	0.01	0.01	0.02
query21	15.39	0.87	0.67
query22	3.94	6.55	2.35
query23	18.28	1.30	1.26
query24	2.11	0.23	0.22
query25	0.15	0.08	0.08
query26	0.31	0.22	0.21
query27	0.47	0.23	0.24
query28	13.33	1.02	1.01
query29	12.64	3.35	3.30
query30	0.44	0.24	0.24
query31	2.81	0.43	0.41
query32	3.24	0.51	0.51
query33	3.01	2.97	2.94
query34	16.97	4.32	4.37
query35	4.43	4.49	4.44
query36	0.67	0.50	0.48
query37	0.22	0.17	0.18
query38	0.17	0.16	0.16
query39	0.06	0.05	0.06
query40	0.17	0.16	0.15
query41	0.12	0.07	0.07
query42	0.08	0.07	0.07
query43	0.07	0.06	0.06
Total cold run time: 110.01 s
Total hot run time: 31.73 s

@hubgeter
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 38639 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 66129bfbbd5a8c560c8678448ca84b1567b2ae90, data reload: false

------ Round 1 ----------------------------------
q1	18859	4599	4453	4453
q2	2060	207	222	207
q3	10424	1254	1117	1117
q4	10158	741	757	741
q5	7804	2890	2873	2873
q6	265	151	153	151
q7	995	642	634	634
q8	9363	2125	2108	2108
q9	7126	6607	6636	6607
q10	7048	2198	2264	2198
q11	491	273	269	269
q12	419	249	249	249
q13	18083	3014	3016	3014
q14	292	257	259	257
q15	560	510	544	510
q16	526	406	409	406
q17	1001	720	725	720
q18	7587	6938	6742	6742
q19	6006	1146	1095	1095
q20	681	354	356	354
q21	4250	3010	2912	2912
q22	1145	1022	1024	1022
Total cold run time: 115143 ms
Total hot run time: 38639 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4596	4349	4356	4349
q2	420	307	293	293
q3	2881	2730	2632	2632
q4	1945	1644	1664	1644
q5	5395	5419	5458	5419
q6	228	146	149	146
q7	2084	1732	1706	1706
q8	3223	3367	3378	3367
q9	8546	8463	8505	8463
q10	3415	3194	3201	3194
q11	619	527	508	508
q12	804	628	634	628
q13	16559	3001	3025	3001
q14	332	303	304	303
q15	567	521	530	521
q16	508	463	450	450
q17	1825	1533	1515	1515
q18	7782	7526	7431	7431
q19	1718	1653	1670	1653
q20	2032	1856	1840	1840
q21	8920	5174	5092	5092
q22	1164	1040	1051	1040
Total cold run time: 75563 ms
Total hot run time: 55195 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 191458 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 66129bfbbd5a8c560c8678448ca84b1567b2ae90, data reload: false

query1	988	413	397	397
query2	6748	1959	1901	1901
query3	6662	234	253	234
query4	33262	23732	23295	23295
query5	4422	632	622	622
query6	322	194	197	194
query7	4607	317	312	312
query8	412	357	354	354
query9	8549	2510	2481	2481
query10	477	335	314	314
query11	18025	15132	15263	15132
query12	175	121	124	121
query13	1673	417	407	407
query14	10023	6564	6695	6564
query15	289	193	190	190
query16	8122	539	512	512
query17	1620	612	583	583
query18	2162	334	328	328
query19	359	169	168	168
query20	139	131	131	131
query21	257	143	140	140
query22	4248	4260	3993	3993
query23	34480	33686	33491	33491
query24	11061	2895	2929	2895
query25	662	418	414	414
query26	1174	177	174	174
query27	2611	300	305	300
query28	7473	2141	2146	2141
query29	879	437	448	437
query30	339	182	179	179
query31	1060	815	824	815
query32	118	79	81	79
query33	814	334	341	334
query34	906	544	502	502
query35	919	769	764	764
query36	1134	976	952	952
query37	173	101	106	101
query38	3984	3865	4001	3865
query39	1525	1469	1460	1460
query40	241	155	152	152
query41	138	136	137	136
query42	132	115	119	115
query43	537	513	514	513
query44	1225	790	783	783
query45	224	194	198	194
query46	1148	815	792	792
query47	1961	1813	1870	1813
query48	419	332	338	332
query49	1244	596	584	584
query50	863	460	468	460
query51	6938	6802	6708	6708
query52	117	109	107	107
query53	297	229	227	227
query54	976	517	511	511
query55	91	89	91	89
query56	325	315	304	304
query57	1198	1130	1136	1130
query58	321	296	328	296
query59	3031	2811	2835	2811
query60	355	326	323	323
query61	193	188	191	188
query62	934	716	717	716
query63	262	230	229	229
query64	5278	2367	1895	1895
query65	3220	3197	3216	3197
query66	1297	685	674	674
query67	15634	15049	14971	14971
query68	5394	586	591	586
query69	688	417	330	330
query70	1268	1163	1191	1163
query71	547	345	318	318
query72	7615	2328	2161	2161
query73	828	365	364	364
query74	9249	8843	9080	8843
query75	4419	2734	2767	2734
query76	3983	1153	1010	1010
query77	860	427	441	427
query78	10696	13072	9916	9916
query79	6374	573	567	567
query80	1020	648	607	607
query81	635	265	269	265
query82	315	156	158	156
query83	430	211	215	211
query84	294	102	96	96
query85	773	354	348	348
query86	477	300	332	300
query87	4497	4207	4304	4207
query88	3977	2656	2535	2535
query89	430	328	323	323
query90	2008	231	230	230
query91	154	125	126	125
query92	88	76	76	76
query93	1090	544	550	544
query94	977	321	319	319
query95	383	286	292	286
query96	601	288	286	286
query97	3258	3060	3073	3060
query98	250	267	218	218
query99	1635	1321	1342	1321
Total cold run time: 306665 ms
Total hot run time: 191458 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 31.58 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 66129bfbbd5a8c560c8678448ca84b1567b2ae90, data reload: false

query1	0.05	0.04	0.04
query2	0.07	0.04	0.04
query3	0.23	0.05	0.06
query4	1.66	0.08	0.08
query5	0.51	0.48	0.49
query6	1.13	0.73	0.74
query7	0.02	0.01	0.01
query8	0.06	0.04	0.05
query9	0.56	0.47	0.50
query10	0.56	0.56	0.55
query11	0.15	0.12	0.12
query12	0.16	0.13	0.13
query13	0.63	0.62	0.60
query14	0.77	0.78	0.81
query15	0.85	0.83	0.83
query16	0.38	0.37	0.38
query17	1.07	1.05	0.99
query18	0.24	0.23	0.24
query19	1.81	1.76	1.76
query20	0.01	0.01	0.02
query21	15.42	0.83	0.65
query22	4.18	6.89	2.16
query23	18.24	1.38	1.34
query24	2.08	0.24	0.22
query25	0.15	0.09	0.08
query26	0.30	0.21	0.21
query27	0.45	0.23	0.23
query28	13.31	1.03	1.02
query29	12.62	3.33	3.31
query30	0.44	0.26	0.22
query31	2.79	0.41	0.40
query32	3.26	0.49	0.50
query33	2.97	2.96	3.00
query34	17.08	4.41	4.37
query35	4.45	4.43	4.46
query36	0.67	0.48	0.49
query37	0.20	0.17	0.17
query38	0.16	0.17	0.16
query39	0.06	0.05	0.05
query40	0.17	0.14	0.15
query41	0.10	0.06	0.06
query42	0.07	0.06	0.06
query43	0.06	0.06	0.06
Total cold run time: 110.15 s
Total hot run time: 31.58 s

@hubgeter hubgeter changed the title [regression](hms)append hms event notification case. [fix](hive)Modify the Hive notification event processing method when using meta cache and add parameters to the Hive catalog. Aug 16, 2024
@@ -101,6 +106,12 @@ public void checkProperties() throws DdlException {
"The parameter " + FILE_META_CACHE_TTL_SECOND + " is wrong, value is " + fileMetaCacheTtlSecond);
}

enableHmsEventsIncrementalSync =
catalogProperty.getOrDefault(HMSProperties.ENABLE_HMS_EVENTS_INCREMENTAL_SYNC, "false").equals("true");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default value should be Config.enable_hms_events_incremental_sync

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will modify it

catalogProperty.getOrDefault(HMSProperties.ENABLE_HMS_EVENTS_INCREMENTAL_SYNC, "false").equals("true");

hmsEventsBatchSizePerRpc =
Integer.valueOf(catalogProperty.getOrDefault(HMSProperties.HMS_EVENTIS_BATCH_SIZE_PER_RPC, "-1"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is -1 mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Originally I wanted to indicate that this value was not set, but now I want its default value to be Config.hms_events_batch_size_per_rpc

@@ -125,6 +128,8 @@ private void realRun() {
} catch (MetastoreNotificationFetchException e) {
LOG.warn("Failed to fetch hms events on {}. msg: ", hmsExternalCatalog.getName(), e);
} catch (Exception ex) {
hmsExternalCatalog.onRefresh(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this 2 lines for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suppose you receive a set of events, and when processing the insert event, the initialization reports a nullpointer. The event processing fails, and our data with Hive is out of sync? Refresh it and you can process other events next time. i will modify it to onRefreshCache

@hubgeter
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 39318 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 545b596af4459a662c27474730ef7b5b9672950f, data reload: false

------ Round 1 ----------------------------------
q1	17991	4388	4273	4273
q2	2055	218	223	218
q3	11790	1011	1113	1011
q4	10525	687	735	687
q5	7781	2889	2831	2831
q6	268	157	158	157
q7	1027	658	661	658
q8	10390	2139	2088	2088
q9	7163	6602	6571	6571
q10	7113	2248	2251	2248
q11	480	282	273	273
q12	429	267	259	259
q13	17857	3046	3015	3015
q14	296	265	266	265
q15	560	538	535	535
q16	570	454	447	447
q17	1030	746	723	723
q18	7727	7933	7428	7428
q19	6998	1110	1137	1110
q20	768	379	381	379
q21	4565	3123	3093	3093
q22	1166	1055	1049	1049
Total cold run time: 118549 ms
Total hot run time: 39318 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4575	4392	4272	4272
q2	420	319	307	307
q3	2889	2746	2807	2746
q4	1985	1669	1658	1658
q5	5570	5722	5575	5575
q6	243	154	142	142
q7	2129	1745	1812	1745
q8	3347	3494	3417	3417
q9	8760	8607	8778	8607
q10	3606	3266	3239	3239
q11	611	543	529	529
q12	845	671	627	627
q13	15839	3135	3005	3005
q14	318	301	312	301
q15	569	527	535	527
q16	517	473	472	472
q17	1816	1579	1522	1522
q18	8357	7833	7655	7655
q19	9749	1683	1579	1579
q20	3485	1888	1854	1854
q21	10837	5370	5180	5180
q22	1183	1104	1080	1080
Total cold run time: 87650 ms
Total hot run time: 56039 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 195658 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 545b596af4459a662c27474730ef7b5b9672950f, data reload: false

query1	1343	924	874	874
query2	6602	1986	1981	1981
query3	10610	3932	3838	3838
query4	58359	25059	23647	23647
query5	6178	722	676	676
query6	530	192	189	189
query7	6462	318	325	318
query8	474	379	377	377
query9	9394	2559	2549	2549
query10	599	321	327	321
query11	18844	15106	15456	15106
query12	196	130	125	125
query13	1670	467	476	467
query14	12297	6634	7009	6634
query15	267	196	194	194
query16	7561	527	516	516
query17	1202	624	606	606
query18	1877	357	362	357
query19	293	172	172	172
query20	145	140	139	139
query21	258	141	143	141
query22	4879	4783	4431	4431
query23	34457	33743	34045	33743
query24	5677	2941	3019	2941
query25	616	436	429	429
query26	760	185	186	185
query27	1896	308	308	308
query28	3996	2180	2166	2166
query29	714	444	446	444
query30	217	183	184	183
query31	1029	837	843	837
query32	124	77	77	77
query33	545	337	339	337
query34	880	505	500	500
query35	868	770	745	745
query36	1092	962	940	940
query37	153	103	106	103
query38	3994	3875	3817	3817
query39	1528	1493	1459	1459
query40	239	158	154	154
query41	136	136	135	135
query42	131	117	114	114
query43	563	515	513	513
query44	1154	771	772	771
query45	228	192	203	192
query46	1120	791	767	767
query47	1922	1863	1882	1863
query48	420	338	341	338
query49	909	578	578	578
query50	857	462	473	462
query51	6884	6782	6739	6739
query52	125	106	117	106
query53	298	226	222	222
query54	612	498	525	498
query55	90	90	90	90
query56	342	309	315	309
query57	1206	1113	1132	1113
query58	304	320	298	298
query59	3091	2805	2854	2805
query60	354	333	349	333
query61	152	149	149	149
query62	773	723	688	688
query63	257	227	230	227
query64	4356	2357	1867	1867
query65	3230	3202	3177	3177
query66	1035	664	685	664
query67	15419	14966	14789	14789
query68	6996	574	567	567
query69	657	431	325	325
query70	1213	1061	1161	1061
query71	555	311	311	311
query72	6809	2332	2056	2056
query73	805	357	358	357
query74	9177	8884	8769	8769
query75	3859	2767	2756	2756
query76	3904	1099	1033	1033
query77	868	429	426	426
query78	9934	9132	9127	9127
query79	5951	560	557	557
query80	2676	635	614	614
query81	607	266	268	266
query82	862	160	161	160
query83	355	212	268	212
query84	305	98	97	97
query85	1006	364	360	360
query86	451	327	316	316
query87	4386	4370	4238	4238
query88	4421	2449	2460	2449
query89	441	321	330	321
query90	1924	225	231	225
query91	154	131	129	129
query92	86	75	78	75
query93	4850	551	545	545
query94	766	333	329	329
query95	384	296	297	296
query96	627	282	279	279
query97	3221	3111	3048	3048
query98	246	242	226	226
query99	1675	1325	1295	1295
Total cold run time: 334964 ms
Total hot run time: 195658 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 31.87 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 545b596af4459a662c27474730ef7b5b9672950f, data reload: false

query1	0.05	0.05	0.04
query2	0.08	0.05	0.04
query3	0.23	0.05	0.05
query4	1.67	0.07	0.07
query5	0.51	0.48	0.49
query6	1.13	0.73	0.73
query7	0.02	0.02	0.02
query8	0.06	0.05	0.05
query9	0.55	0.50	0.48
query10	0.54	0.54	0.54
query11	0.16	0.13	0.13
query12	0.15	0.13	0.13
query13	0.62	0.61	0.59
query14	0.76	0.79	0.80
query15	0.86	0.82	0.82
query16	0.39	0.38	0.38
query17	1.06	1.07	1.10
query18	0.22	0.22	0.21
query19	1.93	1.91	1.92
query20	0.02	0.01	0.01
query21	15.42	0.66	0.66
query22	4.67	6.75	2.19
query23	18.29	1.44	1.31
query24	2.07	0.23	0.22
query25	0.14	0.09	0.08
query26	0.31	0.23	0.24
query27	0.46	0.22	0.23
query28	13.31	1.03	1.02
query29	12.60	3.31	3.34
query30	0.43	0.25	0.24
query31	2.81	0.40	0.40
query32	3.23	0.49	0.49
query33	2.94	3.00	2.95
query34	17.03	4.37	4.36
query35	4.39	4.42	4.48
query36	0.67	0.50	0.51
query37	0.21	0.17	0.18
query38	0.18	0.17	0.17
query39	0.07	0.05	0.06
query40	0.18	0.15	0.15
query41	0.11	0.07	0.07
query42	0.07	0.07	0.06
query43	0.06	0.06	0.06
Total cold run time: 110.66 s
Total hot run time: 31.87 s

@hubgeter
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 38306 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 0451d07e007b01ce6a370260f548679513e6cb21, data reload: false

------ Round 1 ----------------------------------
q1	17863	4352	4286	4286
q2	2042	221	219	219
q3	11864	976	1107	976
q4	10543	759	741	741
q5	7787	2855	2797	2797
q6	262	161	159	159
q7	1024	666	658	658
q8	9596	2085	2139	2085
q9	8758	6526	6548	6526
q10	7118	2270	2243	2243
q11	493	285	273	273
q12	426	267	259	259
q13	17786	3029	3017	3017
q14	311	263	259	259
q15	581	541	537	537
q16	525	424	442	424
q17	1010	639	712	639
q18	7342	6802	6813	6802
q19	6565	1039	1121	1039
q20	701	372	365	365
q21	3874	2951	2963	2951
q22	1158	1051	1057	1051
Total cold run time: 117629 ms
Total hot run time: 38306 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5148	4321	4315	4315
q2	412	319	318	318
q3	2876	2645	2740	2645
q4	1997	1727	1697	1697
q5	5652	5713	5628	5628
q6	259	155	150	150
q7	2164	1810	1769	1769
q8	3334	3511	3476	3476
q9	8735	8731	8776	8731
q10	3617	3321	3236	3236
q11	640	534	545	534
q12	881	710	647	647
q13	16243	3106	3055	3055
q14	338	323	319	319
q15	554	525	517	517
q16	536	463	467	463
q17	1818	1566	1501	1501
q18	8240	7822	7628	7628
q19	9722	1623	1575	1575
q20	3565	1885	1881	1881
q21	12211	5448	5341	5341
q22	1441	1058	1091	1058
Total cold run time: 90383 ms
Total hot run time: 56484 ms

@hubgeter
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 38084 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit b428fa7ff640ac63a2e450ea296ebbfb38f4ae08, data reload: false

------ Round 1 ----------------------------------
q1	18095	5551	4374	4374
q2	2485	207	176	176
q3	11650	1152	1134	1134
q4	11217	798	690	690
q5	8250	2877	2818	2818
q6	222	137	139	137
q7	969	624	611	611
q8	9332	2076	2037	2037
q9	7339	6565	6544	6544
q10	6998	2179	2206	2179
q11	454	257	247	247
q12	390	222	216	216
q13	18037	3014	3008	3008
q14	291	236	250	236
q15	525	483	513	483
q16	486	388	389	388
q17	973	663	651	651
q18	7247	6880	7000	6880
q19	1385	1012	1084	1012
q20	680	341	323	323
q21	4038	2924	3012	2924
q22	1119	1031	1016	1016
Total cold run time: 112182 ms
Total hot run time: 38084 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4324	4302	4308	4302
q2	391	287	275	275
q3	2913	2659	2605	2605
q4	1963	1678	1667	1667
q5	5367	5379	5411	5379
q6	219	130	127	127
q7	2117	1735	1788	1735
q8	3206	3344	3366	3344
q9	8501	8411	8397	8397
q10	3482	3218	3163	3163
q11	588	477	467	467
q12	788	587	590	587
q13	8518	3017	3036	3017
q14	311	278	273	273
q15	519	477	469	469
q16	475	424	428	424
q17	1807	1493	1488	1488
q18	7684	7436	7366	7366
q19	1652	1503	1617	1503
q20	2070	1816	1846	1816
q21	5269	5289	5224	5224
q22	1109	1059	1029	1029
Total cold run time: 63273 ms
Total hot run time: 54657 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 185898 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit b428fa7ff640ac63a2e450ea296ebbfb38f4ae08, data reload: false

query1	897	366	373	366
query2	6463	1963	1859	1859
query3	6650	210	216	210
query4	33256	23185	23122	23122
query5	4131	500	499	499
query6	263	165	170	165
query7	4586	290	293	290
query8	249	206	201	201
query9	8530	2480	2461	2461
query10	422	271	259	259
query11	17798	14973	15021	14973
query12	150	100	99	99
query13	1622	385	365	365
query14	9435	7206	6345	6345
query15	243	173	166	166
query16	8003	462	482	462
query17	1606	585	571	571
query18	2103	306	306	306
query19	191	175	141	141
query20	124	112	109	109
query21	206	102	103	102
query22	4611	4329	4268	4268
query23	34216	33399	33329	33329
query24	11055	2846	2878	2846
query25	609	382	375	375
query26	1189	158	157	157
query27	2876	286	274	274
query28	7674	2046	2034	2034
query29	820	411	402	402
query30	294	152	152	152
query31	992	776	767	767
query32	101	58	59	58
query33	761	286	277	277
query34	990	488	462	462
query35	843	748	720	720
query36	1103	923	945	923
query37	151	86	85	85
query38	4081	3820	3887	3820
query39	1435	1367	1375	1367
query40	201	117	123	117
query41	48	45	44	44
query42	111	95	95	95
query43	504	475	471	471
query44	1233	733	750	733
query45	193	166	168	166
query46	1100	710	750	710
query47	1880	1761	1776	1761
query48	367	294	290	290
query49	1124	416	426	416
query50	807	404	413	404
query51	7218	6921	7104	6921
query52	101	91	86	86
query53	254	183	179	179
query54	889	452	449	449
query55	80	74	78	74
query56	268	251	245	245
query57	1184	1060	1050	1050
query58	261	223	228	223
query59	2942	2833	3036	2833
query60	301	275	267	267
query61	102	102	121	102
query62	838	653	662	653
query63	221	189	181	181
query64	5427	2291	1705	1705
query65	3208	3199	3206	3199
query66	1385	337	328	328
query67	15462	15435	15168	15168
query68	3561	561	559	559
query69	400	274	283	274
query70	1117	1091	1117	1091
query71	331	272	269	269
query72	6279	2318	2084	2084
query73	749	316	328	316
query74	9119	8889	8835	8835
query75	3368	2655	2704	2655
query76	1929	1058	1031	1031
query77	500	318	320	318
query78	9480	9039	9094	9039
query79	1023	544	528	528
query80	677	497	504	497
query81	452	235	233	233
query82	231	139	141	139
query83	174	151	156	151
query84	222	77	81	77
query85	700	280	275	275
query86	296	286	301	286
query87	4357	4416	4209	4209
query88	3274	2313	2294	2294
query89	387	284	286	284
query90	1871	196	194	194
query91	123	100	100	100
query92	62	56	52	52
query93	1031	542	532	532
query94	692	287	311	287
query95	355	262	258	258
query96	585	269	273	269
query97	3201	3057	3077	3057
query98	215	206	198	198
query99	1448	1250	1266	1250
Total cold run time: 286647 ms
Total hot run time: 185898 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 31.14 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit b428fa7ff640ac63a2e450ea296ebbfb38f4ae08, data reload: false

query1	0.04	0.04	0.04
query2	0.08	0.05	0.04
query3	0.22	0.05	0.05
query4	1.67	0.07	0.07
query5	0.52	0.48	0.50
query6	1.13	0.72	0.74
query7	0.02	0.02	0.01
query8	0.05	0.04	0.05
query9	0.53	0.49	0.47
query10	0.54	0.53	0.55
query11	0.16	0.12	0.12
query12	0.15	0.13	0.12
query13	0.61	0.59	0.59
query14	0.77	0.80	0.76
query15	0.87	0.81	0.83
query16	0.38	0.37	0.38
query17	1.06	1.06	1.08
query18	0.20	0.20	0.20
query19	1.96	1.78	1.76
query20	0.01	0.01	0.01
query21	15.40	0.67	0.66
query22	4.43	6.50	2.29
query23	18.31	1.35	1.26
query24	2.15	0.22	0.21
query25	0.16	0.08	0.09
query26	0.27	0.18	0.17
query27	0.08	0.07	0.07
query28	13.25	1.01	1.01
query29	12.64	3.36	3.33
query30	0.25	0.06	0.05
query31	2.91	0.40	0.39
query32	3.25	0.48	0.48
query33	2.97	2.99	3.00
query34	17.07	4.41	4.40
query35	4.50	4.42	4.42
query36	0.65	0.49	0.48
query37	0.19	0.16	0.16
query38	0.15	0.14	0.14
query39	0.04	0.04	0.04
query40	0.15	0.12	0.12
query41	0.10	0.05	0.05
query42	0.06	0.06	0.05
query43	0.04	0.04	0.04
Total cold run time: 109.99 s
Total hot run time: 31.14 s

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Aug 23, 2024
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@morningman morningman merged commit 2c8d65b into apache:master Aug 23, 2024
29 of 30 checks passed
@gavinchou gavinchou added the p0_c label Aug 23, 2024
morningman pushed a commit to morningman/doris that referenced this pull request Aug 23, 2024
…using meta cache and add parameters to the Hive catalog. (apache#39239)

before apache#15401  and apache#38244

1. Add the parameter `hive.enable_hms_events_incremental_sync` to the
hive catalog, which is used to switch the catalog to read hive
notification events (default is false). The default value is
`enable_hms_events_incremental_sync` in fe.conf

2. Add the parameter `hive.hms_events_batch_size_per_rpc` to the hive
catalog, which is used to set the size of notification events read by
the catalog each time. The default value is
`hms_events_batch_size_per_rpc` in fe.conf (default is 500)

3. append hms event notification case .

4. Remove the `use_meta_cache` setting in catalog that is forced to
true.

Example :
```
create catalog if not exists catalog_name properties (
      "type"="hms",
      'hive.metastore.uris' = 'thrift://externalEnvIp:hms_port',
       "hive.enable_hms_events_incremental_sync" ="true",
       "hive.hms_events_batch_size_per_rpc" = "1000"
);
```
morningman added a commit that referenced this pull request Aug 23, 2024
…using meta cache and add parameters to the Hive catalog. (#39239) (#39865)

bp #39239

Co-authored-by: daidai <2017501503@qq.com>
morningman added a commit that referenced this pull request Aug 23, 2024
pick part of #39239
set default value of use_meta_cache to false, same as previous version,
to avoid compatibility issue.
This should be totally fixed in doris 3.0.2
gavinchou pushed a commit that referenced this pull request Aug 23, 2024
pick part of #39239
set default value of use_meta_cache to false, same as previous version,
to avoid compatibility issue.
This should be totally fixed in doris 3.0.2
dataroaring pushed a commit that referenced this pull request Aug 26, 2024
…using meta cache and add parameters to the Hive catalog. (#39239)

before #15401  and #38244 

## Proposed changes

1. Add the parameter `hive.enable_hms_events_incremental_sync` to the
hive catalog, which is used to switch the catalog to read hive
notification events (default is false). The default value is
`enable_hms_events_incremental_sync` in fe.conf

2. Add the parameter `hive.hms_events_batch_size_per_rpc` to the hive
catalog, which is used to set the size of notification events read by
the catalog each time. The default value is
`hms_events_batch_size_per_rpc` in fe.conf (default is 500)

3. append hms event notification case . 

4. Remove the `use_meta_cache` setting in catalog that is forced to
true.

Example :
```
create catalog if not exists catalog_name properties (
      "type"="hms",
      'hive.metastore.uris' = 'thrift://externalEnvIp:hms_port',
       "hive.enable_hms_events_incremental_sync" ="true",
       "hive.hms_events_batch_size_per_rpc" = "1000"
);
```
@yiguolei yiguolei mentioned this pull request Sep 5, 2024
3 tasks
hubgeter added a commit to hubgeter/doris that referenced this pull request Sep 7, 2024
…using meta cache and add parameters to the Hive catalog. (apache#39239) (apache#39865)

bp apache#39239

Co-authored-by: daidai <2017501503@qq.com>
xiaokang pushed a commit that referenced this pull request Sep 7, 2024
…using meta cache and add parameters to the Hive catalog. #39239  (#40505)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants