Using the HDAT Reader Adapter
The HDAT reader adapter resides in dfx-esp-hdatreader-adapter.jar, which bundles the Java publisher SAS Event Stream Processing client. The adapter converts each row in an HDAT file into an ESP event and injects event blocks into a source window of an engine. Each event is built with an INSERT opcode unless you specify the —s parameter.
The number of fields in the target source window schema must match the number of columns in the HDAT row data. Also, all HDAT column types must be numeric, except for columns that correspond to an ESP field of type UTF8STR. In that case, the column must contain character data.
The source Hadoop Distributed File System (HDFS) and the name of the file within the file system are passed as required parameters to the adapter. The client target platform must define the environment variable DFESP_HDFS_JARS. This specifies the location of the Hadoop JAR files.
List the JAR files in this order: hadoop-common-*.jar , hadoop-hdfs-*.jar , common hadoop JARs.
For example, in Linux:
$ export DFESP_HDFS_JARS=/usr/local/hadoop-2.5.0/share/hadoop/common/hadoop-common-2.5.0.jar: /usr/local/hadoop-2.5.0/share/hadoop/hdfs/hadoop-hdfs-2.5.0.jar: /usr/local/hadoop-2.5.0/share/hadoop/common/lib/*
Usage:
<-t> <-g gdconfigfile > <-l native | solace | tervela | rabbitmq | kafka> <-o severe | warning | info>
<-c [ configfilesection]> <-s> <-O tokenlocation > <-Q>
| Parameter | Definition |
|---|---|
| | Specifies the publish standard URL in the form |
| | Specifies the target file system, in the form |
| | Specifies the input CSV file, in the form |
| | Specifies the number of events per event block. |
| | Specifies that event blocks are transactional. The default is normal. |
| | Specifies the guaranteed delivery configuration file for the client. |
| | Specifies the transport type. When you specify |
| | Specifies the application logging level. |
| | Specifies the name of the section in file |
| | Specifies to build events with opcode = Upsert instead of Insert. |
| | Specifies the location of the file in the local file system that contains the OAuth token required for authentication by the publish/subscribe server. |
|
| Specify to quiesce the project after all events are injected into the source window. |