Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Cascading

You're reading from  Learning Cascading

Product type Book
Published in May 2015
Publisher
ISBN-13 9781785288913
Pages 276 pages
Edition 1st Edition
Languages

Putting it all together


This code illustrates how to put together a simple Cascading application, which takes inputs from two CSV (comma-separated value) files and joins them in common fields.

Here is the problem: in some organizations, employees are also published authors. We would like to compile a list of employees who are authors, and add department information to the list.

We have two CSV files: one file contains data on author's name, organization, journal title, and a keyword (the topic of their published work), and the second file contains department names and employee names. Our desired resultant list is the list of employees who are also authors, including their organization, department, journal title, and keyword. We will describe step by step how to build this application.

  1. Here are the important libraries to import in order for the program to work:

    import cascading.property.AppProps;
    import cascading.scheme.Scheme;
    import cascading.scheme.local.TextDelimited;
    import cascading.scheme...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}