norikra 0.0.24-java → 0.1.0-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +40 -26
- data/lib/norikra/version.rb +1 -1
- data/norikra.gemspec +2 -2
- metadata +7 -7
data/README.md
CHANGED
@@ -1,17 +1,12 @@
|
|
1
1
|
# Norikra
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
*
|
8
|
-
*
|
9
|
-
|
10
|
-
* output event pool
|
11
|
-
* you can fetch events when you want
|
12
|
-
* streaming fetch connection (in future)
|
13
|
-
|
14
|
-
And, easy to install/execute dramatically, and more, fully open source software.
|
3
|
+
Norikra is a open-source Stream Processing Server with SQL.
|
4
|
+
* Schema-less event streams (called as 'target')
|
5
|
+
* SQL processing with window specifier supports, and JOINs, SubQueries
|
6
|
+
* Complex input/output events with nested Hashes and Arrays, and Query supports
|
7
|
+
* Dynamic query registration/removing, without any restarts
|
8
|
+
* Ultra fast bootstrap and small start
|
9
|
+
* UDF plugins
|
15
10
|
|
16
11
|
## Install and Execute
|
17
12
|
|
@@ -21,7 +16,7 @@ On JRuby environment, do these command (and, that all):
|
|
21
16
|
|
22
17
|
To execute:
|
23
18
|
|
24
|
-
norikra
|
19
|
+
norikra start
|
25
20
|
|
26
21
|
For JRuby installation, you can use `rbenv`, `rvm` and `xbuild`, or install JRuby directly.
|
27
22
|
|
@@ -32,21 +27,42 @@ For JRuby installation, you can use `rbenv`, `rvm` and `xbuild`, or install JRub
|
|
32
27
|
|
33
28
|
### Command line options
|
34
29
|
|
35
|
-
To start norikra server:
|
30
|
+
To start norikra server in foreground:
|
36
31
|
|
37
32
|
norikra start
|
38
33
|
|
39
|
-
|
34
|
+
Norikra server doesn't save targets/queries in default.
|
35
|
+
Specify `--stats STATS_FILE_PATH` option to save these runtime configuration automatically.
|
36
|
+
|
37
|
+
norikra start --stats /path/to/data/norikra.stats.json
|
38
|
+
|
39
|
+
JVM options like `-Xmx` are available:
|
40
|
+
|
41
|
+
norikra start -Xmx2g
|
42
|
+
|
43
|
+
To daemonize:
|
40
44
|
|
41
|
-
norikra -
|
45
|
+
norikra start -Xmx2g --daemonize --logdir=/var/log/norikra
|
46
|
+
norikra start -Xmx2g --daemonize --pidfile /var/run/norikra.pid --logdir=/var/log/norikra
|
47
|
+
# To stop
|
48
|
+
norikra stop
|
42
49
|
|
43
|
-
|
50
|
+
Performance options about threadings:
|
51
|
+
|
52
|
+
norikra start --micro # or --small, --middle, --large
|
53
|
+
|
54
|
+
For other options, see help:
|
55
|
+
|
56
|
+
norikra help start
|
44
57
|
|
45
58
|
## Clients
|
46
59
|
|
47
60
|
Use `Norikra::Client` and `norikra-client` cli command. These are available on both of JRuby and CRuby.
|
48
61
|
|
49
|
-
https://github.com/
|
62
|
+
https://github.com/norikra/norikra-client-ruby
|
63
|
+
|
64
|
+
For other languages:
|
65
|
+
* Perl: https://github.com/norikra/norikra-client-perl
|
50
66
|
|
51
67
|
## Events and Queries
|
52
68
|
|
@@ -55,6 +71,8 @@ For example, think about event streams related with one web service (ex: 'www').
|
|
55
71
|
norikra-client target add www path:string status:integer referer:string agent:string userid:integer
|
56
72
|
norikra-client target list
|
57
73
|
|
74
|
+
Supported types are `string`, `boolean`, `int`, `long`, `float`, `double` and `hash`, `array`.
|
75
|
+
|
58
76
|
You can register queries when you want.
|
59
77
|
|
60
78
|
# norikra-client query add QUERY_NAME QUERY_EXPRESSION
|
@@ -88,7 +106,7 @@ Query 'www.search' matches the last event automatically.
|
|
88
106
|
|
89
107
|
## User Defined Functions
|
90
108
|
|
91
|
-
|
109
|
+
UDFs/UDAFs can be loaded as plugin gems over rubygems or as private plugins. For example, see 'norikra-udf-mock' repository.
|
92
110
|
|
93
111
|
TBD
|
94
112
|
|
@@ -100,15 +118,11 @@ TBD
|
|
100
118
|
|
101
119
|
## Versions
|
102
120
|
|
103
|
-
|
104
|
-
|
105
|
-
## TODO
|
106
|
-
|
107
|
-
* daemonize
|
108
|
-
* performance parameters
|
121
|
+
* v0.1.0:
|
122
|
+
* First release for production
|
109
123
|
|
110
124
|
## Copyright
|
111
125
|
|
112
126
|
* Copyright (c) 2013- TAGOMORI Satoshi (tagomoris)
|
113
127
|
* License
|
114
|
-
*
|
128
|
+
* GPLv2
|
data/lib/norikra/version.rb
CHANGED
data/norikra.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["tagomoris@gmail.com"]
|
11
11
|
spec.summary = %q{CEP engine/server with Esper and JRuby}
|
12
12
|
spec.description = %q{CEP: Complex Event Processor with Esper EPL qeury language, messagepack rpc for inbound event data}
|
13
|
-
spec.homepage = "
|
13
|
+
spec.homepage = "http://norikra.github.io/"
|
14
14
|
spec.license = "GPLv2"
|
15
15
|
spec.platform = "java"
|
16
16
|
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_runtime_dependency "rack"
|
24
24
|
spec.add_runtime_dependency "thor"
|
25
25
|
spec.add_runtime_dependency "msgpack-rpc-over-http-jruby", ">= 0.0.5"
|
26
|
-
spec.add_runtime_dependency "norikra-client-jruby", "
|
26
|
+
spec.add_runtime_dependency "norikra-client-jruby", "~> 0.1.0"
|
27
27
|
spec.add_runtime_dependency "sinatra"
|
28
28
|
spec.add_runtime_dependency "sinatra-contrib"
|
29
29
|
spec.add_runtime_dependency "erubis"
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: norikra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0
|
5
|
+
version: 0.1.0
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- TAGOMORI Satoshi
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-11-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mizuno
|
@@ -79,15 +79,15 @@ dependencies:
|
|
79
79
|
name: norikra-client-jruby
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- -
|
82
|
+
- - ~>
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.0
|
84
|
+
version: 0.1.0
|
85
85
|
none: false
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ~>
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0.0
|
90
|
+
version: 0.1.0
|
91
91
|
none: false
|
92
92
|
prerelease: false
|
93
93
|
type: :runtime
|
@@ -358,7 +358,7 @@ files:
|
|
358
358
|
- spec/typedef_spec.rb
|
359
359
|
- views/base.erb
|
360
360
|
- views/index.erb
|
361
|
-
homepage:
|
361
|
+
homepage: http://norikra.github.io/
|
362
362
|
licenses:
|
363
363
|
- GPLv2
|
364
364
|
post_install_message:
|