SlideShare a Scribd company logo
1 of 11
HADOOP PROJECT
Submitted By
Ankush Roy
Apuroop Pulabhatla
Ashitha VS
Krishna Bollojula
Srikanth Mallya
Koushik Rakshit
Roma Agrawal
CONTENTS
Business Problem
Understanding Data
Architecture
Psuedo code
Business Implication
BUSINESS PROBLEM
We need to find the adjusted closing price for
each day a stock has not reported dividend.
We are given two data sets:
1Dividends – A CSV file that gives us information
about the dates a dividend is returned.
2. NYSE_daily_prices – A bunch of CSV files that has
all the information about stock prices.
continued…
• We have to retrieve the dates when
dividends have a value 0, from the
dividends data set and match that with
the NYSE daily prices data set and hence
retrieve the corresponding adjusted
closing price.
.
UNDERSTANDING DATA
 The NYSE Daily Prices File has the following
columns separated by commas(CSV File):
exchange, stock_symbol, date, stock_price_open,
stock_price_high, stock_price_low, stock_price_close,
stock_volume, stock_price_adj_close
 The NYSE Daily Dividends File has the
following columns separated by commas(CSV
File):
exchange, stock_symbol, date, dividends
ARCHITECTURE
Mapper
Reducer
Output
Input Files
<Stock_symbol, Date, X, X, X, X, X
Adjusted_closing_price>
<Stock_symbol | Date, Adjusted_closing_price>
<Stock_symbol | Date, Dividend>
<Stock_symbol | Date, Adjusted_closing_price>
PSEUDOCODE - MAPPER
public static class StockAnalysisMapper extends MapReduceBase
implements Mapper<LongWritable, Text, Text, Text>
{
@Override
public void map(LongWritable key, Text
value,OutputCollector<Text, Text> output, Reporter reporter)
throws IOException
{
// switch case to parse the input lines and store the data
// check for null values in the key
// check the header and send the key value to output collector
}
}
PSEUDOCODE-REDUCER
public static class StockAnalysisReducer extends MapReduceBase implements
Reducer<Text, Text, Text, Text>
{
@Override
public void reduce(Text key, Iterator<Text> values,OutputCollector<Text, Text> output,
Reporter reporter) throws IOException
{
while (values.hasNext())
{
// Parse the inputs which are count,stock adjusted closing price and check
// Store them as required after parsing
//check for null values of stock adjusted closing price
}
//Increment the sum
// write to output if sum is 1
}
}
BUSINESS IMPLICATION
The closing price of a stock is exactly that: the
price of that stock at the close of the trading day.
The adjusted closing price uses the closing price
as a starting point, but it takes into account factors
such as dividends, stock splits and new stock
offerings.
The adjusted closing price represents a more
accurate reflection of a stock's value, since
distributions and new offerings can alter the
closing price.
Continued…
The primary use for the adjusted closing
price is as a means to develop an
accurate track record of a stock's
performance.
The comparison of a stock's historical
adjusted closing price to its current price
shows the true rate of return.
Thank you

More Related Content

Similar to Hadoop

Market Index Forecasting Model
Market Index Forecasting ModelMarket Index Forecasting Model
Market Index Forecasting Modelijtsrd
 
Introduction to-mongo db-execution-plan-optimizer-final
Introduction to-mongo db-execution-plan-optimizer-finalIntroduction to-mongo db-execution-plan-optimizer-final
Introduction to-mongo db-execution-plan-optimizer-finalM Malai
 
Introduction to Mongodb execution plan and optimizer
Introduction to Mongodb execution plan and optimizerIntroduction to Mongodb execution plan and optimizer
Introduction to Mongodb execution plan and optimizerMydbops
 
Introduction of ssis
Introduction of ssisIntroduction of ssis
Introduction of ssisdeepakk073
 
MuleSoft Nashik Virtual Meetup#3 - Deep Dive Into DataWeave and its Module
MuleSoft Nashik Virtual  Meetup#3 - Deep Dive Into DataWeave and its ModuleMuleSoft Nashik Virtual  Meetup#3 - Deep Dive Into DataWeave and its Module
MuleSoft Nashik Virtual Meetup#3 - Deep Dive Into DataWeave and its ModuleJitendra Bafna
 
Mysql Fun
Mysql FunMysql Fun
Mysql FunSHC
 
esProc introduction
esProc introductionesProc introduction
esProc introductionssuser9671cc
 
Final Project SQL - Elyada Wigati Pramaresti.pptx
Final Project SQL - Elyada Wigati Pramaresti.pptxFinal Project SQL - Elyada Wigati Pramaresti.pptx
Final Project SQL - Elyada Wigati Pramaresti.pptxElyada Wigati Pramaresti
 
Understand when to use user defined functions in sql server tech-republic
Understand when to use user defined functions in sql server   tech-republicUnderstand when to use user defined functions in sql server   tech-republic
Understand when to use user defined functions in sql server tech-republicKaing Menglieng
 
whats New in axapta 2012
whats New in axapta 2012whats New in axapta 2012
whats New in axapta 2012H B Kiran
 
Educational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdfEducational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdfrajeshjangid1865
 
Oracle_Analytical_function.pdf
Oracle_Analytical_function.pdfOracle_Analytical_function.pdf
Oracle_Analytical_function.pdfKalyankumarVenkat1
 
Agile Database Development with JSON
Agile Database Development with JSONAgile Database Development with JSON
Agile Database Development with JSONChris Saxon
 
Spring data ii
Spring data iiSpring data ii
Spring data ii명철 강
 
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)Pietro Di Leo
 
Realize the potential of sap material ledger
Realize the potential of sap material ledgerRealize the potential of sap material ledger
Realize the potential of sap material ledgerRajesh Shanbhag
 
7th meeting - Analysis Toolpak - Solver - Forecast Worksheet
7th meeting - Analysis Toolpak - Solver - Forecast Worksheet7th meeting - Analysis Toolpak - Solver - Forecast Worksheet
7th meeting - Analysis Toolpak - Solver - Forecast WorksheetDuc Lai Trung Minh
 
CIS 115 Become Exceptional--cis115.com
CIS 115 Become Exceptional--cis115.comCIS 115 Become Exceptional--cis115.com
CIS 115 Become Exceptional--cis115.comclaric130
 

Similar to Hadoop (20)

Market Index Forecasting Model
Market Index Forecasting ModelMarket Index Forecasting Model
Market Index Forecasting Model
 
Introduction to-mongo db-execution-plan-optimizer-final
Introduction to-mongo db-execution-plan-optimizer-finalIntroduction to-mongo db-execution-plan-optimizer-final
Introduction to-mongo db-execution-plan-optimizer-final
 
Introduction to Mongodb execution plan and optimizer
Introduction to Mongodb execution plan and optimizerIntroduction to Mongodb execution plan and optimizer
Introduction to Mongodb execution plan and optimizer
 
Introduction of ssis
Introduction of ssisIntroduction of ssis
Introduction of ssis
 
MuleSoft Nashik Virtual Meetup#3 - Deep Dive Into DataWeave and its Module
MuleSoft Nashik Virtual  Meetup#3 - Deep Dive Into DataWeave and its ModuleMuleSoft Nashik Virtual  Meetup#3 - Deep Dive Into DataWeave and its Module
MuleSoft Nashik Virtual Meetup#3 - Deep Dive Into DataWeave and its Module
 
Mysql Fun
Mysql FunMysql Fun
Mysql Fun
 
esProc introduction
esProc introductionesProc introduction
esProc introduction
 
Final Project SQL - Elyada Wigati Pramaresti.pptx
Final Project SQL - Elyada Wigati Pramaresti.pptxFinal Project SQL - Elyada Wigati Pramaresti.pptx
Final Project SQL - Elyada Wigati Pramaresti.pptx
 
Understand when to use user defined functions in sql server tech-republic
Understand when to use user defined functions in sql server   tech-republicUnderstand when to use user defined functions in sql server   tech-republic
Understand when to use user defined functions in sql server tech-republic
 
whats New in axapta 2012
whats New in axapta 2012whats New in axapta 2012
whats New in axapta 2012
 
Educational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdfEducational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdf
 
Oracle_Analytical_function.pdf
Oracle_Analytical_function.pdfOracle_Analytical_function.pdf
Oracle_Analytical_function.pdf
 
Agile Database Development with JSON
Agile Database Development with JSONAgile Database Development with JSON
Agile Database Development with JSON
 
Spring data ii
Spring data iiSpring data ii
Spring data ii
 
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
 
Realize the potential of sap material ledger
Realize the potential of sap material ledgerRealize the potential of sap material ledger
Realize the potential of sap material ledger
 
7th meeting - Analysis Toolpak - Solver - Forecast Worksheet
7th meeting - Analysis Toolpak - Solver - Forecast Worksheet7th meeting - Analysis Toolpak - Solver - Forecast Worksheet
7th meeting - Analysis Toolpak - Solver - Forecast Worksheet
 
CIS 115 Become Exceptional--cis115.com
CIS 115 Become Exceptional--cis115.comCIS 115 Become Exceptional--cis115.com
CIS 115 Become Exceptional--cis115.com
 
MatPlotLib
MatPlotLibMatPlotLib
MatPlotLib
 
Excel formula
Excel formula Excel formula
Excel formula
 

More from Krishna Bollojula

More from Krishna Bollojula (18)

Krishna Bollojula Analyst Certificate
Krishna Bollojula  Analyst CertificateKrishna Bollojula  Analyst Certificate
Krishna Bollojula Analyst Certificate
 
Enterprise performance management
Enterprise performance managementEnterprise performance management
Enterprise performance management
 
Multiple Regression using SAS
Multiple Regression using SASMultiple Regression using SAS
Multiple Regression using SAS
 
Wine quality Analysis
Wine quality AnalysisWine quality Analysis
Wine quality Analysis
 
NYE Stock analysis
NYE Stock analysisNYE Stock analysis
NYE Stock analysis
 
Blind product test- Market Research
Blind product test- Market ResearchBlind product test- Market Research
Blind product test- Market Research
 
Adopting Analytics in BFSI
Adopting Analytics in BFSIAdopting Analytics in BFSI
Adopting Analytics in BFSI
 
Efficacy of drugs - SAS Case Study
Efficacy of drugs - SAS Case StudyEfficacy of drugs - SAS Case Study
Efficacy of drugs - SAS Case Study
 
ltu37276_en_certificate
ltu37276_en_certificateltu37276_en_certificate
ltu37276_en_certificate
 
Future groups
Future groupsFuture groups
Future groups
 
Analysis of Reviews on Sony Z3
Analysis of Reviews on Sony Z3Analysis of Reviews on Sony Z3
Analysis of Reviews on Sony Z3
 
Tela sales analysis
Tela sales analysisTela sales analysis
Tela sales analysis
 
Comparison of drugs to prevent post anesthesia
Comparison of drugs to prevent post anesthesiaComparison of drugs to prevent post anesthesia
Comparison of drugs to prevent post anesthesia
 
Blind Product Test - Data Analysis
Blind Product Test - Data AnalysisBlind Product Test - Data Analysis
Blind Product Test - Data Analysis
 
EPM - Hotel Industry
EPM - Hotel IndustryEPM - Hotel Industry
EPM - Hotel Industry
 
Wine ppt template
Wine ppt templateWine ppt template
Wine ppt template
 
Multiple regression
Multiple regressionMultiple regression
Multiple regression
 
Brand dossier on dettol
Brand dossier on dettolBrand dossier on dettol
Brand dossier on dettol
 

Recently uploaded

Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfadriantubila
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 

Recently uploaded (20)

Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 

Hadoop

  • 1. HADOOP PROJECT Submitted By Ankush Roy Apuroop Pulabhatla Ashitha VS Krishna Bollojula Srikanth Mallya Koushik Rakshit Roma Agrawal
  • 3. BUSINESS PROBLEM We need to find the adjusted closing price for each day a stock has not reported dividend. We are given two data sets: 1Dividends – A CSV file that gives us information about the dates a dividend is returned. 2. NYSE_daily_prices – A bunch of CSV files that has all the information about stock prices.
  • 4. continued… • We have to retrieve the dates when dividends have a value 0, from the dividends data set and match that with the NYSE daily prices data set and hence retrieve the corresponding adjusted closing price. .
  • 5. UNDERSTANDING DATA  The NYSE Daily Prices File has the following columns separated by commas(CSV File): exchange, stock_symbol, date, stock_price_open, stock_price_high, stock_price_low, stock_price_close, stock_volume, stock_price_adj_close  The NYSE Daily Dividends File has the following columns separated by commas(CSV File): exchange, stock_symbol, date, dividends
  • 6. ARCHITECTURE Mapper Reducer Output Input Files <Stock_symbol, Date, X, X, X, X, X Adjusted_closing_price> <Stock_symbol | Date, Adjusted_closing_price> <Stock_symbol | Date, Dividend> <Stock_symbol | Date, Adjusted_closing_price>
  • 7. PSEUDOCODE - MAPPER public static class StockAnalysisMapper extends MapReduceBase implements Mapper<LongWritable, Text, Text, Text> { @Override public void map(LongWritable key, Text value,OutputCollector<Text, Text> output, Reporter reporter) throws IOException { // switch case to parse the input lines and store the data // check for null values in the key // check the header and send the key value to output collector } }
  • 8. PSEUDOCODE-REDUCER public static class StockAnalysisReducer extends MapReduceBase implements Reducer<Text, Text, Text, Text> { @Override public void reduce(Text key, Iterator<Text> values,OutputCollector<Text, Text> output, Reporter reporter) throws IOException { while (values.hasNext()) { // Parse the inputs which are count,stock adjusted closing price and check // Store them as required after parsing //check for null values of stock adjusted closing price } //Increment the sum // write to output if sum is 1 } }
  • 9. BUSINESS IMPLICATION The closing price of a stock is exactly that: the price of that stock at the close of the trading day. The adjusted closing price uses the closing price as a starting point, but it takes into account factors such as dividends, stock splits and new stock offerings. The adjusted closing price represents a more accurate reflection of a stock's value, since distributions and new offerings can alter the closing price.
  • 10. Continued… The primary use for the adjusted closing price is as a means to develop an accurate track record of a stock's performance. The comparison of a stock's historical adjusted closing price to its current price shows the true rate of return.