Configuration Properties

Data Hub offers many configuration properties for fine-tuning its operations, or enabling and disabling features. Available configuration properties are organized here by category.

Basic Configuration

Property Name Possible Values Default Description
datahub.server.url URL https://localhost:8443/datahub-webapp/v1 The active Data Hub instance. Data Hub sends this value when publishing to SAP Commerce Cloud. SAP Commerce Cloud then uses it as the destination for callbacks returned to Data Hub.
datahub.default.date.pattern Java datetime pattern yyyy-MM-dd HH:mm:ss.S The datetime format used by Data Hub.
datahub.tomcat.http.port valid port values 8080 Optionally override the default mapping of HTTP port from 80
datahub.init.publishable.items.query.limit integer 100000 When Data Hub initializes, it checks to see how many items are waiting to be published. If the number exceeds the value of this property, Data Hub does not start. You can find a log entry describing the issue.

Security

Property Name Possible Values Default Description
datahub.encryption.key.path filepath none A relative filepath, including filename, to the file containing the encryption key. If not configured correctly, Data Hub throws an authentication error, and fails to start.
datahub.tomcat.http.port integer 8080 Port used for communications in a nonsecure environment
datahub.tomcat.https.port integer 8443 Port used for communications in a secure environment
datahub.security.basic.admin.user text none User name for the admin user of the default security profile. Must be unique.
datahub.security.basic.admin.password text none Password for the admin user of the default security profile.
datahub.security.basic.inbound.user text none User name for the inbound user of the default security profile. Only inbound users can load data in the Data Hub, and these users can only load raw items.
datahub.security.basic.inbound.user.password text none Password for the inbound user of the default security profile.
datahub.security.basic.content_owner.user text none User name for the content owner user of the default security profile. Only users in this role can view item attribute data content.
datahub.security.basic.content_owner.user text none Password for the content owner user of the default security profile.
datahub.security.basic.developer.user text none User name for the developer user of the default security profile. Developer users can see everything in Backoffice except the actual data for items.
datahub.security.basic.developer.user.password text none Password for the developer user of the default security profile.
datahub.security.basic.read_only.user text none User name for the read only user of the default security profile. Must be unique.
datahub.security.basic.read_only.password text none Password for the read only user of the default security profile.
datahub.security.ssl.trustStore file ydevelopers.jks By default, it is the same as the datahub.security.ssl.trustStore.
datahub.security.ssl.trustStorePassword integer 123456 Password for datahub.security.ssl.trustStorePassword.
datahub.core.export.service.trustStore file ydevelopers.jks By default, it is the same as the datahub.security.ssl.trustStore.
datahub.core.export.service.truststorePassword integer 123456 By default, the password is the same as datahub.security.ssl.trustStorePassword
datahub.core.export.service.oauth.path filepath /authorizationserver/oauth/token The path to the authentication server for OAuth authentication of Data Hub Adapter towards SAP Commerce Cloud.
datahub.core.export.service.oauth.port port number 9002 The https port number of the SAP Commerce Cloud server. Data Hub uses the port number to securely fetch the OAuth token.
datahub.core.export.service.clientid text eic Authentication username to use for the Data Hub Adapter OAuth client.
datahub.core.export.service.clientsecret text secret Authentication password to use for the Data Hub Adapter OAuth client.
datahub.secure.data.masking.mode boolean true Turn on secure attribute masking.
datahub.secure.data.masking.value text ******* Specify the mask that secured attributes are replaced with.
datahub.security.https.enabled boolean true Toggles the usage of HTTPS

Adapters

Property Name Possible Values Default Description
test-adapter.writer.enabled boolean false When set to true, the Test Adapter writes to a file. The output is an ImpEx file with a name in the format <targetsystemname>_<publicationActionId>-<targetsystempublicationid>-<random unique string>.
test-adapter.file.writer.directory.cleanup boolean false If set to true, any existing output file in the write directory is deleted when Data Hub restarts.
datahub.extension.exportURL URL none The base URL of the Data Hub Adapter. For example: https://localhost:9002/datahubadapter
datahub.extension.userName text none The authentication username for connecting to the Data Hub adapter.
datahub.extension.password text none The authentication password for connecting to the Data Hub adapter.

Database

Property Name Possible Values Default Description
hanadb.storage.columnbased boolean false HANA performance setting: use column-based.
hanadb.storage.optimized.indexes boolean false HANA performance setting: (note, there may be other HANA performance settings that must be set within HANA or system config).
datahub.autoInitMode "ignore", "create" or "create-drop" create The Data Hub database auto-initialization mode.
datahub.jdbc.statement.batch.size integer (items) 1000 Specifies the maximum number of items in a single JDBC insert statement.
datahub.sql.maxUpdateBatchSize integer (items) 1000 Specifies the maximum size of the IN clause used in an UPDATE statement. Some databases place a limit on the number of expressions that can appear in the IN clause.

Database Connection Pools

The Data Hub database connection pool configuration is managed using the open source HikariCP (https://github.com/brettwooldridge/HikariCPInformation published on non-SAP site).

The following properties are recognized by Data Hub to configure the database connection pool. You can override any default values in the following table by entering the property and its new value in the local.properties file.

Property Name Property Type Default Description
dataSource.jndiName string none The JNDI DataSource name
dataSource.className string org.hsqldb.jdbc.JDBCDataSource The name of the javax.sql.DataSource class, for example, com.mysql.jdbc.jdbc2.optional.MysqlDataSource
dataSource.driver.className string none The name of the java.sql.Driver class, for example, com.mysql.jdbc.Driver
dataSource.username string sa The database user for whom the connection is being made
dataSource.password string empty The user's password
dataSource.jdbcUrl string jdbc:hsqldb:mem:datahub;hsqldb.tx=mvcc The string that your DBMS JDBC driver uses to connect to a database, for example, jdbc:mysql://hostname:3306/mydb
dataSource.defaultAutoCommit boolean true Sets the default auto-commit behavior of connections in the pool.
dataSource.connectionTimeoutInMs long 10000 Sets the maximum number of milliseconds that a client waits for a connection from the pool.
dataSource.idleMaxAgeInSeconds long 1000 Controls the maximum amount of time (in milliseconds) that a connection is allowed to sit idle in the pool.
dataSource.maxLifetimeInSeconds long 600 Controls the maximum lifetime (in seconds) of a connection in the pool.
dataSource.maxConnections int 100 Controls the maximum size that the pool is allowed to reach, including both idle and in-use connections.
dataSource.minConnections int 20 Controls the minimum number of idle connections that HikariCP tries to maintain in the pool, including both idle and in-use connections.
dataSource.oracle.connection.propertie: string none Used to specify the following Oracle-specific properties: jdbcURL, username, password
connectionPool.name string datahub Set the name of the connection pool
connectionPool.registerMbeans boolean true Boolean indicating whether or not to register Java MBeans with the JMX console
dataSource.cachePrepStmts boolean false Boolean indicating whether or not to cache javax.sql.PreparedStatements.
dataSource.prepStmtCacheSize int 250 If prepared statement caching is enabled, set the number of prepared statements that should be cached.
dataSource.prepStmtCacheSqlLimit int 2048 If prepared statement caching is enabled, set the largest SQL for which driver caches the parsing.
dataSource.transactionIsolation string TRANSACTION_READ_COMMITTED Set the default transaction isolation level specified as a string.

Schemaless Attributes

Property Name Possible Values Description
kryo.serializer.custom.registered.classes

One or more fully qualified class names. Multiple class names must be in the form of a comma-separated list. For example, kryo.serializer.custom.registered.classes=java.util.GregorianCalendar,java.util.LinkedList

Use this property to register a class that needs to be supported by Kryo serialization as the result of a possible error while loading, composing, or publishing schemaless attributes.

Load

Property Name Possible Values Default Description
datahub.import.batch.size integer (items) 1000 Specifies the maximum number of raw items that are persisted at once within a single transaction. Data sets larger than the batch size value persist in separate transactions matching the size of the property.

Composition

Property Name Possible Values Default Description
datahub.composition.batch.size integer (items) 1000 Specifies the maximum number of raw items for a composition processing page. A processing page is a unit of work holding raw items that are actively being composed into canonical items. For example, assume that you have 10,000 raw items for a composition action. Assume that the batch size is set to 1,000. With these inputs, it takes 10 processing pages to compose all raw items for that composition action. Each processing page requires Data Hub to merge with the canonical items already composed from the previous cycles, which creates some overhead. Load all raw items into memory, compose them there, and then persist the canonical items. In practice, memory is limited and, when items being composed exceed the available memory, a serious performance degradation begins. The goal of adjusting this parameter is to find a balance between available heap size and as large a batch size as possible.
datahub.max.composition.action.size integer (items) 100000 Specifies the maximum number of items that are composed in a single composition action. Assume the value of this property (max composition action size) is smaller than the composition page size (datahub.composition.batch.size). The page size resets to the max composition action size. Another scenario, the max composition action size is larger than the page size. The max composition action size is not a multiple of the page size. The max composition action size increases to the closest multiple of the page size. If max composition action size is set to -1, it is unbounded.
datahub.pool.actions.inactive.reset.schedule cron expression 0 */5 * * * ? A cron expression that specifies when Data Hub should check for inactive compositions.
datahub.pool.actions.inactive.window.milliss   300,000 (5 minutes) A window in time expressed as milliseconds that indicates whether composition is inactive for a certain pool. The default is 300,000 ms (5 minutes). This value is used to subtract from the current time to get a lower bound time. The lower bound time is then used to query the database for composition actions that occurred before the lower bound time.

Publication

Property Name Possible Values Default Description
datahub.config.mode "STANDARD" or "IN_MEMORY" IN_MEMORY Use in-memory (dynamic) publication processing.
target.system.publication.configuration pool and target system name none Tell Data Hub which pool to publish from, and target system to publish to (required for in-memory processing). For example, target.system.publication.configuration=GLOBAL.HybrisCoreInstallation,autoPublishPool.HybrisCoreInstallation. Use 'sapcoreconfiguration' to use the sapcoreconfiguration module for auto publish.
datahub.publication.page.size number (items) 1000 Specifies the maximum number of target items for a publication processing page. A processing page is a unit of work holding target items that are actively being published using the core adapter service. This property describes the size of the page returned to the callback. The larger the page size, the fewer the pages per publication action. The goal when adjusting this parameter is to find a balance between page size and the number of callback requests. Ideally, you reduce the number of callback requests without impeding performance. Callback refers to the step in publication when the target system adapter calls back to the Data Hub for ImpEx data.
datahub.max.publication.action.size integer (items) 100000 Specifies the maximum number of items that are published in a single publication action. The value of this property can be smaller than the number of canonical items per processing page (datahub.composition.batch.size). However, if this condition exists, the page size resets to the max publication action size. The property is larger than the page size and is not a multiple of the page size. Then it increases to the closest multiple of the page size. If this property is set to -1, it is unbounded.
datahub.publication.batch.size integer (items) 1000 Specifies the maximum number of target items that are created from canonical items in a single transaction (batch) during publication. The batch size is the unit of work during publication. When In-Memory mode is enabled, the specified publication batch size is the number of target items kept in the memory buffer. Once processed, the memory buffer is cleared and the next batch is loaded. When STANDARD mode is enabled, the specified publication batch size is the number of target items committed to the database. Once processed, the next batch is committed.
datahub.publication.timeout integer (timeout) 1000000 Specifies the amount of time required to publish a single transaction (batch) of target items. This property relies on the parameters for datahub.publication.batch.size because the size of the batch determines the amout of time needed to create the target items from canonical items. The greater the number of items, the more time is needed to process them.
datahub.max.publication.retry.count integer (retry attempts) 10 The maximum number of retries for canonical items. Each time a canonical item fails to publish, the counter for that item is incremented. Additionally, unique counters are maintained for unique targets.
The following four properties are related to the movement of data from Data Hub to Data Hub Adapter.
datahub.retry.max.attempts integer (retry attempts) -1 The number of retries when connecting to the target system fails. A value lower than 0 allows for indefinite retries until the target system is available. A value of 0 means no retries.
datahub.retry.initial.interval.millis integer (milliseconds) 500 Number of milliseconds to wait before target system connection retry attempt.
datahub.retry.multiplier integer (multiplication factor) 2 Wait time multiplier for subsequent target system connection attempts.
datahub.retry.max.interval.millis integer (milliseconds) 256000 Maximum number of milliseconds to wait before abandoning any further target system retry attempts.
datahub.publication.isocode.mapping isocodes {iw='he', ji='yi', in='id'} There are legacy equivalent isocodes that are the Data Hub defaults. However, you can switch to the new isocodes by setting the property to {iw='iw', ji='ji', in='in'}.
datahub.publication.monitor.interval integer (milliseconds) 5 minutes Time interval for checking the publication actions in progress and failing them if they run longer than the specified interval.

Cleanup Extension

Property Name Possible Values Default Description
datahub.cleanup.rawitem.enabled boolean false Turn on/off cleanup for raw items
datahub.cleanup.canonicalitem.enabled boolean false Turn on/off cleanup for canonical items
datahub.cleanup.targetitem.enabled boolean false Turn on/off cleanup for target items
datahub.cleanup.publisheditems.enabled boolean false Turn on/off cleanup for published items
datahub.cleanup.canonicalitem.time.delay integer (seconds) 43,200 seconds Time to wait before cleaning up canonical items (in case items are required for republication or ongoing publication actions, and so on.) The default value is not always the best value. Adjust it for your environment.
datahub.cleanup.publisheditems.excluded.types canonical item types none Comma separated list of canonical item types to exclude from published item cleanup.
datahub.cleanup.publisheditems.time.delay integer (seconds) 43,200 seconds Time in seconds since a canonical item must have been successfully published before being deleted by the publisheditem cleanup. The default value is not always the best value. Adjust it for your environment.
datahub.retention.cleanup.execution.schedule cron expression In cron notation, 0 0 0 * * ? Used to specify the exact timing of the cleanup event within the coarser measurement of the datahub.retention.cleanup.ttl.seconds setting
datahub.retention.cleanup.ttl.seconds integer (seconds) 2592000 The interval, in seconds, of the cleanup event.

Caching

Property Name Possible Values Default Description
datahub.data.item.attribute.list.cache.size integer (items) 500 Maximum size of the local cache for the complete list of DataItemAttributes by type.
datahub.model.definition.cache.size integer (items) 1000 Maximum size of the local cache of DataItemAttributes for a CanonicalAttributeDefinition.
datahub.raw.attribute.cache.size integer (items) 1000 Maximum size of the local cache of DataItemAttributes for the raw attribute referred to by a CanonicalAttributeDefinition.
datahub.data.item.attribute.cache.size integer (items) 10000 Maximum size of the local cache of the DataItemAttributes.
datahub.caching.configuration.resource.name filepath META-INF/ehcache.xml Location of default ehcache.xml configuration file (used for SpEL resolve cache).
datahub.caching.spelResolveCache.timeToIdleSeconds integer (seconds) 600 The maximum number of seconds an element can exist in the cache without being accessed. The element expires at this limit and is no longer returned from the cache.
datahub.caching.spelResolveCache.timeToLiveSeconds integer (seconds) 600 The maximum number of seconds an element can exist in the cache regardless of use. The element expires at this limit and is no longer returned from the cache.
datahub.caching.spelResolveCache.evictionPolicy LFU, LRU, or FIFO LFU The policy to use in cases when items are evicted from the cache. Available policies are: Least Recently Used (LRU), Least Frequently Used (LFU), First In First Out (FIFO) configuration.
datahub.caching.spelResolveCache.maxEntriesLocalHeap integer (items) 100000 The maximum number of entries the cache can keep in memory. The cache evicts elements once the limit is reached. See the eviction policy described later.

Item Level Events

Property Possible Values Default Description
datahub.event.rawitem.enabled boolean false Enables or disables raw item events.
datahub.event.canonicalitem.enabled boolean false Enables or disables canonical item events.
datahub.event.targetitem.enabled boolean false Enables or disables target item events.
datahub.event.itempublication.enabled boolean false Enables or disables item publication events.
datahub.event.data-attributes.enabled boolean true Enables the publication of item attributes in item events.

Logging

Property Name Possible Values Default Description
datahub.logging.additional.masked.properties property names none A comma separated list of application property values to be masked in log files during startup. These properties are in addition to the properties that Data Hub masks by default.
datahub.item.level.lifecycle.logging boolean false Specifies whether item logging is active. Set to true, if you want to have item level logging; false and item level logging won't be performed.
datahub.event.notify.listener.warning.threshold.millis milliseconds 5000 When a pool event generates in Data Hub, a list of DataHubEventListeners receive it. Occasionally, some listeners may take a long time to complete and acknowledgment of the receipt of the pool event is delayed. The delay causes unnecessary retries. To facilitate debugging this scenario, a warning now exists. The warning indicates that a specific listener has taken longer than a configurable threshold, and it appears in your log file. The content of the log message is: Execution on [LISTENER_NAME] has exceeded [X] seconds. Excessively long running handlers can have a serious effect on Data Hub performance.

SAP Commerce Cloud

Property Name Possible Values Default Description
The following four properties are related to the movement of data from Data Hub Adapter to Data Hub.
datahubadapter.retry.initial.interval.millis integer (milliseconds) 1000 The initial sleep interval in milliseconds before the first connection retry.
datahubadapter.retry.multiplier integer (multiplication factor) 2 The value to increment the exponential seed with for each retry attempt.
datahubadapter.retry.max.attempts integer (retry attempts) 5 The maximum number of attempts.
datahubadapter.retry.max.interval.millis integer (seconds) 256000 The maximum value of the wait time in milliseconds.
datahubadapter.import.error.result.limit integer (max number of errors) 10000 The maximum number of errors that are reported back to Data Hub for a single publication action.
datahubadapter.datahuboutbound.url URL https://localhost:8443/datahub-webapp/v1 The base URL of the Data Hub instance.
datahubadapter.datahuboutbound.user text admin The username for basic authentication of Data Hub Adapter with the Data Hub server instance.
datahubadapter.datahuboutbound.password text The password set for the default user. See Default Users for more information. The password for basic authentication of Data Hub Adapter with the Data Hub server instance.
datahubadapter.distributed.impex.enabled boolean false Enable use of distributed ImpEx for data import using Data Hub Adapter.
datahubadapter.service.layer.direct.enabled boolean false Enable use of Service Layer Direct (only works when distributed ImpEx is turned on).
datahubadapter.datahuboutbound.date.pattern Java data pattern yyyy-MM-dd HH:mm:ss.S Dates are converted to String and formatted using the specific pattern and the UTC time zone
datahubadapter.security.https.enabled boolean true Toggles HTTPS usage on and off
datahub.backoffice.rest.client.username.admin=**** text The password set for the user. The username for Backoffice Data Hub Cockpit clients to connect to Data Hub with admin rights. The admin user can see everything in Backoffice, including the data. When you set this property, ensure the password is the same as the password for the datahub.security.basic.admin.user property.
datahub.backoffice.rest.client.password.admin=**** text The password set for the user. The username for Backoffice Data Hub Cockpit clients to connect to Data Hub with admin rights.

datahub.backoffice.rest.client.username.developer=****

text

The password set for the user.

The username for the developer user. Developer users can see everything in Backoffice except the actual data for items.

datahub.backoffice.rest.client.password.developer=****

text

The password set for the user.

The password for the developer user.