apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pramod Immaneni <pra...@datatorrent.com>
Subject Re: Word Count Tutorial Failure
Date Thu, 19 Nov 2015 19:20:55 GMT
+1 for a doc on building an example from scratch for getting started on
Apex. Also in next chapters we progressively improve it to show different
features.

On Thu, Nov 19, 2015 at 11:07 AM, Ganelin, Ilya <Ilya.Ganelin@capitalone.com
> wrote:

> Ram - the use case I'm targeting is having someone create a new project
> from scratch based on an example. This is a little bit different. This is
> why I was basing it on the documentation from the website.
>
> The above is a necessity for getting new members involved with the project.
>
>
>
> Thank you,
> Ilya Ganelin
>
>
>
> -----Original Message-----
> From: Munagala Ramanath [ram@datatorrent.com<mailto:ram@datatorrent.com>]
> Sent: Thursday, November 19, 2015 01:50 PM Eastern Standard Time
> To: dev@apex.incubator.apache.org
> Subject: Re: Word Count Tutorial Failure
>
>
> Ilya,
>
> Could you please clone: https://github.com/DataTorrent/examples
> You'll find the complete project in tutorials/topnwords/app
> You should be able to build it successfully with: mvn clean package
> -DskipTests
> I just tried it. Let me know if you run into any issues.
>
> Ram
>
>
> On Thu, Nov 19, 2015 at 10:18 AM, Ganelin, Ilya
> <Ilya.Ganelin@capitalone.com> wrote:
> > Hi all – I just attempted to follow the instructions here:
> > http://docs.datatorrent.com/tutorials/topnwords-c2/
> >
> > For standing up top N words in Java.
> >
> > As it stands, things did not work. I was using IntelliJ Idea 14. There
> were a number of issues, a short (not comprehensive) list is below.
> >
> >  1.  There are discrepancies between the selected language level in the
> project settings and certain constructs in the code
> >     *   In WordReader.java diamonds are used, which are only supported
> in java 7 but the language level is set to 5
> >  2.  The apex version is out of date in the pom.xml file (it’s set to
> 2.2)
> >  3.  ApplicationWithQuerySupport.java does not compile with newer
> versions of Apex
> >
> > I spent about 15 minutes trying to get this thing to work in its present
> state and it simply was not an easy and ready to roll example.
> >
> > General thoughts:
> >
> >  1.  We should not be asking users to manually copy example files from
> one place to another
> >  2.  We should not be asking them to rename packages to get things to
> work
> >  3.  We should not be asking them to modify existing example code to
> construct another example.
> >     *   I think a better approach is to provide a complete example (that
> works out of the box) and that we can then walk through line by line to
> explain what it’s doing.
> >  4.  We shouldn’t be asking them to copy-paste in settings. Instead, we
> should walk them through what it means to set settings and have a simple
> enough example that it’s straightforward to configure.
> >  5.  Standing up a word count example should be a 1-button-click
> deployment that is ready to run without any user input. Any further
> configuration should only be necessary for the sake of teaching, not for
> the sake of operationalizing the project.
> >
> > I hope this helps, I’m happy to offer further feedback. Thanks!
> > ________________________________________________________
> >
> > The information contained in this e-mail is confidential and/or
> proprietary to Capital One and/or its affiliates and may only be used
> solely in performance of work or services for Capital One. The information
> transmitted herewith is intended only for use by the individual or entity
> to which it is addressed. If the reader of this message is not the intended
> recipient, you are hereby notified that any review, retransmission,
> dissemination, distribution, copying or other use of, or taking of any
> action in reliance upon this information is strictly prohibited. If you
> have received this communication in error, please contact the sender and
> delete the material from your computer.
> ________________________________________________________
>
> The information contained in this e-mail is confidential and/or
> proprietary to Capital One and/or its affiliates and may only be used
> solely in performance of work or services for Capital One. The information
> transmitted herewith is intended only for use by the individual or entity
> to which it is addressed. If the reader of this message is not the intended
> recipient, you are hereby notified that any review, retransmission,
> dissemination, distribution, copying or other use of, or taking of any
> action in reliance upon this information is strictly prohibited. If you
> have received this communication in error, please contact the sender and
> delete the material from your computer.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message