Created
February 5, 2014 17:45
-
-
Save davidfauth/8829315 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
register '/Users/davidfauth/Downloads/elasticsearch-hadoop-1.3.0.M1.jar'; | |
define ESStorage org.elasticsearch.hadoop.pig.ESStorage('es.resource=fbo/awards'); | |
-- More code here | |
B = FOREACH joinedActiveDetails GENERATE | |
CONCAT(SUBSTRING(postedDate,0,10),'T12:30:00-05:00') as searchPostedDate, | |
classCode as searchClassCode, | |
naicsCode as searchNaicsCode, | |
agencyName as searchAgencyName, | |
pocName as searchPOCName, | |
solicitationNumber as searchSolicatationNumber, | |
pocEmail as searchPOCEmail, | |
setAside as searchSetAside, | |
popCity as searchPopCity, | |
popZip as searchPopZip, | |
popCountry as searchPopCountry, | |
noticeType as searchNoticeType, | |
contractAwardNumber as searchContractAwardNumber, | |
contractAwardAmount as searchContractAwardAmount, | |
CONCAT(contractAwardDate,'T12:30:00-05:00') as searchContractAwardDate, | |
awardee as searchAwardee, | |
contractorAwardedDuns as searchContractorAwardedDuns, | |
noticeID as searchNoticeID, | |
nltk_udfs.stripHTML(description) AS fboDescr; | |
-- store into ES | |
STORE B INTO 'fbo/awards' USING ESStorage(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment