¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Need your review and guide : DDoS Detection using Wallaroo


Sean Allen
 

You should be using 0.20.0 not 0.21.0


On Thu, Jul 26, 2018 at 12:52 PM farzana zakaria <farzanazakaria96@...> wrote:
Hi, I've got some other error after install ponyc0.21.. . It is really the problem with the pony version

Error:
/home/farzana/wallaroo-tutorial/wallaroo/machida/machida.pony:964:5: match is exhaustive, the else clause is unreachable
??? match KafkaSourceConfigFactory(topic, brokers, log_level, out)
??? ^
??? Info:
??? /home/farzana/wallaroo-tutorial/wallaroo/machida/machida.pony:971:7: unreachable code
????????? error
????????? ^
Error:
/home/farzana/wallaroo-tutorial/wallaroo/machida/machida.pony:1045:5: match is exhaustive, the else clause is unreachable
??? match KafkaSinkConfigFactory(topic, brokers, log_level, max_produce_buffer_ms, max_message_size, out)
??? ^
??? Info:
??? /home/farzana/wallaroo-tutorial/wallaroo/machida/machida.pony:1052:7: unreachable code
????????? error
????????? ^
Error:
/home/farzana/wallaroo-tutorial/wallaroo/lib/wallaroo/application.pony:290:24: Cannot cast to subtype
??? _a.add_pipeline(_p as BasicPipeline)
?????????????????????? ^
??? Info:
??? /home/farzana/wallaroo-tutorial/wallaroo/lib/wallaroo/application.pony:290:21: BasicPipeline ref is a subtype of this Expression. 'as' is not needed here.
??????? _a.add_pipeline(_p as BasicPipeline)
??????????????????????? ^
make: *** [/home/farzana/wallaroo-tutorial/wallaroo/machida/build/machida] Error 1


On Thu, Jul 26, 2018 at 3:10 PM, farzana zakaria <farzanazakaria96@...> wrote:
Do you mean that the pony version that is used incompatible with the wallaroo older version ?

On Fri, Jul 27, 2018 at 2:15 AM, Sean T. Allen <sean@...> wrote:
Hmmm, yes. Come to think of it, it would require an older version of Pony to compile. That is going to be problematic. That should be Pony version 0.20.0. You'd need to build that from source and install.


On Thu, Jul 26, 2018 at 10:59 AM farzana zakaria <farzanazakaria96@...> wrote:
Hi. Thank you for your respond. According to the instruction for compiling machida with make command,
cd ~/wallaroo-tutorial/wallaroo/machida
make

Its run but got some error like below, how I'm going to fix the error

.
.
.
Error:
net/http: couldn't locate this path
Error:
/home/farzana/wallaroo-tutorial/wallaroo/lib/wallaroo/startup.pony:24:1: can't load package 'net/http'
use "net/http"
^
Error:
/home/farzana/wallaroo-tutorial/wallaroo/machida/main.pony:23:1: can't load package 'wallaroo'
use "wallaroo"
^
Error:
/home/farzana/wallaroo-tutorial/wallaroo/machida/machida.pony:21:1: can't load package 'pony-kafka'
use "pony-kafka"
^
Error:
/home/farzana/wallaroo-tutorial/wallaroo/machida/machida.pony:26:1: can't load package 'wallaroo/core/sink/kafka_sink'
use "wallaroo/core/sink/kafka_sink"
^
Error:
/home/farzana/wallaroo-tutorial/wallaroo/machida/machida.pony:29:1: can't load package 'wallaroo/core/source/kafka_source'
use "wallaroo/core/source/kafka_source"
^
make: *** [/home/farzana/wallaroo-tutorial/wallaroo/machida/build/machida] Error 1




On Thu, Jul 26, 2018 at 1:04 PM, Sean T. Allen <sean@...> wrote:
You need to start over for any make commands that you would run in the Wallaroo directory.

You can clone the blog examples into your home directory. That would be fine.

On Wed, Jul 25, 2018, 20:28 farzana zakaria <farzanazakaria96@...> wrote:
When I run the "make clean" in the wallaroo directory, do I have to start over the installation process ? In which directory I have to run the command below ? It has to be in home directory ?
git clone cd wallaroo_blog_examples/ddos-detection

On Thu, Jul 26, 2018 at 11:07 AM, Sean T. Allen <sean@...> wrote:
You need to use the complete command from the README in the example to run it.

If you want to use 0.2.2, you should check out that version of the code in git, then in the book directory you'll find .MD files with installation instructions.

I suggest removing your existing installation and starting over if you want to use an older version.

At the least you should run?

make clean?

In your Wallaroo directory before checking out 0.2.2 so you'll be starting with a fresh slate.

On Wed, Jul 25, 2018, 19:35 farzana zakaria <farzanazakaria96@...> wrote:
How to build the machida ??
I run the below command like the ddos example and the output is "machida : command not found" .?

machida --application-module ddos_detector --in --out \ --control --data --name initializer --cluster-initializer \ --worker-count 2 --metrics --ponythreads 1 --ponypinasio --ponynoblock

On Thu, Jul 26, 2018 at 10:26 AM, Sean T. Allen <sean@...> wrote:
Yes but the installation directions you followed might not work. You can try checking out that version of Wallaroo and building Machida. It might work for you with no other changes.

On Wed, Jul 25, 2018, 19:15 farzana zakaria <farzanazakaria96@...> wrote:
Hi. Sorry. Which command did you use to been able to run the output like the screenshot file. Can I use the old version for run the ddos example by using this?
git clone 
cd wallaroo
git checkout 0.2.2
?and dont have to update to the new API

On Thu, Jul 26, 2018 at 2:04 AM, Sean Allen <sean@...> wrote:
Sorry, I don't understand your question.

On Wed, Jul 25, 2018 at 10:53 AM farzana zakaria <farzanazakaria96@...> wrote:
Hi. I'm so impress. How its gonna be startup? I dont really get it ?
On Thursday, July 26, 2018, Sean Allen <sean@...> wrote:
Hi Farzana,

The application in question uses the old Wallaroo API. You woudn't?be able to run it without updating the code to the latest API.
There are instructions on doing that here:



So you will need to learn some Wallaroo in order to do that.

---

Re: "how do I know the Wallaroo application started up"

One startup there is a bunch of output on startup, the last thing you see before sending in any data should be:

"Application has successfully initialized."

I've attached an example from an application I just started up on my laptop.





On Wed, Jul 25, 2018 at 10:18 AM farzana zakaria <farzanazakaria96@...> wrote:
Hi. Thank you for your respond. By using 64-bit platform , I'm able to install package ponyc.

According to , which directory I have to run
git clone 
cd wallaroo_blog_examples/ddos-detection

python receiver.py --host
export PYTHONPATH="$PYTHONPATH:.:$HOME/wallaroo-tutorial/wallaroo/machida" export PATH="$PATH:$HOME/wallaroo-tutorial/wallaroo/machida/build" machida --application-module ddos_detector --in --out \ --control --data --name initializer --cluster-initializer \ --worker-count 2 --metrics --ponythreads 1 --ponypinasio --ponynoblock

python sender.py --host --file data.json --batch 1000

Sorry, I' still new in this and a bit confuse how it can be run in order to ensure the wallaroo application works.

On Wed, Jul 25, 2018 at 11:52 AM, Sean T. Allen <sean@...> wrote:
Doesn't matter. If you execute all the comments you should be fine. For anything installed via apt-get there are commands you can run to determine that. I don't remember those commands but they should be in the apt-get directions.

On Tue, Jul 24, 2018, 20:44 farzana zakaria <farzanazakaria96@...> wrote:
Yes, I am trying. But the direction does not show where I have to run those command. As you said, the python development library is install somewhere else in system path. Which path exactly?

On Wed, Jul 25, 2018 at 11:34 AM, Sean T. Allen <sean@...> wrote:
Please follow the directions as written. They should result in success for you. They are designed to be done in order and result in a successful installation.

On Tue, Jul 24, 2018, 20:32 farzana zakaria <farzanazakaria96@...> wrote:
Yes, I am.

On Wed, Jul 25, 2018 at 11:30 AM, Sean T. Allen <sean@...> wrote:
Did you start over using a 64 bit OS?

On Tue, Jul 24, 2018, 19:48 farzana zakaria <farzanazakaria96@...> wrote:
I'm sorry. I mean this command for installing pony. Which directory I should use to run those 3 command ?

echo "deb  pony-language main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get -V install ponyc=0.21.0-4301.acd811b


On Wed, Jul 25, 2018 at 10:17 AM, Sean T. Allen <sean@...> wrote:
Which commands? What directions are using? Where have you gotten to?

On Tue, Jul 24, 2018, 18:25 farzana zakaria <farzanazakaria96@...> wrote:
Which directory actually I have to run those command ??

On Wednesday, July 25, 2018, Sean T. Allen <sean@...> wrote:
Please try again with 64 bit Linux and let us know if you encounter any problems.

On Tue, Jul 24, 2018, 15:07 farzana zakaria <farzanazakaria96@...> wrote:
Hi. But I ran it on ubuntu trusty 64-bit already.
On Wednesday, July 25, 2018, Scott Lystig Fritchie <scott@...> wrote:
On Tue, Jul 24, 2018 at 12:13 PM, farzana zakaria <farzanazakaria96@...> wrote:
[...]?
Hit??trusty/main i386 Packages

Whoops, sorry Farzana, that's the bit of info that we needed.? We at Wallaroo Labs have overlooked an important bit of documentation: Wallaroo does not support 32 bit platforms.? If you have a 64 bit version of Ubuntu Trusty available, please use it.

If you only have 32 bit hardware available, our apologies.? From what I can see in the Pony compiler's main README, there is no clear text that says that the 32-bit Pony compiler cannot yet pass its full test suite.? I will open bug reports on both repos to request clearer documentation for 32-bit and 64-bit platforms.

-Scott

P.S.











Join [email protected] to automatically receive all group messages.