You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@asterixdb.apache.org by "Chen Li (JIRA)" <ji...@apache.org> on 2015/08/18 09:00:54 UTC

[jira] [Commented] (ASTERIXDB-1074) Feeds tutorial is outdated or doesn't work

    [ https://issues.apache.org/jira/browse/ASTERIXDB-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14700824#comment-14700824 ] 

Chen Li commented on ASTERIXDB-1074:
------------------------------------

I was going through the tutorial and found the following problems so far.  I will talk to Ian to decide which branch to use to fix them.

- There is an extra ";" in the following statement.

create feed ProcessedTwitterFeed if not exists
    using "push_twitter"
    (("type-name"="Tweet"));
    apply function testlib#processRawTweet;

- In the following statement, we should change "ProcessedTweet" to "ProcessedTweets"

create type ProcessedTweet if not exists as open {

- When I ran the following command: 

 connect feed ProcessedTwitterFeed to
    dataset ProcessedTweets ;

I got the following error message: "Unknown target dataset :ProcessedTweets [AsterixException]"

> Feeds tutorial is outdated or doesn't work
> ------------------------------------------
>
>                 Key: ASTERIXDB-1074
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1074
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: AsterixDB
>            Reporter: Ian Maxon
>            Priority: Blocker
>
> I can't seem to create a vanilla feed, using the push-based twitter adapter, as is in the new tutorial in the docs.
> I create the feed using the specified syntax
>      create feed TwitterFeed if not exists using "push_twitter"
>     (("type-name"="Tweet"),("location"="US"));
> And a dataset that is of the right type
>     create dataset Tweets(Tweet) primary key id;
> But trying to connect it fails
>     connect feed TwitterFeed to dataset Tweets;
> With this error, which doesn't really make a lot of sense considering this adapter is baked in
>     unable to create adapter java.lang.ClassNotFoundException: push_twitter [AlgebricksException]
> And what is more bewildering, is that if I drop, create, and reconect the feed- it doesn't throw an exception any longer, but it doesn't actually work either. All that appears in the logs is this: 
> Aug 11, 2015 12:20:34 PM edu.uci.ics.asterix.aql.translator.AqlTranslator getFeedConnectionRequest
> INFO: Feed joint feeds.TwitterFeed: [SOURCE_FEED_INTAKE_STAGE][CREATED] is available! need not apply any further computation



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)