1. Fix create catalog with resource replay bug. If user create catalog using `create catalog hive with resource xxx`, when replaying edit log, there is a bug that resource may be dropped, causing NPE and FE will fail to start. In this PR, I add a new FE config `disallow_create_catalog_with_resource`, default is true. So that `with resource` will not be allowed, and it will be deprecated later. And also fix the replay bug to avoid NPE. 2. Fix issue when creating 2 hive catalogs to connect with and without kerberos authentication. When user create 2 hive catalogs, one use simple auth, the other use kerberos auth. The query may fail with error like: `Server asks us to fall back to SIMPLE auth, but this client is configured to only allow secure connections.` So I add a default property for hive catalog: `"ipc.client.fallback-to-simple-auth-allowed" = "true"`. Which means this property will be added automatically when user creating hive catalog, to avoid such problem. 3. Fix calling `hdfsExists()` issue When calling `hdfsExists()` with non-zero return code, should check if it encounters error or is file not found. 3. Some code refactor Avoid import `org.apache.parquet.Strings`
44 lines
1.7 KiB
XML
44 lines
1.7 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<!DOCTYPE import-control PUBLIC
|
|
"-//Checkstyle//DTD ImportControl Configuration 1.4//EN"
|
|
"https://checkstyle.org/dtds/import_control_1_4.dtd">
|
|
|
|
<import-control pkg="org.apache.doris" strategyOnMismatch="allowed">
|
|
<disallow pkg="com.clearspring.analytics.util" />
|
|
<disallow pkg="com.alibaba.google" />
|
|
<disallow pkg="org.spark_project.guava" />
|
|
<disallow pkg="org.glassfish.jersey.internal.guava" />
|
|
<disallow pkg="io.fabric8.zjsonpatch.internal.guava" />
|
|
<disallow pkg="org.checkerframework.com.google" />
|
|
<disallow pkg="org.apache.iceberg.relocated" />
|
|
<disallow pkg="com.alibaba.fastjson2" />
|
|
<disallow pkg="org.apache.log4j.LogManager" />
|
|
<disallow pkg="org.apache.log4j.Logger" />
|
|
<disallow pkg="java.text.SimpleDateFormat"/>
|
|
<disallow pkg="org.apache.parquet.Strings"/>
|
|
<subpackage name="nereids">
|
|
<allow pkg="org.junit.jupiter"/>
|
|
<disallow pkg="org.junit"/>
|
|
</subpackage>
|
|
</import-control>
|
|
|