astralway / phrasecount Goto Github PK
View Code? Open in Web Editor NEWExample Apache Fluo application that counts phrases in documents
License: Apache License 2.0
Example Apache Fluo application that counts phrases in documents
License: Apache License 2.0
I just ran through the example and noticed that the counts from the Print command are zero
Master should still use fluo alpha but dev branch could starting using changes from apache/fluo#318
This will allow this example to be able to be used with alpha release of Fluo over time.
java.lang.NullPointerException: null
at phrasecount.PhraseExporter.process(PhraseExporter.java:87) ~[phrasecount-0.0.1-SNAPSHOT.jar:na]
at accismus.impl.Worker.processUpdates(Worker.java:174) ~[accismus-core-1.0.0-alpha-1-SNAPSHOT.jar:na]
at accismus.impl.WorkerTask.run(WorkerTask.java:67) [accismus-core-1.0.0-alpha-1-SNAPSHOT.jar:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_55]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_55]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_55]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_55]
Make scripts use new command introduced in apache/fluo#581
I'm just eyeballing here, but it looks like the line above should reference args[1] instead of the args[0].
Follow same scripts used by fluo-stress. Scripts should accept directory of text documents to index.
I tried to run phrasecount on EC2 with multiple zookeepers. However, it failed because phrasecount is using the old method (comma seperated key/value pairs) to configure observers.
Reviewing the example and found a few minor typos.
A few errors in the README for running the example against a real instance of Accumulo.
While reviewing #20 I noticed the run.sh and run-cluster.sh scripts have become very similar. Need to look into merging them. I can look into this while converting phrase count to use fluo-recipes.
I tried to run mini.sh using Fluo 1.2.0 and received the following exception:
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2014)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2048)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:403)
at org.apache.fluo.core.impl.SharedBatchWriter$FlushTask.run(SharedBatchWriter.java:90)
at java.lang.Thread.run(Thread.java:748)
[WARNING]
java.lang.RuntimeException: java.lang.InterruptedException
at org.apache.fluo.recipes.accumulo.export.function.AccumuloWriter$ExportTask.run(AccumuloWriter.java:106)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2014)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2048)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
at org.apache.fluo.recipes.accumulo.export.function.AccumuloWriter$ExportTask.run(AccumuloWriter.java:91)
... 1 more
2018-02-28 14:04:11,492 [util.Halt] ERROR: Oracle has lost leadership unexpectedly and is now halting.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.