Apache Storm - 风暴启动器上的ClassNotFoundException(Apache Storm - ClassNotFoundException on storm-starter)
我试图让风暴起动器工作。 我尝试了邮件列表,这似乎没有获得牵引力。 当我运行以下内容时:
$ mvn compile exec:java -Dstorm.topology=storm.starter.ExclamationTopology
我收到一个错误 :
Error on initialization of server mk-worker java.lang.RuntimeException: java.lang.ClassNotFoundException: backtype.storm.testing.TestWordSpout
我不是一个java开发人员,所以我不确定导入应该如何工作。 我确实看到了
storm-core/src/jvm/backtype/storm/testing/TestWordSpout.java
。当我找到任何jar文件时,我看到:
./target/original-storm-starter-0.11.0-SNAPSHOT.jar ./target/storm-starter-0.11.0-SNAPSHOT.jar
当我检查那些jar文件时,
TestWordSpout
不在那里。 我按照上面链接的文档从./examples/storm-starter
运行我的命令。据我所知,我完全按照教程。 OSX El Capitan 10.11.2,Java 1.8.0,Storm 0.9.5,Maven 3.3.3。 任何帮助都会很棒。 我很高兴能够开始:)
I’m trying to get the storm-starter to work. I tried the mailing list, and that does not seem to be gaining traction. When I run the following:
$ mvn compile exec:java -Dstorm.topology=storm.starter.ExclamationTopology
I get an error:
Error on initialization of server mk-worker java.lang.RuntimeException: java.lang.ClassNotFoundException: backtype.storm.testing.TestWordSpout
I’m not a java developer, so I’m not sure exactly how imports are supposed to work. I do see
storm-core/src/jvm/backtype/storm/testing/TestWordSpout.java
.When I find any jar files, I see:
./target/original-storm-starter-0.11.0-SNAPSHOT.jar ./target/storm-starter-0.11.0-SNAPSHOT.jar
When I inspect those jar files,
TestWordSpout
is not there. I am running my commands from./examples/storm-starter
as per the documentation linked above.To the best of my knowledge, I've followed the tutorial exactly. OSX El Capitan 10.11.2, Java 1.8.0, Storm 0.9.5., Maven 3.3.3. Any help would be great; I’d enjoy being able to get started :)
原文:https://stackoverflow.com/questions/34467446
最满意答案
使用
System.Net.WebClient.DownloadFile
Dim remoteUri As String = "http://belajar123.com/materi.zip" Dim fileName As String = "materi.zip" Dim pasword As String = "..." Dim username As String = "..." Using (var client = new WebClient()) client.Credentials = New NetworkCredential(username, password) client.DownloadFile(remoteUri, fileName) End Using
Use
System.Net.WebClient.DownloadFile
Dim remoteUri As String = "http://belajar123.com/materi.zip" Dim fileName As String = "materi.zip" Dim password As String = "..." Dim username As String = "..." Using client as new WebClient() client.Credentials = New NetworkCredential(username, password) client.DownloadFile(remoteUri, fileName) End Using
相关问答
更多-
最好的选择是正则表达式。 获取名为RegexBuddy的应用。 它将帮助您编写满足您需求的正则表达式 试试这个代码 Dim input As String= "Your initial page source that you want to search through" Dim pattern As String = "http\:\/\/[.]*\.mp4" Dim rgx As New Regex(pattern, RegexOptions.IgnoreCase) Dim matches As M ...
-
您可以使用Request实例轻松获取相关文件路径,然后使用它,使用Path类应该可以提供帮助: Dim relativePath = Request.AppRelativeCurrentExecutionFilePath Dim relativeDirectoryPath = System.IO.Path.GetDirectoryName(relativePath) 值得注意的是, GetDirectoryName可能会改变你的斜杠,所以你可以扩展路径: Dim mappedPath = HttpCont ...
-
看看这是否适合你: 在m_IncidentLocationName和m_IncidentZoneID变量之后添加一个新变量,如下所示: Dim URL as String URL = String.Format("url(http://www.test.com/cgis/images/{0}/{1}.gif)", m_IncidentLocationName, m_IncidentZoneID) 现在修改您的代码如下: pointer_div.Style.Add("background-image", U ...
-
从文本VB.NET导入代码(Import code from text VB.NET)[2024-01-15]
您可以使用CodeDom对象执行此类操作。 CodeDom对象允许您在运行时动态生成程序集。 例如,如果您创建一个界面 Public Interface IScript Property Variable1 As String Sub DoWork() End Interface 然后,您创建一个方法,如下所示: Imports Microsoft.VisualBasic Imports System.CodeDom.Compiler ' ... Public Function Gen ... -
Public Sub NeutralizeFile(ByVal PathIn As String, ByVal PathOut As String) Try Dim data() As Byte = IO.File.ReadAllBytes(PathIn) Array.Reverse(data) IO.File.WriteAllBytes(PathOut, data) Catch ex As Exception MsgBox(" ...
-
如果不联系服务器就无法完成。 只有服务器知道确切的映射。 来自Fiddler:请求 GET http://www.techspot.com/downloads.php?action=download_now&id=2991&evp=113a02f49ca8ac11b566336b984b1655&file=1 HTTP/1.1 ... 响应 HTTP/1.1 301 Moved Permanently Server: nginx Date: Fri, 27 Sep 2013 17:26:14 GMT Co ...
-
关闭连接后,您必须致电 SqlConnection.ClearPool 要么 SqlConnection.ClearAllPools 为了从SqlServer释放文件。 After you closed the connection you must call SqlConnection.ClearPool or SqlConnection.ClearAllPools in order to release the files from the SqlServer.
-
vb.net代码背后 - 在另一个代码文件中使用subs和函数(vb.net code behind - using subs and functions in another code file)[2023-10-16]
在您的新项目中,只需添加旧项目中的.dll文件作为参考 ,然后您就可以使用这些子项(它们必须是公共的)。 您可以在此处找到有关参考的更多信息 In your new project just add .dll files from old project as a reference and then you can use those subs (They have to be Public). You can find more about references HERE -
我们无法使用Client.UploadData(...)并且必须将整个帖子转换为字节,从附件之前的POST字段开始,然后是附件本身,最后是POST字段的其余部分。 Public Sub AddAttachmentToRT(ByVal url As String, ByVal fileName As String, ByVal filePath As String) Dim dataBoundary As String = "--xYzZY" Dim request As HttpWebRe ...
-
使用System.Net.WebClient.DownloadFile Dim remoteUri As String = "http://belajar123.com/materi.zip" Dim fileName As String = "materi.zip" Dim pasword As String = "..." Dim username As String = "..." Using (var client = new WebClient()) client.Credential ...