Getting and Unpacking the SQL-MapReduce C SDK - Aster Execution Engine

Teradata Aster® Developer Guide

Product
Aster Execution Engine
Release Number
7.00.02
Published
July 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
xnl1494366523182.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
ffu1489104705746
lifecycle
previous
Product Category
Software
In these instructions, we'll be working in an example directory called ~/dev/stage/sqlmr-sdk.
  1. Obtain the C SDK bundle, sqlmr-sdk-c.tar.gz.
  2. Unpack the C SDK bundle.
       cd ~/dev
       tar xf sqlmr-sdk-c.tar.gz

    Change the working directory to ~/dev/stage/sqlmr-sdk. You will see these directories:

    • include/sqlmr/api/c contains the SQL-MapReduce C API headers, such as ArgumentClause.h, ByteArray.h, ByteStream.h, ColumnDefinition.h, Core.h, and so on. Comments in the header files explains the methods you will implement when developing a row or partition function, and they discuss memory ownership, error conditions, and so on.
    • example/c contains some sample C API functions (source code and makefiles) such as echo_input and list_files. You will also find source code here, for example function tests that use TestRunner for local testing.
    • include/sqlmr/testrunner/c contains the header files of the TestRunner testing framework for testing API functions locally. Comments in the headers explain the tools provided for testing.
    • lib contains the TestRunner library.