运行 weka3.7.4 包管理器时出错
Posted
技术标签:
【中文标题】运行 weka3.7.4 包管理器时出错【英文标题】:Error while running weka3.7.4 package manager 【发布时间】:2014-12-21 03:19:35 【问题描述】:当我在工具>包管理器中运行weka.jar 3.7.4(windows7上的gui)时,它显示错误...“建立包元数据缓存时出现问题。我们将尝试直接使用存储库。”
weka.core.WekaPackageRepositoryURL = http://www.cs.waikato.ac.nz/ml/weka/package
元数据 尝试添加数据库驱动程序 (JDBC):RmiJdbc.RJDriver - 警告,不在 CLASSPA 中 吗? 尝试添加数据库驱动程序 (JDBC):jdbc.idbDriver - 警告,不在 CLASSPATH 中 ? 尝试添加数据库驱动程序 (JDBC):org.gjt.mm.mysql.Driver - 警告,不在 类路径? 尝试添加数据库驱动程序 (JDBC):com.mckoi.JDBCDriver - 警告,不在 CLA 中 路径? 尝试添加数据库驱动程序 (JDBC):org.hsqldb.jdbcDriver - 警告,不在 CL 中 ASSPATH? [KnowledgeFlow] 正在加载属性和插件... 【知识流】正在初始化KF...
错误是
ava.net.UnknownHostException: weka.sourceforge.net
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.pentaho.packageManagement.DefaultPackageManager.getRepositoryPackageMetaDataOnlyAsZip(Unknown Source)
at weka.core.WekaPackageManager.refreshCache(WekaPackageManager.java:796)
at weka.core.WekaPackageManager.establishCacheIfNeeded(WekaPackageManager.java:737)
at weka.gui.PackageManager$EstablishCache.doInBackground(PackageManager.java:285)
at weka.gui.PackageManager$EstablishCache.doInBackground(PackageManager.java:256)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
弹出的错误是
java.net.UnknownHostException: www.cs.waikato.ac.nz
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.pentaho.packageManagement.DefaultPackageManager.getRepositoryPackageMetaDataOnlyAsZip(Unknown Source)
at weka.core.WekaPackageManager.refreshCache(WekaPackageManager.java:796)
at weka.core.WekaPackageManager.establishCacheIfNeeded(WekaPackageManager.java:737)
at weka.gui.PackageManager$EstablishCache.doInBackground(PackageManager.java:285)
at weka.gui.PackageManager$EstablishCache.doInBackground(PackageManager.java:256)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
【问题讨论】:
【参考方案1】:看看this。
-
创建文件
\WEKA_HOME\props\PackageRepository.props
和
插入行weka.core.wekaPackageRepositoryURL=http://www.cs.waikato.ac.nz/ml/weka/packageMetaData
。
Windows下WEKA_HOME=C:\Users\YOUR_USER\wekafiles\
【讨论】:
以上是关于运行 weka3.7.4 包管理器时出错的主要内容,如果未能解决你的问题,请参考以下文章
Grails 2.3 数据库迁移上的“加载插件管理器时出错:TomcatGrailsPlugin”