Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Trident State Storm bug

$
0
0

I’m newbie use storm. My project using trident state with two streams, The first stream has two attribute are user_id and url_refferrer. The second stream has user_id and order_id. My purpose is combine two the streams base on user_id that result such as user_id, url, order_id. I only run the first stream, the below is my code:
TridentTopology topology = new TridentTopology();
ReferrerDBFactory referrer = new ReferrerDBFactory();

TridentState referrers = topology
.newStream(“visit_stream”, new VisitSpout())
.partitionPersist(referrer,
new Fields(“user_id”, “url”),
new ReferrerUpdater());

topology.newStream(“order_stream”, new OrderSpout()).stateQuery(
referrers, new Fields(“user_id”, “order_id”), new QueryReferrer(),
new Fields(“result”));

Please give me some advices!


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>