penghuazhou opened a new issue, #38306:
URL: https://github.com/apache/shardingsphere/issues/38306
I didn't use Hive, so why does the ShardingSphere-Proxy 5.5.3 version report
this error?
OpenJDK 64-Bit Server VM warning: Setting LargePageSizeInBytes has no effect
on this OS. Large page size is 2048K.
OpenJDK 64-Bit Server VM warning: Failed to reserve shared memory. (error =
12)
OpenJDK 64-Bit Server VM warning: Failed to reserve shared memory. (error =
12)
OpenJDK 64-Bit Server VM warning: Failed to reserve shared memory. (error =
12)
Exception in thread "main" java.util.ServiceConfigurationError:
org.apache.shardingsphere.database.connector.core.jdbcurl.parser.ConnectionPropertiesParser:
org.apache.shardingsphere.database.connector.
hive.jdbcurl.HiveConnectionPropertiesParser Unable to get public no-arg
constructor
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:582)
at
java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:673)
at
java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1233)
at
java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265)
at
java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300)
at
java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385)
at
org.apache.shardingsphere.infra.spi.RegisteredShardingSphereSPI.load(RegisteredShardingSphereSPI.java:52)
at
org.apache.shardingsphere.infra.spi.RegisteredShardingSphereSPI.<init>(RegisteredShardingSphereSPI.java:42)
at
org.apache.shardingsphere.infra.spi.ShardingSphereServiceLoader.getRegisteredSPI(ShardingSphereServiceLoader.java:59)
at
org.apache.shardingsphere.infra.spi.ShardingSphereServiceLoader.getServiceInstances(ShardingSphereServiceLoader.java:46)
at
org.apache.shardingsphere.infra.spi.type.typed.TypedSPILoader.findService(TypedSPILoader.java:59)
at
org.apache.shardingsphere.infra.spi.type.typed.TypedSPILoader.findService(TypedSPILoader.java:43)
at
org.apache.shardingsphere.database.connector.core.spi.DatabaseTypedSPILoader.findService(DatabaseTypedSPILoader.java:44)
at
org.apache.shardingsphere.database.connector.core.spi.DatabaseTypedSPILoader.getService(DatabaseTypedSPILoader.java:79)
at
org.apache.shardingsphere.infra.metadata.database.resource.unit.StorageUnitNodeMapCreator.create(StorageUnitNodeMapCreator.java:60)
at
org.apache.shardingsphere.infra.metadata.database.resource.unit.StorageUnitNodeMapCreator.lambda$create$0(StorageUnitNodeMapCreator.java:50)
at
java.base/java.util.stream.Collectors.lambda$toMap$68(Collectors.java:1666)
at
java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
at
java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at
java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at
java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at
java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at
java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at
java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
at
org.apache.shardingsphere.infra.metadata.database.resource.unit.StorageUnitNodeMapCreator.create(StorageUnitNodeMapCreator.java:50)
at
org.apache.shardingsphere.infra.config.database.impl.DataSourceGeneratedDatabaseConfiguration.<init>(DataSourceGeneratedDatabaseConfiguration.java:56)
at
org.apache.shardingsphere.proxy.backend.config.yaml.swapper.YamlProxyConfigurationSwapper.swapDatabaseConfigurations(YamlProxyConfigurationSwapper.java:87)
at
org.apache.shardingsphere.proxy.backend.config.yaml.swapper.YamlProxyConfigurationSwapper.swap(YamlProxyConfigurationSwapper.java:63)
at
org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.init(BootstrapInitializer.java:51)
at org.apache.shardingsphere.proxy.Bootstrap.main(Bootstrap.java:64)
Caused by: java.lang.NoClassDefFoundError:
org/apache/hive/jdbc/ZooKeeperHiveClientException
at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3137)
at java.base/java.lang.Class.getConstructor0(Class.java:3342)
at java.base/java.lang.Class.getConstructor(Class.java:2151)
at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:660)
at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:657)
at java.base/java.security.AccessController.doPrivileged(Native
Method)
at
java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:668)
... 29 more
Caused by: java.lang.ClassNotFoundException:
org.apache.hive.jdbc.ZooKeeperHiveClientException
at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527)
[root@online-aliyun-cn-shenzhen-f-vm-65901 conf]# cat global.yaml
#
# 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.
#
######################################################################################################
#
# If you want to configure governance, authorization and proxy properties,
please refer to this file.
#
######################################################################################################
mode:
type: Standalone
repository:
type: JDBC
authority:
users:
- user: zego@%
password: mranUgb1iEZAjAj3
privilege:
type: ALL_PERMITTED
transaction:
defaultType: LOCAL
providerType: Atomikos
sqlParser:
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
parseTreeCache:
initialCapacity: 128
maximumSize: 1024
sqlFederation:
sqlFederationEnabled: false
executionPlanCache:
initialCapacity: 2000
maximumSize: 65535
props:
system-log-level: INFO
max-connections-size-per-query: 1
kernel-executor-size: 16 # Infinite by default.
proxy-frontend-flush-threshold: 128 # The default value is 128.
# sql-show is the same as props in logger ShardingSphere-SQL, and its
priority is lower than logging rule
sql-show: false
check-table-metadata-enabled: false
# Proxy backend query fetch size. A larger value may increase the memory
usage of ShardingSphere Proxy.
# The default value is -1, which means set the minimum value for
different JDBC drivers.
proxy-backend-query-fetch-size: -1
proxy-frontend-executor-size: 0 # Proxy frontend executor size. The
default value is 0, which means let Netty decide.
proxy-frontend-max-connections: 0 # Less than or equal to 0 means no
limitation.
proxy-default-port: 23307 # Proxy default port.
proxy-netty-backlog: 1024 # Proxy netty backlog.
proxy-frontend-ssl-enabled: false
proxy-frontend-ssl-cipher: ''
proxy-frontend-ssl-version: TLSv1.2,TLSv1.3
--
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.
To unsubscribe, e-mail:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]