com.google.inject.ConfigurationException: Guice configuration errors: 1) Error: Error creating instance of configuration class [com.facebook.presto.hive.HiveClientConfig] 1 error


Solutions on the web

Solution icon of github
via GitHub by dharmeshkakadia
, 8 months ago
Guice configuration errors: 1) Error: Error creating instance of configuration class [com.facebook.presto.hive.HiveClientConfig] 1 error

Stack trace

com.google.inject.ConfigurationException: Guice configuration errors:

1) Error: Error creating instance of configuration class [com.facebook.presto.hive.HiveClientConfig]

1 error
	at io.airlift.configuration.Problems.getException(Problems.java:126)
	at io.airlift.configuration.Problems.exceptionFor(Problems.java:140)
	at io.airlift.configuration.ConfigurationFactory.newInstance(ConfigurationFactory.java:313)
	at io.airlift.configuration.ConfigurationFactory.getDefaultConfig(ConfigurationFactory.java:165)
	at io.airlift.configuration.ConfigurationProvider.getDefaultConfig(ConfigurationProvider.java:77)
	at io.airlift.configuration.ConfigurationInspector$ConfigRecord.<init>(ConfigurationInspector.java:83)
	at io.airlift.configuration.ConfigurationInspector$ConfigRecord.createConfigRecord(ConfigurationInspector.java:70)
	at io.airlift.configuration.ConfigurationInspector.inspect(ConfigurationInspector.java:36)
	at io.airlift.bootstrap.Bootstrap.makePrinterForConfiguration(Bootstrap.java:289)
	at io.airlift.bootstrap.Bootstrap.logConfiguration(Bootstrap.java:262)
	at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:213)
	at com.facebook.presto.hive.HiveConnectorFactory.create(HiveConnectorFactory.java:107)
	at com.facebook.presto.connector.ConnectorManager.createConnector(ConnectorManager.java:304)
	at com.facebook.presto.connector.ConnectorManager.addCatalogConnector(ConnectorManager.java:193)
	at com.facebook.presto.connector.ConnectorManager.createConnection(ConnectorManager.java:185)
	at com.facebook.presto.connector.ConnectorManager.createConnection(ConnectorManager.java:171)
	at com.facebook.presto.metadata.StaticCatalogStore.loadCatalog(StaticCatalogStore.java:99)
	at com.facebook.presto.metadata.StaticCatalogStore.loadCatalogs(StaticCatalogStore.java:77)
	at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:120)
	at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:67)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.facebook.presto.hive.HiveStorageFormat
	at com.facebook.presto.hive.HiveClientConfig.<init>(HiveClientConfig.java:105)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at io.airlift.configuration.ConfigurationFactory.newInstance(ConfigurationFactory.java:307)
	... 17 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.