openlookeng / hetu-core

570 stars 423 forks source link

windows下ideal启动报错:java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableList #383

Open oldercoder-cn opened 2 years ago

oldercoder-cn commented 2 years ago

Windows 10下编译成功:mvn clean package -DskipTests -Dcheckstyle.skip=true

备注:其它windows问题已做手工处理,比如: 1.在root/pom.xml文件的property下添加如下:

true 2. // 注释掉对操作系统的限制,更改为:warnRequirement -- // failRequirement("Presto requires Linux or Mac OS X (found %s)", osName); warnRequirement("Presto requires Linux or Mac OS X (found %s)", osName); 3.删除catalog文件,只留一个MYSQL和localfile的 4.有些路径换成windows绝对路径 PluginsManagerConfig.java文件里的 plugins换成D:\Learn\BigData\Presto\plugins FileSystemClientManager.java etc\filesystem换成D:\Learn\BigData\Presto\hetu-core\presto-main\etc\filesystem 但是用ideal启动报如下错误: 2022-09-01T17:40:45.900-0500 ERROR main io.prestosql.server.PrestoServer com/google/common/collect/ImmutableList java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableList at io.prestosql.plugin.localfile.LocalFilePlugin.getConnectorFactories(LocalFilePlugin.java:36) at io.prestosql.server.PluginManager.installPlugin(PluginManager.java:303) at io.prestosql.server.PluginManager.loadPlugin(PluginManager.java:269) at io.prestosql.server.PluginManager.loadPlugin(PluginManager.java:246) at io.prestosql.server.PluginManager.loadPlugin(PluginManager.java:237) at io.prestosql.server.PluginManager.loadPlugins(PluginManager.java:215) at io.prestosql.server.PrestoServer.run(PrestoServer.java:150) at io.prestosql.server.PrestoServer.main(PrestoServer.java:91) Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableList at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at io.prestosql.server.PluginClassLoader.loadClass(PluginClassLoader.java:80) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 8 more