Expert Consultancy from Yellow Pelican

Stock Market Analysis Project - Project Configuration

A site about Talend

Project Configuration

This article is part of the Stock Market Analysis Project series of articles. This article provides information on the configuration for this project.

Configuration Parameters

General configuration parameters (Context Variables) are externalised to a file and loaded by the reusable library Job, LibContextReader.

The following shows a sample configuration file. This should be created, now, using the default name $HOME/talend/context/Default.StockMarket.cfg, where $HOME represents your Home Directory.

# www.TalendByExample.com
#
# This is a sample Talend Context File, for configuring the Stock Market Analysis Project.

# General
inputDir=/data/StockMarket
outputDir=/data/StockMarket
tmpDir=/tmp

# Database Connectivity
dWDatabaseCfgFile="StockMarket.MySQL"

# LibMakeTickerSymbols
libMakeTickerSymbolsGenerate3CharacterSymbols=true
libMakeTickerSymbolsGenerate4CharacterSymbols=false
libMakeTickerSymbolsSuffix=L

#
# GetQuotes
#
# getQuotesFastRefresh: smart, true, false
getQuotesFastRefresh=smart
getQuotesURL="http://finance.yahoo.com/d/quotes.csv?s="
getQuotesFormat="&f=snab"

MySQL Database Configuration

The parameter dWDatabaseCfgFile="StockMarket.MySQL" identifies the configuration file, that specifies the database connection parameters. Note that the name of this file is specified as StockMarket.MySQL (excluding Default and .cfg.

Next Step

Further information on MySQL configuration will be found in the next article in this series, Database Configuration.

The parameters specified in this file will be discussed im more detail, in further articles.




Expert Consultancy from Yellow Pelican
comments powered by Disqus

© www.TalendByExample.com