COMMIT
or ROLLBACK
.
When a table is created, the Driver for SASHDAT stores the table definition
in the connection. Catalog functions return information about the
table, but the information is not written to HDFS until the first
row is inserted. The table remains open and available for data until
one of the following conditions are met:
Option
|
Description
|
---|---|
CATALOG
|
CATALOG=catalog
name; Specifies the catalog
name for the connection.
Note: SAS Federation Server automatically
quotes SQL identifiers that do not meet the regular naming convention
as defined in the SAS FedSQL Reference Guide.
|
COMMIT
|
COMMIT=S|STATEMENT|C|CONNECTION; Specifies when to close
the SASHDAT file. Use
S to close when
the statement is unprepared, or C when
the connection is disconnected. The default is C ,
to close when the connection is disconnected.
|
COPIES
|
COPIES=number-of-copies; Specifies how many copies
are made when file blocks are written to HDFS. Note that specifying
COPIES=0 is
valid and signals the engine that you do not want any replicate copies
of the data in HDFS. Defaults for this option depend on the setting
for NODIST. The default is 1 when NODIST=NO is
specified and 2 when NODIST=YES is
specified.
|
CT_PRESERVE
|
CT_PRESERVE = STRICT | SAFE | FORCE | FORCE_COL_SIZE Allows users to control how data types are mapped. Note that data type mapping is disabled when CT_PRESERVE is set to STRICT. If the requested type does not exist on the target database, an error is returned. The options are as follows:
|
DEFAULT SCHEMA
|
DEFSCHEMA=schema-name; Specifies the default
schema for the connection. When using the DEFSCHEMA option, the default
schema and path must also be specified with
SCHEMA=(NAME=schema-namePATH|PRIMARYPATH=path) in the connection string.
|
ENCODING
|
ENCODING=SAS-NLS-encoding-identifier; Specifies the encoding
for SASHDAT data and character conversions, both to and from. If not
specified, the default encoding is inherited from SAS Federation Server.
Note: Tables created with the Driver
for SASHDAT use the encoding specified in the connection string. If
the encoding option is not specified, encoding defaults to the character
set associated with the operating system for SAS Federation Server.
|
HASH
|
HASH=Y|YES|N|NO; Specifies the algorithm
that determines the distribution of partitions to nodes of the LASR
Analytic Server proxy. The default is
HASH=NO ,
which specifies that the distribution scheme depends on a binary tree. HASH=YES indicates
that the distribution scheme depends on a hash function. As a result,
the distribution properties of the partitions are not as balanced,
but result in less memory usage. HASH=YES is
recommended when working with high-cardinality partition keys (in
the order of millions of partitions).
|
HOST
|
HOST | SERVER=grid-server-name; Specifies the name of the grid host that has a running Hadoop NameNode. This option
is required in the connection string. There is no default.
|
INSTALL
|
INSTALL=path; Specifies the path to the TKGrid installation on the grid host. This option is required
in the connection string. There is no default.
|
LOCALE
|
LOCALE=SAS-locale-identifier; Specifies the locale
for message text and character conversions, both to and from. The
default locale is acquired from the server operating system.
|
NODIST
|
NODIST|INNAMEONLY=Y|YES|N|NO; Specifies whether to
place small tables into HDFS. Use
NODIST=Y as
the mode for placing small tables into HDFS. The default is N (No).
|
PASSWORD
|
PWD=alternate-password; Specifies the password
for the alternate user when connecting to the grid host with a running
Hadoop NameNode.
|
SCHEMA
|
SCHEMA=(NAME=schema-name PATH|PRIMARYPATH=path); This option maps a logical schema name to a specific path for the grid host with a
running Hadoop NameNode. This option can be specified multiple times in a single connection
string to define multiple schemas. At least one schema is required. There is no default
if a schema is not specified. However, once specified, the first schema listed in
the connection string is designated as the default schema if
DEFSCHEMA= is
not used.
|
SQUEEZE
|
SQUEEZE=Y|YES|N|NO Specifies whether the
SASHDAT file will be compressed. The default is N (no compression).
|
TIMEOUT
|
TIMEOUT=timeout-in-seconds; Specifies the amount
of time to wait while trying to establish a connection before terminating
the attempt and generating an error. The default is 20 seconds.
|
USER
|
UID=alternate-userid; Specifies the ID of
an alternate user when connecting to the grid host with a running
Hadoop NameNode.
|
CATALOG=HDAT;DRIVER=SASHDAT;HOST=hostname;INSTALL="/opt/TKGrid/v940m1/laxnd"; SCHEMA=(name=SCHEMA1;PATH="/user/test");
CATALOG=HDAT;DRIVER=SASHDAT;COMMIT=S;UID=test; ENCODING=UTF8;HOST=hostname;INSTALL="/opt/TKGrid/v940m1/laxnd/"; SCHEMA=(name=CUSTOMERS;PATH="/user/custs");SCHEMA=(name=Accounts;PATH="/user/accts");